diff options
Diffstat (limited to 'include/trace/events/cpuhp.h')
-rw-r--r-- | include/trace/events/cpuhp.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/trace/events/cpuhp.h b/include/trace/events/cpuhp.h index ad16f77310c6..f302ab6dbfb8 100644 --- a/include/trace/events/cpuhp.h +++ b/include/trace/events/cpuhp.h | |||
@@ -89,6 +89,28 @@ TRACE_EVENT(cpuhp_exit, | |||
89 | __entry->cpu, __entry->state, __entry->idx, __entry->ret) | 89 | __entry->cpu, __entry->state, __entry->idx, __entry->ret) |
90 | ); | 90 | ); |
91 | 91 | ||
92 | TRACE_EVENT(cpuhp_pause, | ||
93 | TP_PROTO(struct cpumask *cpus, u64 start_time, unsigned char pause), | ||
94 | |||
95 | TP_ARGS(cpus, start_time, pause), | ||
96 | |||
97 | TP_STRUCT__entry( | ||
98 | __field( unsigned int, cpus ) | ||
99 | __field( unsigned int, active_cpus ) | ||
100 | __field( unsigned int, time ) | ||
101 | __field( unsigned char, pause ) | ||
102 | ), | ||
103 | |||
104 | TP_fast_assign( | ||
105 | __entry->cpus = cpumask_bits(cpus)[0]; | ||
106 | __entry->active_cpus = cpumask_bits(cpu_active_mask)[0]; | ||
107 | __entry->time = div64_u64(sched_clock() - start_time, 1000); | ||
108 | __entry->pause = pause; | ||
109 | ), | ||
110 | |||
111 | TP_printk("req_cpus=0x%x act_cpus=0x%x time=%u us paused=%d", | ||
112 | __entry->cpus, __entry->active_cpus, __entry->time, __entry->pause) | ||
113 | ); | ||
92 | #endif | 114 | #endif |
93 | 115 | ||
94 | /* This part must be outside protection */ | 116 | /* This part must be outside protection */ |