tracing, power-trace: make it build even if the power-tracer is turned off
[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         ktime_t                 stamp;
15         ktime_t                 end;
16         int                     type;
17         int                     state;
18 };
19
20 DECLARE_TRACE(power_start,
21         TPPROTO(struct power_trace *it, unsigned int type, unsigned int state),
22                 TPARGS(it, type, state));
23
24 DECLARE_TRACE(power_mark,
25         TPPROTO(struct power_trace *it, unsigned int type, unsigned int state),
26                 TPARGS(it, type, state));
27
28 DECLARE_TRACE(power_end,
29         TPPROTO(struct power_trace *it),
30                 TPARGS(it));
31
32 #endif /* _TRACE_POWER_H */