[PATCH V2 0/5] Several fixes for group flag and counters-snapshotting

From: kan . liang
Date: Thu Apr 24 2025 - 09:47:52 EST


From: Kan Liang <kan.liang@xxxxxxxxxxxxxxx>

The patch series includes several fixes for the new Intel features.

The first 4 patches are to fix the group flag issue which impacts the
branch counters, PEBS counters-snapshotting and ACR.
The V1 can be found at
https://lore.kernel.org/lkml/20250423221015.268949-1-kan.liang@xxxxxxxxxxxxxxx/

The last patch is to fix an issue of counters-snapshotting.
The V1 can be found at
https://lore.kernel.org/lkml/20250204210514.4089680-1-kan.liang@xxxxxxxxxxxxxxx/

Kan Liang (5):
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: Check the X86 leader for ACR group
perf/x86: Optimize the is_x86_event
perf/x86/intel/ds: Fix counter backwards of non-precise events
counters-snapshotting

arch/x86/events/core.c | 19 ++++++++++---------
arch/x86/events/intel/ds.c | 21 +++++++++++++++++++--
arch/x86/events/perf_event.h | 14 ++++++++++----
3 files changed, 39 insertions(+), 15 deletions(-)

--
2.38.1