diff options
author | Steven Rostedt <srostedt@redhat.com> | 2008-11-12 15:24:24 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-12 16:28:25 -0500 |
commit | 80e5ea4506791af206266c5921c97f11d3b17866 (patch) | |
tree | 847eb231f1c98377bdd600a801657a338cd1baa1 /kernel/trace/trace.h | |
parent | 9f029e83e968e5661d7be045bbcb620dbb909938 (diff) |
ftrace: add tracer called branch
Impact: added new branch tracer
Currently the tracing of branch profiling (unlikelys and likelys hit)
is only activated by the iter_ctrl. This patch adds a tracer called
"branch" that will just trace the branch profiling. The advantage
of adding this tracer is that it can be added to the ftrace selftests
on startup.
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 | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 7fbf37b27453..9e015f5bea1d 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -420,6 +420,8 @@ extern int trace_selftest_startup_sched_switch(struct tracer *trace, | |||
420 | struct trace_array *tr); | 420 | struct trace_array *tr); |
421 | extern int trace_selftest_startup_sysprof(struct tracer *trace, | 421 | extern int trace_selftest_startup_sysprof(struct tracer *trace, |
422 | struct trace_array *tr); | 422 | struct trace_array *tr); |
423 | extern int trace_selftest_startup_branch(struct tracer *trace, | ||
424 | struct trace_array *tr); | ||
423 | #endif /* CONFIG_FTRACE_STARTUP_TEST */ | 425 | #endif /* CONFIG_FTRACE_STARTUP_TEST */ |
424 | 426 | ||
425 | extern void *head_page(struct trace_array_cpu *data); | 427 | extern void *head_page(struct trace_array_cpu *data); |