GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / include / trace / events / power.h
blob35a2a6e7bf1e74992b8b83b242c4a507fed4246f
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
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),
25 TP_STRUCT__entry(
26 __field( u64, type )
27 __field( u64, state )
28 __field( u64, cpu_id )
31 TP_fast_assign(
32 __entry->type = type;
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),
59 TP_ARGS(cpu_id),
61 TP_STRUCT__entry(
62 __field( u64, cpu_id )
65 TP_fast_assign(
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>