blob: ef204666e9832039958235e2cc08ae3cae0f528a [file] [log] [blame]
Frederic Weisbecker12922112009-02-07 22:16:12 +01001#ifndef _TRACE_POWER_H
2#define _TRACE_POWER_H
3
4#include <linux/ktime.h>
Jason Baronb5f9fd02009-02-11 13:57:25 -05005#include <linux/tracepoint.h>
Frederic Weisbecker12922112009-02-07 22:16:12 +01006
7enum {
8 POWER_NONE = 0,
9 POWER_CSTATE = 1,
10 POWER_PSTATE = 2,
11};
12
13struct power_trace {
Frederic Weisbecker12922112009-02-07 22:16:12 +010014 ktime_t stamp;
15 ktime_t end;
16 int type;
17 int state;
Frederic Weisbecker12922112009-02-07 22:16:12 +010018};
19
Jason Baronb5f9fd02009-02-11 13:57:25 -050020DECLARE_TRACE(power_start,
Steven Rostedt2939b042009-03-09 15:47:18 -040021 TP_PROTO(struct power_trace *it, unsigned int type, unsigned int state),
22 TP_ARGS(it, type, state));
Jason Baronb5f9fd02009-02-11 13:57:25 -050023
24DECLARE_TRACE(power_mark,
Steven Rostedt2939b042009-03-09 15:47:18 -040025 TP_PROTO(struct power_trace *it, unsigned int type, unsigned int state),
26 TP_ARGS(it, type, state));
Jason Baronb5f9fd02009-02-11 13:57:25 -050027
28DECLARE_TRACE(power_end,
Steven Rostedt2939b042009-03-09 15:47:18 -040029 TP_PROTO(struct power_trace *it),
30 TP_ARGS(it));
Frederic Weisbecker12922112009-02-07 22:16:12 +010031
32#endif /* _TRACE_POWER_H */