aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_hw_branches.c
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2009-03-13 05:50:27 -0400
committerIngo Molnar <mingo@elte.hu>2009-03-13 06:57:21 -0400
commit321bb5e1ac461c04b6a93f795010d6eb01d8c5ca (patch)
tree409e0c0b867e2cb24abeec4bd8905d9cf1089cb6 /kernel/trace/trace_hw_branches.c
parentba9372a8f306c4e53a5f61dcbcd6c1e4a8c2e9ac (diff)
x86, hw-branch-tracer: add selftest
Add a selftest for the hw-branch-tracer. Signed-off-by: Markus Metzger <markus.t.metzger@intel.com> LKML-Reference: <20090313105027.A30183@sedona.ch.intel.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_hw_branches.c')
-rw-r--r--kernel/trace/trace_hw_branches.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/trace/trace_hw_branches.c b/kernel/trace/trace_hw_branches.c
index a99a04c5e9cd..4ca82700c04e 100644
--- a/kernel/trace/trace_hw_branches.c
+++ b/kernel/trace/trace_hw_branches.c
@@ -342,7 +342,10 @@ struct tracer bts_tracer __read_mostly =
342 .start = bts_trace_start, 342 .start = bts_trace_start,
343 .stop = bts_trace_stop, 343 .stop = bts_trace_stop,
344 .open = trace_bts_prepare, 344 .open = trace_bts_prepare,
345 .close = trace_bts_close 345 .close = trace_bts_close,
346#ifdef CONFIG_FTRACE_SELFTEST
347 .selftest = trace_selftest_startup_hw_branches,
348#endif /* CONFIG_FTRACE_SELFTEST */
346}; 349};
347 350
348__init static int init_bts_trace(void) 351__init static int init_bts_trace(void)