diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 15:37:28 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-05-23 15:37:28 -0400 |
commit | 72829bc3d63cdc592d8f7dd86ad3b3fe8900fb74 (patch) | |
tree | c4652b60b17d6087a492387e71c00cec4885cb30 /kernel/trace/trace.h | |
parent | 86069782d62e731b4835a0cf8eb7d1d0e17cf306 (diff) |
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 @@ | |||
6 | #include <linux/sched.h> | 6 | #include <linux/sched.h> |
7 | #include <linux/clocksource.h> | 7 | #include <linux/clocksource.h> |
8 | 8 | ||
9 | enum trace_type { | ||
10 | __TRACE_FIRST_TYPE = 0, | ||
11 | |||
12 | TRACE_FN, | ||
13 | TRACE_CTX, | ||
14 | TRACE_WAKE, | ||
15 | TRACE_STACK, | ||
16 | TRACE_SPECIAL, | ||
17 | |||
18 | __TRACE_LAST_TYPE | ||
19 | }; | ||
20 | |||
9 | /* | 21 | /* |
10 | * Function trace entry - function address and parent function addres: | 22 | * Function trace entry - function address and parent function addres: |
11 | */ | 23 | */ |
@@ -130,6 +142,7 @@ struct tracer { | |||
130 | int (*selftest)(struct tracer *trace, | 142 | int (*selftest)(struct tracer *trace, |
131 | struct trace_array *tr); | 143 | struct trace_array *tr); |
132 | #endif | 144 | #endif |
145 | int (*print_line)(struct trace_iterator *iter); | ||
133 | struct tracer *next; | 146 | struct tracer *next; |
134 | int print_max; | 147 | int print_max; |
135 | }; | 148 | }; |
@@ -276,6 +289,8 @@ extern int trace_selftest_startup_sched_switch(struct tracer *trace, | |||
276 | #endif /* CONFIG_FTRACE_STARTUP_TEST */ | 289 | #endif /* CONFIG_FTRACE_STARTUP_TEST */ |
277 | 290 | ||
278 | extern void *head_page(struct trace_array_cpu *data); | 291 | extern void *head_page(struct trace_array_cpu *data); |
292 | extern int trace_seq_printf(struct trace_seq *s, const char *fmt, ...); | ||
293 | extern long ns2usecs(cycle_t nsec); | ||
279 | 294 | ||
280 | extern unsigned long trace_flags; | 295 | extern unsigned long trace_flags; |
281 | 296 | ||