Skip to content

Commit f57f7c0

Browse files
committed
perf/x86/intel: Check the X86 leader for pebs_counter_event_group
JIRA: https://issues.redhat.com/browse/RHEL-47444 upstream ======== commit e9988ad Author: Kan Liang <kan.liang@linux.intel.com> Date: Thu Apr 24 06:47:15 2025 -0700 description =========== The PEBS counters snapshotting group also requires a group flag in the leader. The leader must be a X86 event. Fixes: e02e9b0 ("perf/x86/intel: Support PEBS counters snapshotting") Signed-off-by: Kan Liang <kan.liang@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lkml.kernel.org/r/20250424134718.311934-3-kan.liang@linux.intel.com Signed-off-by: Michael Petlan <mpetlan@redhat.com>
1 parent 4fb8520 commit f57f7c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/x86/events/perf_event.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ static inline bool is_branch_counters_group(struct perf_event *event)
124124

125125
static inline bool is_pebs_counter_event_group(struct perf_event *event)
126126
{
127-
return event->group_leader->hw.flags & PERF_X86_EVENT_PEBS_CNTR;
127+
return check_leader_group(event->group_leader, PERF_X86_EVENT_PEBS_CNTR);
128128
}
129129

130130
struct amd_nb {

0 commit comments

Comments
 (0)