2 #define TRACE_SYSTEM smp
4 #if !defined(_TRACE_SMP_H) || defined(TRACE_HEADER_MULTI_READ)
7 #include <linux/tracepoint.h>
9 DECLARE_EVENT_CLASS(smp_call_class,
16 __field( void *, func )
23 TP_printk("func=%pf", __entry->func)
27 * smp_call_func_entry - called in the generic smp-cross-call-handler
28 * immediately before calling the destination
30 * @func: function pointer
32 * When used in combination with the smp_call_func_exit tracepoint
33 * we can determine the cross-call runtime.
35 DEFINE_EVENT(smp_call_class, smp_call_func_entry,
43 * smp_call_func_exit - called in the generic smp-cross-call-handler
44 * immediately after the destination function
46 * @func: function pointer
48 * When used in combination with the smp_call_entry tracepoint
49 * we can determine the cross-call runtime.
51 DEFINE_EVENT(smp_call_class, smp_call_func_exit,
59 * smp_call_func_send - called as destination function is set
60 * in the per-cpu storage
61 * @func: function pointer
62 * @dest: cpu to send to
64 * When used in combination with the smp_cross_call_entry tracepoint
65 * we can determine the call-to-run latency.
67 TRACE_EVENT(smp_call_func_send,
69 TP_PROTO(void * func, int dest),
74 __field( void * , func )
83 TP_printk("dest=%d func=%pf", __entry->dest,
87 #endif /* _TRACE_SMP_H */
89 /* This part must be outside protection */
90 #include <trace/define_trace.h>