summaryrefslogtreecommitdiff
path: root/kernel/trace/trace.c
diff options
context:
space:
mode:
authorSteven Rostedt (VMware) <rostedt@goodmis.org>2017-03-03 13:48:42 -0500
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2017-03-24 20:51:48 -0400
commitdbeafd0d6131d0f6ae8cd7551f5f4bf8c54aa49a (patch)
treea02766ddf429cfef75814ba584feea25cf9425e5 /kernel/trace/trace.c
parent9afecfbb95198ec3ea6d52cca4711ea314f29ec6 (diff)
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.c')
-rw-r--r--kernel/trace/trace.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 68a6f78f6862..4fa8e8f3c765 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -8036,6 +8036,9 @@ __init static int tracer_alloc_buffers(void)
register_tracer(&nop_trace);
+ /* Function tracing may start here (via kernel command line) */
+ init_function_trace();
+
/* All seems OK, enable tracing */
tracing_disabled = 0;