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