1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM csd
5 #if !defined(_TRACE_CSD_H) || defined(TRACE_HEADER_MULTI_READ)
8 #include <linux/tracepoint.h>
10 TRACE_EVENT(csd_queue_cpu
,
12 TP_PROTO(const unsigned int cpu
,
13 unsigned long callsite
,
15 call_single_data_t
*csd
),
17 TP_ARGS(cpu
, callsite
, func
, csd
),
20 __field(unsigned int, cpu
)
21 __field(void *, callsite
)
28 __entry
->callsite
= (void *)callsite
;
33 TP_printk("cpu=%u callsite=%pS func=%ps csd=%p",
34 __entry
->cpu
, __entry
->callsite
, __entry
->func
, __entry
->csd
)
38 * Tracepoints for a function which is called as an effect of smp_call_function.*
40 DECLARE_EVENT_CLASS(csd_function
,
42 TP_PROTO(smp_call_func_t func
, call_single_data_t
*csd
),
56 TP_printk("func=%ps, csd=%p", __entry
->func
, __entry
->csd
)
59 DEFINE_EVENT(csd_function
, csd_function_entry
,
60 TP_PROTO(smp_call_func_t func
, call_single_data_t
*csd
),
64 DEFINE_EVENT(csd_function
, csd_function_exit
,
65 TP_PROTO(smp_call_func_t func
, call_single_data_t
*csd
),
69 #endif /* _TRACE_CSD_H */
71 /* This part must be outside protection */
72 #include <trace/define_trace.h>