2009-02-07 14:16:12 -07:00
|
|
|
#ifndef _TRACE_POWER_H
|
|
|
|
#define _TRACE_POWER_H
|
|
|
|
|
|
|
|
#include <linux/ktime.h>
|
2009-02-11 11:57:25 -07:00
|
|
|
#include <linux/tracepoint.h>
|
2009-02-07 14:16:12 -07: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 11:57:25 -07:00
|
|
|
DECLARE_TRACE(power_start,
|
2009-03-09 13:47:18 -06:00
|
|
|
TP_PROTO(struct power_trace *it, unsigned int type, unsigned int state),
|
|
|
|
TP_ARGS(it, type, state));
|
2009-02-11 11:57:25 -07:00
|
|
|
|
|
|
|
DECLARE_TRACE(power_mark,
|
2009-03-09 13:47:18 -06:00
|
|
|
TP_PROTO(struct power_trace *it, unsigned int type, unsigned int state),
|
|
|
|
TP_ARGS(it, type, state));
|
2009-02-11 11:57:25 -07:00
|
|
|
|
|
|
|
DECLARE_TRACE(power_end,
|
2009-03-09 13:47:18 -06:00
|
|
|
TP_PROTO(struct power_trace *it),
|
|
|
|
TP_ARGS(it));
|
2009-02-07 14:16:12 -07:00
|
|
|
|
|
|
|
#endif /* _TRACE_POWER_H */
|