aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/events/power.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/trace/events/power.h')
-rw-r--r--include/trace/events/power.h36
1 files changed, 15 insertions, 21 deletions
diff --git a/include/trace/events/power.h b/include/trace/events/power.h
index 9bb96e5a2848..c4efe9b8280d 100644
--- a/include/trace/events/power.h
+++ b/include/trace/events/power.h
@@ -16,7 +16,7 @@ enum {
16}; 16};
17#endif 17#endif
18 18
19TRACE_EVENT(power_start, 19DECLARE_EVENT_CLASS(power,
20 20
21 TP_PROTO(unsigned int type, unsigned int state), 21 TP_PROTO(unsigned int type, unsigned int state),
22 22
@@ -35,42 +35,36 @@ TRACE_EVENT(power_start,
35 TP_printk("type=%lu state=%lu", (unsigned long)__entry->type, (unsigned long)__entry->state) 35 TP_printk("type=%lu state=%lu", (unsigned long)__entry->type, (unsigned long)__entry->state)
36); 36);
37 37
38TRACE_EVENT(power_end, 38DEFINE_EVENT(power, power_start,
39
40 TP_PROTO(int dummy),
41 39
42 TP_ARGS(dummy), 40 TP_PROTO(unsigned int type, unsigned int state),
43 41
44 TP_STRUCT__entry( 42 TP_ARGS(type, state)
45 __field( u64, dummy ) 43);
46 ),
47 44
48 TP_fast_assign( 45DEFINE_EVENT(power, power_frequency,
49 __entry->dummy = 0xffff;
50 ),
51 46
52 TP_printk("dummy=%lu", (unsigned long)__entry->dummy) 47 TP_PROTO(unsigned int type, unsigned int state),
53 48
49 TP_ARGS(type, state)
54); 50);
55 51
52TRACE_EVENT(power_end,
56 53
57TRACE_EVENT(power_frequency, 54 TP_PROTO(int dummy),
58
59 TP_PROTO(unsigned int type, unsigned int state),
60 55
61 TP_ARGS(type, state), 56 TP_ARGS(dummy),
62 57
63 TP_STRUCT__entry( 58 TP_STRUCT__entry(
64 __field( u64, type ) 59 __field( u64, dummy )
65 __field( u64, state )
66 ), 60 ),
67 61
68 TP_fast_assign( 62 TP_fast_assign(
69 __entry->type = type; 63 __entry->dummy = 0xffff;
70 __entry->state = state;
71 ), 64 ),
72 65
73 TP_printk("type=%lu state=%lu", (unsigned long)__entry->type, (unsigned long) __entry->state) 66 TP_printk("dummy=%lu", (unsigned long)__entry->dummy)
67
74); 68);
75 69
76#endif /* _TRACE_POWER_H */ 70#endif /* _TRACE_POWER_H */