mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
treewide: Trace IPIs sent via smp_send_reschedule()
To be able to trace invocations of smp_send_reschedule(), rename the arch-specific definitions of it to arch_smp_send_reschedule() and wrap it into an smp_send_reschedule() that contains a tracepoint. Changes to include the declaration of the tracepoint were driven by the following coccinelle script: @func_use@ @@ smp_send_reschedule(...); @include@ @@ #include <trace/events/ipi.h> @no_include depends on func_use && !include@ @@ #include <...> + + #include <trace/events/ipi.h> [csky bits] [riscv bits] Signed-off-by: Valentin Schneider <vschneid@redhat.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Guo Ren <guoren@kernel.org> Acked-by: Palmer Dabbelt <palmer@rivosinc.com> Link: https://lore.kernel.org/r/20230307143558.294354-6-vschneid@redhat.com
This commit is contained in:
committed by
Peter Zijlstra
parent
4468161a5c
commit
4c8c3c7f70
@@ -125,8 +125,15 @@ extern void smp_send_stop(void);
|
||||
/*
|
||||
* sends a 'reschedule' event to another CPU:
|
||||
*/
|
||||
extern void smp_send_reschedule(int cpu);
|
||||
|
||||
extern void arch_smp_send_reschedule(int cpu);
|
||||
/*
|
||||
* scheduler_ipi() is inline so can't be passed as callback reason, but the
|
||||
* callsite IP should be sufficient for root-causing IPIs sent from here.
|
||||
*/
|
||||
#define smp_send_reschedule(cpu) ({ \
|
||||
trace_ipi_send_cpumask(cpumask_of(cpu), _RET_IP_, NULL); \
|
||||
arch_smp_send_reschedule(cpu); \
|
||||
})
|
||||
|
||||
/*
|
||||
* Prepare machine for booting other CPUs.
|
||||
|
Reference in New Issue
Block a user