1 /* SPDX-License-Identifier: GPL-2.0 */
3 #define TRACE_SYSTEM cpuhp
5 #if !defined(_TRACE_CPUHP_H) || defined(TRACE_HEADER_MULTI_READ)
8 #include <linux/tracepoint.h>
10 TRACE_EVENT(cpuhp_enter
,
12 TP_PROTO(unsigned int cpu
,
15 int (*fun
)(unsigned int)),
17 TP_ARGS(cpu
, target
, idx
, fun
),
20 __field( unsigned int, cpu
)
21 __field( int, target
)
23 __field( void *, fun
)
28 __entry
->target
= target
;
33 TP_printk("cpu: %04u target: %3d step: %3d (%pf)",
34 __entry
->cpu
, __entry
->target
, __entry
->idx
, __entry
->fun
)
37 TRACE_EVENT(cpuhp_multi_enter
,
39 TP_PROTO(unsigned int cpu
,
42 int (*fun
)(unsigned int, struct hlist_node
*),
43 struct hlist_node
*node
),
45 TP_ARGS(cpu
, target
, idx
, fun
, node
),
48 __field( unsigned int, cpu
)
49 __field( int, target
)
51 __field( void *, fun
)
56 __entry
->target
= target
;
61 TP_printk("cpu: %04u target: %3d step: %3d (%pf)",
62 __entry
->cpu
, __entry
->target
, __entry
->idx
, __entry
->fun
)
65 TRACE_EVENT(cpuhp_exit
,
67 TP_PROTO(unsigned int cpu
,
72 TP_ARGS(cpu
, state
, idx
, ret
),
75 __field( unsigned int, cpu
)
83 __entry
->state
= state
;
88 TP_printk(" cpu: %04u state: %3d step: %3d ret: %d",
89 __entry
->cpu
, __entry
->state
, __entry
->idx
, __entry
->ret
)
94 /* This part must be outside protection */
95 #include <trace/define_trace.h>