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
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Makefile | ||
| asm-offsets.c | ||
| dma.c | ||
| head.S | ||
| hexagon_ksyms.c | ||
| irq_cpu.c | ||
| kgdb.c | ||
| module.c | ||
| process.c | ||
| ptrace.c | ||
| reset.c | ||
| screen_info.c | ||
| setup.c | ||
| signal.c | ||
| smp.c | ||
| stacktrace.c | ||
| syscalltab.c | ||
| time.c | ||
| trampoline.S | ||
| traps.c | ||
| vdso.c | ||
| vm_entry.S | ||
| vm_events.c | ||
| vm_init_segtable.S | ||
| vm_ops.S | ||
| vm_switch.S | ||
| vm_vectors.S | ||
| vmlinux.lds.S | ||