2 #define TRACE_SYSTEM cpuhp
4 #if !defined(_TRACE_CPUHP_H) || defined(TRACE_HEADER_MULTI_READ)
7 #include <linux/tracepoint.h>
9 TRACE_EVENT(cpuhp_enter
,
11 TP_PROTO(unsigned int cpu
,
14 int (*fun
)(unsigned int)),
16 TP_ARGS(cpu
, target
, idx
, fun
),
19 __field( unsigned int, cpu
)
20 __field( int, target
)
22 __field( void *, fun
)
27 __entry
->target
= target
;
32 TP_printk("cpu: %04u target: %3d step: %3d (%pf)",
33 __entry
->cpu
, __entry
->target
, __entry
->idx
, __entry
->fun
)
36 TRACE_EVENT(cpuhp_multi_enter
,
38 TP_PROTO(unsigned int cpu
,
41 int (*fun
)(unsigned int, struct hlist_node
*),
42 struct hlist_node
*node
),
44 TP_ARGS(cpu
, target
, idx
, fun
, node
),
47 __field( unsigned int, cpu
)
48 __field( int, target
)
50 __field( void *, fun
)
55 __entry
->target
= target
;
60 TP_printk("cpu: %04u target: %3d step: %3d (%pf)",
61 __entry
->cpu
, __entry
->target
, __entry
->idx
, __entry
->fun
)
64 TRACE_EVENT(cpuhp_exit
,
66 TP_PROTO(unsigned int cpu
,
71 TP_ARGS(cpu
, state
, idx
, ret
),
74 __field( unsigned int, cpu
)
82 __entry
->state
= state
;
87 TP_printk(" cpu: %04u state: %3d step: %3d ret: %d",
88 __entry
->cpu
, __entry
->state
, __entry
->idx
, __entry
->ret
)
93 /* This part must be outside protection */
94 #include <trace/define_trace.h>