Skip to content

Commit 0d5eb14

Browse files
ahunter6Peter Zijlstra
authored andcommitted
perf/x86/intel: Do not enable large PEBS for events with aux actions or aux sampling
Events with aux actions or aux sampling expect the PMI to coincide with the event, which does not happen for large PEBS, so do not enable large PEBS in that case. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Reviewed-by: Andi Kleen <ak@linux.intel.com> Link: https://lkml.kernel.org/r/20241022155920.17511-5-adrian.hunter@intel.com
1 parent 08c7454 commit 0d5eb14

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/x86/events/intel/core.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3962,8 +3962,8 @@ static int intel_pmu_hw_config(struct perf_event *event)
39623962

39633963
if (!(event->attr.freq || (event->attr.wakeup_events && !event->attr.watermark))) {
39643964
event->hw.flags |= PERF_X86_EVENT_AUTO_RELOAD;
3965-
if (!(event->attr.sample_type &
3966-
~intel_pmu_large_pebs_flags(event))) {
3965+
if (!(event->attr.sample_type & ~intel_pmu_large_pebs_flags(event)) &&
3966+
!has_aux_action(event)) {
39673967
event->hw.flags |= PERF_X86_EVENT_LARGE_PEBS;
39683968
event->attach_state |= PERF_ATTACH_SCHED_CB;
39693969
}

0 commit comments

Comments
 (0)