diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 21:37:28 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 21:37:28 +0200 |
commit | 72829bc3d63cdc592d8f7dd86ad3b3fe8900fb74 (patch) | |
tree | c4652b60b17d6087a492387e71c00cec4885cb30 /kernel/trace/trace.h | |
parent | 86069782d62e731b4835a0cf8eb7d1d0e17cf306 (diff) | |
download | linux-72829bc3d63cdc592d8f7dd86ad3b3fe8900fb74.tar.gz linux-72829bc3d63cdc592d8f7dd86ad3b3fe8900fb74.tar.bz2 linux-72829bc3d63cdc592d8f7dd86ad3b3fe8900fb74.zip |
ftrace: move enums to ftrace.h and make helper function global
picked from the mmiotracer patches to distangle the patch queues.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 25cba28eb9ba..b0ca7473671b 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h @@ -6,6 +6,18 @@ #include <linux/sched.h> #include <linux/clocksource.h> +enum trace_type { + __TRACE_FIRST_TYPE = 0, + + TRACE_FN, + TRACE_CTX, + TRACE_WAKE, + TRACE_STACK, + TRACE_SPECIAL, + + __TRACE_LAST_TYPE +}; + /* * Function trace entry - function address and parent function addres: */ @@ -130,6 +142,7 @@ struct tracer { int (*selftest)(struct tracer *trace, struct trace_array *tr); #endif + int (*print_line)(struct trace_iterator *iter); struct tracer *next; int print_max; }; @@ -276,6 +289,8 @@ extern int trace_selftest_startup_sched_switch(struct tracer *trace, #endif /* CONFIG_FTRACE_STARTUP_TEST */ extern void *head_page(struct trace_array_cpu *data); +extern int trace_seq_printf(struct trace_seq *s, const char *fmt, ...); +extern long ns2usecs(cycle_t nsec); extern unsigned long trace_flags; |