aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2008-05-23 15:37:28 -0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-23 15:37:28 -0400
commit72829bc3d63cdc592d8f7dd86ad3b3fe8900fb74 (patch)
treec4652b60b17d6087a492387e71c00cec4885cb30 /kernel/trace/trace.h
parent86069782d62e731b4835a0cf8eb7d1d0e17cf306 (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.h15
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
9enum 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
278extern void *head_page(struct trace_array_cpu *data); 291extern void *head_page(struct trace_array_cpu *data);
292extern int trace_seq_printf(struct trace_seq *s, const char *fmt, ...);
293extern long ns2usecs(cycle_t nsec);
279 294
280extern unsigned long trace_flags; 295extern unsigned long trace_flags;
281 296