Frederic Weisbecker | 1292211 | 2009-02-07 22:16:12 +0100 | [diff] [blame] | 1 | #ifndef _TRACE_POWER_H |
| 2 | #define _TRACE_POWER_H |
| 3 | |
| 4 | #include <linux/ktime.h> |
Jason Baron | b5f9fd0 | 2009-02-11 13:57:25 -0500 | [diff] [blame] | 5 | #include <linux/tracepoint.h> |
Frederic Weisbecker | 1292211 | 2009-02-07 22:16:12 +0100 | [diff] [blame] | 6 | |
| 7 | enum { |
| 8 | POWER_NONE = 0, |
| 9 | POWER_CSTATE = 1, |
| 10 | POWER_PSTATE = 2, |
| 11 | }; |
| 12 | |
| 13 | struct power_trace { |
Frederic Weisbecker | 1292211 | 2009-02-07 22:16:12 +0100 | [diff] [blame] | 14 | ktime_t stamp; |
| 15 | ktime_t end; |
| 16 | int type; |
| 17 | int state; |
Frederic Weisbecker | 1292211 | 2009-02-07 22:16:12 +0100 | [diff] [blame] | 18 | }; |
| 19 | |
Jason Baron | b5f9fd0 | 2009-02-11 13:57:25 -0500 | [diff] [blame] | 20 | DECLARE_TRACE(power_start, |
Steven Rostedt | 2939b04 | 2009-03-09 15:47:18 -0400 | [diff] [blame] | 21 | TP_PROTO(struct power_trace *it, unsigned int type, unsigned int state), |
| 22 | TP_ARGS(it, type, state)); |
Jason Baron | b5f9fd0 | 2009-02-11 13:57:25 -0500 | [diff] [blame] | 23 | |
| 24 | DECLARE_TRACE(power_mark, |
Steven Rostedt | 2939b04 | 2009-03-09 15:47:18 -0400 | [diff] [blame] | 25 | TP_PROTO(struct power_trace *it, unsigned int type, unsigned int state), |
| 26 | TP_ARGS(it, type, state)); |
Jason Baron | b5f9fd0 | 2009-02-11 13:57:25 -0500 | [diff] [blame] | 27 | |
| 28 | DECLARE_TRACE(power_end, |
Steven Rostedt | 2939b04 | 2009-03-09 15:47:18 -0400 | [diff] [blame] | 29 | TP_PROTO(struct power_trace *it), |
| 30 | TP_ARGS(it)); |
Frederic Weisbecker | 1292211 | 2009-02-07 22:16:12 +0100 | [diff] [blame] | 31 | |
| 32 | #endif /* _TRACE_POWER_H */ |