Merge tag 'iommu-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
[linux/fpc-iii.git] / include / trace / events / cpuhp.h
blobad16f77310c6bf6a24d2eaccfa6eb784cfafa42d
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #undef TRACE_SYSTEM
3 #define TRACE_SYSTEM cpuhp
5 #if !defined(_TRACE_CPUHP_H) || defined(TRACE_HEADER_MULTI_READ)
6 #define _TRACE_CPUHP_H
8 #include <linux/tracepoint.h>
10 TRACE_EVENT(cpuhp_enter,
12 TP_PROTO(unsigned int cpu,
13 int target,
14 int idx,
15 int (*fun)(unsigned int)),
17 TP_ARGS(cpu, target, idx, fun),
19 TP_STRUCT__entry(
20 __field( unsigned int, cpu )
21 __field( int, target )
22 __field( int, idx )
23 __field( void *, fun )
26 TP_fast_assign(
27 __entry->cpu = cpu;
28 __entry->target = target;
29 __entry->idx = idx;
30 __entry->fun = fun;
33 TP_printk("cpu: %04u target: %3d step: %3d (%ps)",
34 __entry->cpu, __entry->target, __entry->idx, __entry->fun)
37 TRACE_EVENT(cpuhp_multi_enter,
39 TP_PROTO(unsigned int cpu,
40 int target,
41 int idx,
42 int (*fun)(unsigned int, struct hlist_node *),
43 struct hlist_node *node),
45 TP_ARGS(cpu, target, idx, fun, node),
47 TP_STRUCT__entry(
48 __field( unsigned int, cpu )
49 __field( int, target )
50 __field( int, idx )
51 __field( void *, fun )
54 TP_fast_assign(
55 __entry->cpu = cpu;
56 __entry->target = target;
57 __entry->idx = idx;
58 __entry->fun = fun;
61 TP_printk("cpu: %04u target: %3d step: %3d (%ps)",
62 __entry->cpu, __entry->target, __entry->idx, __entry->fun)
65 TRACE_EVENT(cpuhp_exit,
67 TP_PROTO(unsigned int cpu,
68 int state,
69 int idx,
70 int ret),
72 TP_ARGS(cpu, state, idx, ret),
74 TP_STRUCT__entry(
75 __field( unsigned int, cpu )
76 __field( int, state )
77 __field( int, idx )
78 __field( int, ret )
81 TP_fast_assign(
82 __entry->cpu = cpu;
83 __entry->state = state;
84 __entry->idx = idx;
85 __entry->ret = ret;
88 TP_printk(" cpu: %04u state: %3d step: %3d ret: %d",
89 __entry->cpu, __entry->state, __entry->idx, __entry->ret)
92 #endif
94 /* This part must be outside protection */
95 #include <trace/define_trace.h>