2009-02-07 21:16:12 +00:00
|
|
|
#ifndef _TRACE_POWER_H
|
|
|
|
#define _TRACE_POWER_H
|
|
|
|
|
|
|
|
#include <linux/ktime.h>
|
2009-02-11 18:57:25 +00:00
|
|
|
#include <linux/tracepoint.h>
|
2009-02-07 21:16:12 +00:00
|
|
|
|
|
|
|
enum {
|
|
|
|
POWER_NONE = 0,
|
|
|
|
POWER_CSTATE = 1,
|
|
|
|
POWER_PSTATE = 2,
|
|
|
|
};
|
|
|
|
|
|
|
|
struct power_trace {
|
|
|
|
ktime_t stamp;
|
|
|
|
ktime_t end;
|
|
|
|
int type;
|
|
|
|
int state;
|
|
|
|
};
|
|
|
|
|
2009-02-11 18:57:25 +00:00
|
|
|
DECLARE_TRACE(power_start,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct power_trace *it, unsigned int type, unsigned int state),
|
|
|
|
TP_ARGS(it, type, state));
|
2009-02-11 18:57:25 +00:00
|
|
|
|
|
|
|
DECLARE_TRACE(power_mark,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct power_trace *it, unsigned int type, unsigned int state),
|
|
|
|
TP_ARGS(it, type, state));
|
2009-02-11 18:57:25 +00:00
|
|
|
|
|
|
|
DECLARE_TRACE(power_end,
|
2009-03-09 19:47:18 +00:00
|
|
|
TP_PROTO(struct power_trace *it),
|
|
|
|
TP_ARGS(it));
|
2009-02-07 21:16:12 +00:00
|
|
|
|
|
|
|
#endif /* _TRACE_POWER_H */
|