aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_functions_graph.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-02-07 15:33:57 -0500
committerIngo Molnar <mingo@elte.hu>2009-02-09 04:51:37 -0500
commit7447dce96f2233d250bc39a4a10a42f7c3dd46fc (patch)
treec02c991cca658e69a0c83c1a93b068df1d5caa53 /kernel/trace/trace_functions_graph.c
parent2db270a80b8f2238e536876cfb3987af02684df8 (diff)
tracing/function-graph-tracer: provide a selftest for the function graph tracer
Making it more easy to do a basic regression test for this tracer. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace/trace_functions_graph.c')
-rw-r--r--kernel/trace/trace_functions_graph.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c
index 222f97d336a6..88f8d9d80a93 100644
--- a/kernel/trace/trace_functions_graph.c
+++ b/kernel/trace/trace_functions_graph.c
@@ -750,6 +750,9 @@ static struct tracer graph_trace __read_mostly = {
750 .print_line = print_graph_function, 750 .print_line = print_graph_function,
751 .print_header = print_graph_headers, 751 .print_header = print_graph_headers,
752 .flags = &tracer_flags, 752 .flags = &tracer_flags,
753#ifdef CONFIG_FTRACE_SELFTEST
754 .selftest = trace_selftest_startup_function_graph,
755#endif
753}; 756};
754 757
755static __init int init_graph_trace(void) 758static __init int init_graph_trace(void)