diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-02-15 20:43:03 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-15 20:43:03 +0100 |
commit | 72b623c73685e86b70a51855e1058ebc98a9f6ed (patch) | |
tree | ce0942ca907ad09480358076fd2724f8c1d10547 /include | |
parent | 9abd60304816a5b0fd9e51034f78e3eaed89f901 (diff) | |
parent | b5f9fd0f8a05c9bafb91a9a85b9110938d8e585b (diff) |
Merge branch 'tip/tracing/ftrace' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into tracing/power-tracer
Diffstat (limited to 'include')
-rw-r--r-- | include/trace/power.h | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/include/trace/power.h b/include/trace/power.h index c7cefbcdaea..2c733e58e89 100644 --- a/include/trace/power.h +++ b/include/trace/power.h @@ -2,6 +2,7 @@ #define _TRACE_POWER_H #include <linux/ktime.h> +#include <linux/tracepoint.h> enum { POWER_NONE = 0, @@ -18,18 +19,16 @@ struct power_trace { #endif }; -#ifdef CONFIG_POWER_TRACER -extern void trace_power_start(struct power_trace *it, unsigned int type, - unsigned int state); -extern void trace_power_mark(struct power_trace *it, unsigned int type, - unsigned int state); -extern void trace_power_end(struct power_trace *it); -#else -static inline void trace_power_start(struct power_trace *it, unsigned int type, - unsigned int state) { } -static inline void trace_power_mark(struct power_trace *it, unsigned int type, - unsigned int state) { } -static inline void trace_power_end(struct power_trace *it) { } -#endif +DECLARE_TRACE(power_start, + TPPROTO(struct power_trace *it, unsigned int type, unsigned int state), + TPARGS(it, type, state)); + +DECLARE_TRACE(power_mark, + TPPROTO(struct power_trace *it, unsigned int type, unsigned int state), + TPARGS(it, type, state)); + +DECLARE_TRACE(power_end, + TPPROTO(struct power_trace *it), + TPARGS(it)); #endif /* _TRACE_POWER_H */ |