OMAP3: PM: Implement locking for any scratchpad access
[linux-ginger.git] / include / trace / events / power.h
blobea6d579261ad017d3c54c61fcecba118b20cd81f
1 #undef TRACE_SYSTEM
2 #define TRACE_SYSTEM power
4 #if !defined(_TRACE_POWER_H) || defined(TRACE_HEADER_MULTI_READ)
5 #define _TRACE_POWER_H
7 #include <linux/ktime.h>
8 #include <linux/tracepoint.h>
10 #ifndef _TRACE_POWER_ENUM_
11 #define _TRACE_POWER_ENUM_
12 enum {
13 POWER_NONE = 0,
14 POWER_CSTATE = 1,
15 POWER_PSTATE = 2,
17 #endif
21 TRACE_EVENT(power_start,
23 TP_PROTO(unsigned int type, unsigned int state),
25 TP_ARGS(type, state),
27 TP_STRUCT__entry(
28 __field( u64, type )
29 __field( u64, state )
32 TP_fast_assign(
33 __entry->type = type;
34 __entry->state = state;
37 TP_printk("type=%lu state=%lu", (unsigned long)__entry->type, (unsigned long)__entry->state)
40 TRACE_EVENT(power_end,
42 TP_PROTO(int dummy),
44 TP_ARGS(dummy),
46 TP_STRUCT__entry(
47 __field( u64, dummy )
50 TP_fast_assign(
51 __entry->dummy = 0xffff;
54 TP_printk("dummy=%lu", (unsigned long)__entry->dummy)
59 TRACE_EVENT(power_frequency,
61 TP_PROTO(unsigned int type, unsigned int state),
63 TP_ARGS(type, state),
65 TP_STRUCT__entry(
66 __field( u64, type )
67 __field( u64, state )
70 TP_fast_assign(
71 __entry->type = type;
72 __entry->state = state;
75 TP_printk("type=%lu state=%lu", (unsigned long)__entry->type, (unsigned long) __entry->state)
78 #endif /* _TRACE_POWER_H */
80 /* This part must be outside protection */
81 #include <trace/define_trace.h>