mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
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>
This commit is contained in:
parent
2db270a80b
commit
7447dce96f
3 changed files with 55 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue