Merge branch 'tracing/ftrace'; commit 'v2.6.29-rc7' into tracing/core
[sfrench/cifs-2.6.git] / include / trace / power.h
1 #ifndef _TRACE_POWER_H
2 #define _TRACE_POWER_H
3
4 #include <linux/ktime.h>
5 #include <linux/tracepoint.h>
6
7 enum {
8         POWER_NONE = 0,
9         POWER_CSTATE = 1,
10         POWER_PSTATE = 2,
11 };
12
13 struct power_trace {
14 #ifdef CONFIG_POWER_TRACER
15         ktime_t                 stamp;
16         ktime_t                 end;
17         int                     type;
18         int                     state;
19 #endif
20 };
21
22 DECLARE_TRACE(power_start,
23         TPPROTO(struct power_trace *it, unsigned int type, unsigned int state),
24                 TPARGS(it, type, state));
25
26 DECLARE_TRACE(power_mark,
27         TPPROTO(struct power_trace *it, unsigned int type, unsigned int state),
28                 TPARGS(it, type, state));
29
30 DECLARE_TRACE(power_end,
31         TPPROTO(struct power_trace *it),
32                 TPARGS(it));
33
34 #endif /* _TRACE_POWER_H */