diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-03-03 13:37:33 -0500 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-03-24 13:08:43 -0400 |
commit | e725c731e3bb1e892e7b564c945b121cb41d1087 (patch) | |
tree | 90e6ebfbd020855bb1914a979fd78d4ef65b8b9d /init | |
parent | 97da3854c526d3a6ee05c849c96e48d21527606c (diff) | |
download | blackbird-obmc-linux-e725c731e3bb1e892e7b564c945b121cb41d1087.tar.gz blackbird-obmc-linux-e725c731e3bb1e892e7b564c945b121cb41d1087.zip |
tracing: Split tracing initialization into two for early initialization
Create an early_trace_init() function that will initialize the buffers and
allow for ealier use of trace_printk(). This will also allow for future work
to have function tracing start earlier at boot up.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c index f9c9d9948203..81a49e8d54cc 100644 --- a/init/main.c +++ b/init/main.c @@ -545,6 +545,9 @@ asmlinkage __visible void __init start_kernel(void) trap_init(); mm_init(); + /* trace_printk can be enabled here */ + early_trace_init(); + /* * Set up the scheduler prior starting any interrupts (such as the * timer interrupt). Full topology setup happens at smp_init() @@ -570,7 +573,7 @@ asmlinkage __visible void __init start_kernel(void) rcu_init(); - /* trace_printk() and trace points may be used after this */ + /* Trace events are available after this */ trace_init(); context_tracking_init(); |