2 #define TRACE_SYSTEM power
4 #if !defined(_TRACE_POWER_H) || defined(TRACE_HEADER_MULTI_READ)
7 #include <linux/ktime.h>
8 #include <linux/tracepoint.h>
10 #ifndef _TRACE_POWER_ENUM_
11 #define _TRACE_POWER_ENUM_
19 DECLARE_EVENT_CLASS(power
,
21 TP_PROTO(unsigned int type
, unsigned int state
, unsigned int cpu_id
),
23 TP_ARGS(type
, state
, cpu_id
),
28 __field( u64
, cpu_id
)
33 __entry
->state
= state
;
34 __entry
->cpu_id
= cpu_id
;
37 TP_printk("type=%lu state=%lu cpu_id=%lu", (unsigned long)__entry
->type
,
38 (unsigned long)__entry
->state
, (unsigned long)__entry
->cpu_id
)
41 DEFINE_EVENT(power
, power_start
,
43 TP_PROTO(unsigned int type
, unsigned int state
, unsigned int cpu_id
),
45 TP_ARGS(type
, state
, cpu_id
)
48 DEFINE_EVENT(power
, power_frequency
,
50 TP_PROTO(unsigned int type
, unsigned int state
, unsigned int cpu_id
),
52 TP_ARGS(type
, state
, cpu_id
)
55 TRACE_EVENT(power_end
,
57 TP_PROTO(unsigned int cpu_id
),
62 __field( u64
, cpu_id
)
66 __entry
->cpu_id
= cpu_id
;
69 TP_printk("cpu_id=%lu", (unsigned long)__entry
->cpu_id
)
73 #endif /* _TRACE_POWER_H */
75 /* This part must be outside protection */
76 #include <trace/define_trace.h>