Linux 4.8.3
[linux/fpc-iii.git] / include / trace / events / cpuhp.h
bloba72bd93ec7e5b9f47057ba136faec3a59e2ce587
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM cpuhp
4 #if !defined(_TRACE_CPUHP_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_CPUHP_H
7 #include <linux/tracepoint.h>
9 TRACE_EVENT(cpuhp_enter,
11 TP_PROTO(unsigned int cpu,
12 int target,
13 int idx,
14 int (*fun)(unsigned int)),
16 TP_ARGS(cpu, target, idx, fun),
18 TP_STRUCT__entry(
19 __field( unsigned int, cpu )
20 __field( int, target )
21 __field( int, idx )
22 __field( void *, fun )
25 TP_fast_assign(
26 __entry->cpu = cpu;
27 __entry->target = target;
28 __entry->idx = idx;
29 __entry->fun = fun;
32 TP_printk("cpu: %04u target: %3d step: %3d (%pf)",
33 __entry->cpu, __entry->target, __entry->idx, __entry->fun)
36 TRACE_EVENT(cpuhp_exit,
38 TP_PROTO(unsigned int cpu,
39 int state,
40 int idx,
41 int ret),
43 TP_ARGS(cpu, state, idx, ret),
45 TP_STRUCT__entry(
46 __field( unsigned int, cpu )
47 __field( int, state )
48 __field( int, idx )
49 __field( int, ret )
52 TP_fast_assign(
53 __entry->cpu = cpu;
54 __entry->state = state;
55 __entry->idx = idx;
56 __entry->ret = ret;
59 TP_printk(" cpu: %04u state: %3d step: %3d ret: %d",
60 __entry->cpu, __entry->state, __entry->idx, __entry->ret)
63 #endif
65 /* This part must be outside protection */
66 #include <trace/define_trace.h>