[GIT PULL] perf events fixes
From: Ingo Molnar
Date: Sun May 04 2025 - 03:17:28 EST
Linus,
Please pull the latest perf/urgent Git tree from:
git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-2025-05-04
# HEAD: 58f6217e5d0132a9f14e401e62796916aa055c1b perf/x86/intel: KVM: Mask PEBS_ENABLE loaded for guest with vCPU's value.
Misc perf fixes:
- Require group events for branch counter groups and
PEBS counter snapshotting groups to be x86 events.
- Fix the handling of counter-snapshotting of non-precise
events, where counter values may move backwards a bit,
temporarily, confusing the code.
- Restrict perf/KVM PEBS to guest-owned events.
Thanks,
Ingo
------------------>
Kan Liang (3):
perf/x86/intel: Only check the group flag for X86 leader
perf/x86/intel: Check the X86 leader for pebs_counter_event_group
perf/x86/intel/ds: Fix counter backwards of non-precise events counters-snapshotting
Sean Christopherson (1):
perf/x86/intel: KVM: Mask PEBS_ENABLE loaded for guest with vCPU's value.
arch/x86/events/core.c | 2 +-
arch/x86/events/intel/core.c | 2 +-
arch/x86/events/intel/ds.c | 21 +++++++++++++++++++--
arch/x86/events/perf_event.h | 11 +++++++++--
4 files changed, 30 insertions(+), 6 deletions(-)