Thread (19 messages) 19 messages, 4 authors, 2022-11-18

Re: [RFC PATCH v2 6/8] treewide: Trace IPIs sent via smp_send_reschedule()

From: Peter Zijlstra <peterz@infradead.org>
Date: 2022-11-17 09:13:25
Also in: linux-alpha, linux-arm-kernel, linux-mips, linux-riscv, linux-s390, linux-sh, lkml, loongarch, sparclinux

On Wed, Nov 02, 2022 at 06:33:34PM +0000, Valentin Schneider wrote:
quoted hunk ↗ jump to hunk
diff --git a/kernel/smp.c b/kernel/smp.c
index c4d561cf50d45..44fa4b9b1f46b 100644
--- a/kernel/smp.c
+++ b/kernel/smp.c
@@ -167,6 +167,14 @@ send_call_function_ipi_mask(const struct cpumask *mask)
 	arch_send_call_function_ipi_mask(mask);
 }
 
+void smp_send_reschedule(int cpu)
+{
+	/* XXX scheduler_ipi is inline :/ */
+	trace_ipi_send_cpumask(cpumask_of(cpu), _RET_IP_, NULL);
+	arch_smp_send_reschedule(cpu);
+}
+EXPORT_SYMBOL_GPL(smp_send_reschedule);
Yeah, no.. I see some crazy archs do this, but no we're not exporting
this in generic.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help