Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
[deliverable/linux.git] / include / trace / power.h
CommitLineData
12922110
FW
1#ifndef _TRACE_POWER_H
2#define _TRACE_POWER_H
3
4#include <linux/ktime.h>
b5f9fd0f 5#include <linux/tracepoint.h>
12922110
FW
6
7enum {
8 POWER_NONE = 0,
9 POWER_CSTATE = 1,
10 POWER_PSTATE = 2,
11};
12
13struct power_trace {
12922110
FW
14 ktime_t stamp;
15 ktime_t end;
16 int type;
17 int state;
12922110
FW
18};
19
b5f9fd0f 20DECLARE_TRACE(power_start,
2939b046
SR
21 TP_PROTO(struct power_trace *it, unsigned int type, unsigned int state),
22 TP_ARGS(it, type, state));
b5f9fd0f
JB
23
24DECLARE_TRACE(power_mark,
2939b046
SR
25 TP_PROTO(struct power_trace *it, unsigned int type, unsigned int state),
26 TP_ARGS(it, type, state));
b5f9fd0f
JB
27
28DECLARE_TRACE(power_end,
2939b046
SR
29 TP_PROTO(struct power_trace *it),
30 TP_ARGS(it));
12922110
FW
31
32#endif /* _TRACE_POWER_H */
This page took 0.047683 seconds and 5 git commands to generate.