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),
32 __entry->state = state;
35 TP_printk("type=%lu state=%lu", (unsigned long)__entry->type, (unsigned long)__entry->state)
38 DEFINE_EVENT(power, power_start,
40 TP_PROTO(unsigned int type, unsigned int state),
45 DEFINE_EVENT(power, power_frequency,
47 TP_PROTO(unsigned int type, unsigned int state),
52 TRACE_EVENT(power_end,
63 __entry->dummy = 0xffff;
66 TP_printk("dummy=%lu", (unsigned long)__entry->dummy)
70 #endif /* _TRACE_POWER_H */
72 /* This part must be outside protection */
73 #include <trace/define_trace.h>