aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2008-11-12 15:24:24 -0500
committerIngo Molnar <mingo@elte.hu>2008-11-12 16:28:25 -0500
commit80e5ea4506791af206266c5921c97f11d3b17866 (patch)
tree847eb231f1c98377bdd600a801657a338cd1baa1 /kernel/trace/trace.h
parent9f029e83e968e5661d7be045bbcb620dbb909938 (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.h2
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);
421extern int trace_selftest_startup_sysprof(struct tracer *trace, 421extern int trace_selftest_startup_sysprof(struct tracer *trace,
422 struct trace_array *tr); 422 struct trace_array *tr);
423extern 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
425extern void *head_page(struct trace_array_cpu *data); 427extern void *head_page(struct trace_array_cpu *data);