summaryrefslogtreecommitdiffstats
path: root/kernel/trace/trace_functions_graph.c
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-02-07 21:33:57 +0100
committerIngo Molnar <mingo@elte.hu>2009-02-09 10:51:37 +0100
commit7447dce96f2233d250bc39a4a10a42f7c3dd46fc (patch)
treec02c991cca658e69a0c83c1a93b068df1d5caa53 /kernel/trace/trace_functions_graph.c
parent2db270a80b8f2238e536876cfb3987af02684df8 (diff)
downloadop-kernel-dev-7447dce96f2233d250bc39a4a10a42f7c3dd46fc.zip
op-kernel-dev-7447dce96f2233d250bc39a4a10a42f7c3dd46fc.tar.gz
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 222f97d..88f8d9d 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 = {
.print_line = print_graph_function,
.print_header = print_graph_headers,
.flags = &tracer_flags,
+#ifdef CONFIG_FTRACE_SELFTEST
+ .selftest = trace_selftest_startup_function_graph,
+#endif
};
static __init int init_graph_trace(void)
OpenPOWER on IntegriCloud