Skip to content

Commit ee98b8b

Browse files
Dapeng MiPeter Zijlstra
authored andcommitted
perf/x86/intel: Replace x86_pmu.drain_pebs calling with static call
Use x86_pmu_drain_pebs static call to replace calling x86_pmu.drain_pebs function pointer. Suggested-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Dapeng Mi <dapeng1.mi@linux.intel.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://patch.msgid.link/20251029102136.61364-4-dapeng1.mi@linux.intel.com
1 parent 7e772a9 commit ee98b8b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/events/intel/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3269,7 +3269,7 @@ static int handle_pmi_common(struct pt_regs *regs, u64 status)
32693269
* The PEBS buffer has to be drained before handling the A-PMI
32703270
*/
32713271
if (is_pebs_counter_event_group(event))
3272-
x86_pmu.drain_pebs(regs, &data);
3272+
static_call(x86_pmu_drain_pebs)(regs, &data);
32733273

32743274
last_period = event->hw.last_period;
32753275

0 commit comments

Comments
 (0)