diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-03-03 19:48:42 +0100 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-03-25 01:51:48 +0100 |
commit | dbeafd0d6131d0f6ae8cd7551f5f4bf8c54aa49a (patch) | |
tree | a02766ddf429cfef75814ba584feea25cf9425e5 /kernel/trace/trace_functions.c | |
parent | tracing: Postpone tracer start-up tests till the system is more robust (diff) | |
download | linux-dbeafd0d6131d0f6ae8cd7551f5f4bf8c54aa49a.tar.xz linux-dbeafd0d6131d0f6ae8cd7551f5f4bf8c54aa49a.zip |
ftrace: Have function tracing start in early boot up
Register the function tracer right after the tracing buffers are initialized
in early boot up. This will allow function tracing to begin early if it is
enabled via the kernel command line.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_functions.c')
-rw-r--r-- | kernel/trace/trace_functions.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/trace/trace_functions.c b/kernel/trace/trace_functions.c index 0efa00d80623..4199ca61b0e5 100644 --- a/kernel/trace/trace_functions.c +++ b/kernel/trace/trace_functions.c @@ -687,9 +687,8 @@ static inline int init_func_cmd_traceon(void) } #endif /* CONFIG_DYNAMIC_FTRACE */ -static __init int init_function_trace(void) +__init int init_function_trace(void) { init_func_cmd_traceon(); return register_tracer(&function_trace); } -core_initcall(init_function_trace); |