[PATCH openEuler-1.0-LTS v4 049/292] Intel: perf/x86/intel/ds: Extract code of event update in short period