aboutsummaryrefslogtreecommitdiff
path: root/arch/loongarch
diff options
context:
space:
mode:
authorGravatar Valentin Schneider <vschneid@redhat.com> 2023-03-07 14:35:56 +0000
committerGravatar Peter Zijlstra <peterz@infradead.org> 2023-03-24 11:01:28 +0100
commit4c8c3c7f70a6779d30f5492acbc9978f4636fe7a (patch)
tree96db2ecffefa39802d9b5d59d4eb5f6084beb04e /arch/loongarch
parentirq_work: Trace self-IPIs sent via arch_irq_work_raise() (diff)
downloadlinux-4c8c3c7f70a6779d30f5492acbc9978f4636fe7a.tar.gz
linux-4c8c3c7f70a6779d30f5492acbc9978f4636fe7a.tar.bz2
linux-4c8c3c7f70a6779d30f5492acbc9978f4636fe7a.zip
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
Diffstat (limited to 'arch/loongarch')
-rw-r--r--arch/loongarch/kernel/smp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/loongarch/kernel/smp.c b/arch/loongarch/kernel/smp.c
index 8c6e227cb29d..83225610a148 100644
--- a/arch/loongarch/kernel/smp.c
+++ b/arch/loongarch/kernel/smp.c
@@ -155,11 +155,11 @@ void loongson_send_ipi_mask(const struct cpumask *mask, unsigned int action)
* it goes straight through and wastes no time serializing
* anything. Worst case is that we lose a reschedule ...
*/
-void smp_send_reschedule(int cpu)
+void arch_smp_send_reschedule(int cpu)
{
loongson_send_ipi_single(cpu, SMP_RESCHEDULE);
}
-EXPORT_SYMBOL_GPL(smp_send_reschedule);
+EXPORT_SYMBOL_GPL(arch_smp_send_reschedule);
irqreturn_t loongson_ipi_interrupt(int irq, void *dev)
{