Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

smp: Trace IPIs sent via arch_send_call_function_ipi_mask()

This simply wraps around the arch function and prepends it with a
tracepoint, similar to send_call_function_single_ipi().

Signed-off-by: Valentin Schneider <vschneid@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Link: https://lore.kernel.org/r/20230307143558.294354-4-vschneid@redhat.com

authored by

Valentin Schneider and committed by
Peter Zijlstra
08407b5f cc9cb0a7

+8 -1
+8 -1
kernel/smp.c
··· 103 103 smpcfd_prepare_cpu(smp_processor_id()); 104 104 } 105 105 106 + static __always_inline void 107 + send_call_function_ipi_mask(struct cpumask *mask) 108 + { 109 + trace_ipi_send_cpumask(mask, _RET_IP_, NULL); 110 + arch_send_call_function_ipi_mask(mask); 111 + } 112 + 106 113 #ifdef CONFIG_CSD_LOCK_WAIT_DEBUG 107 114 108 115 static DEFINE_STATIC_KEY_MAYBE(CONFIG_CSD_LOCK_WAIT_DEBUG_DEFAULT, csdlock_debug_enabled); ··· 769 762 if (nr_cpus == 1) 770 763 send_call_function_single_ipi(last_cpu); 771 764 else if (likely(nr_cpus > 1)) 772 - arch_send_call_function_ipi_mask(cfd->cpumask_ipi); 765 + send_call_function_ipi_mask(cfd->cpumask_ipi); 773 766 } 774 767 775 768 if (run_local && (!cond_func || cond_func(this_cpu, info))) {