diff options
author | Steven Rostedt <srostedt@redhat.com> | 2008-12-23 23:24:12 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-29 06:46:11 -0500 |
commit | f0868d1e23a8efec33beb3aa688aab7fdb1ae093 (patch) | |
tree | 73593e14d0d127fe3fe055a85b6e16b50a43578a /kernel/trace/trace.h | |
parent | c47956d9ae3341d2d1998bff26620fa3338c01e4 (diff) |
ftrace: set up trace event hash infrastructure
Impact: simplify/generalize/refactor trace.c
The trace.c file is becoming more difficult to maintain due to the
growing number of events. There is several formats that an event may
be printed. This patch sets up the infrastructure of an event hash to
allow for events to register how they should be printed.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace.h')
-rw-r--r-- | kernel/trace/trace.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 3a357382cce6..6bd71fa1e1c7 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -30,7 +30,7 @@ enum trace_type { | |||
30 | TRACE_HW_BRANCHES, | 30 | TRACE_HW_BRANCHES, |
31 | TRACE_POWER, | 31 | TRACE_POWER, |
32 | 32 | ||
33 | __TRACE_LAST_TYPE | 33 | __TRACE_LAST_TYPE, |
34 | }; | 34 | }; |
35 | 35 | ||
36 | /* | 36 | /* |
@@ -484,12 +484,6 @@ extern int trace_selftest_startup_branch(struct tracer *trace, | |||
484 | #endif /* CONFIG_FTRACE_STARTUP_TEST */ | 484 | #endif /* CONFIG_FTRACE_STARTUP_TEST */ |
485 | 485 | ||
486 | extern void *head_page(struct trace_array_cpu *data); | 486 | extern void *head_page(struct trace_array_cpu *data); |
487 | extern int trace_seq_printf(struct trace_seq *s, const char *fmt, ...); | ||
488 | extern int | ||
489 | seq_print_ip_sym(struct trace_seq *s, unsigned long ip, | ||
490 | unsigned long sym_flags); | ||
491 | extern ssize_t trace_seq_to_user(struct trace_seq *s, char __user *ubuf, | ||
492 | size_t cnt); | ||
493 | extern long ns2usecs(cycle_t nsec); | 487 | extern long ns2usecs(cycle_t nsec); |
494 | extern int | 488 | extern int |
495 | trace_vprintk(unsigned long ip, int depth, const char *fmt, va_list args); | 489 | trace_vprintk(unsigned long ip, int depth, const char *fmt, va_list args); |