mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
perf/x86/intel: Check the X86 leader for ACR group
The auto counter reload group also requires a group flag in the leader. The leader must be a X86 event. 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-4-kan.liang@linux.intel.com
This commit is contained in:
parent
f51972e6f8
commit
efd448540e
|
|
@ -129,7 +129,7 @@ static inline bool is_pebs_counter_event_group(struct perf_event *event)
|
|||
|
||||
static inline bool is_acr_event_group(struct perf_event *event)
|
||||
{
|
||||
return event->group_leader->hw.flags & PERF_X86_EVENT_ACR;
|
||||
return check_leader_group(event->group_leader, PERF_X86_EVENT_ACR);
|
||||
}
|
||||
|
||||
struct amd_nb {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user