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 /kernel/trace | |
parent | 97da3854c526d3a6ee05c849c96e48d21527606c (diff) | |
download | linux-e725c731e3bb1e892e7b564c945b121cb41d1087.tar.gz linux-e725c731e3bb1e892e7b564c945b121cb41d1087.tar.bz2 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 'kernel/trace')
-rw-r--r-- | kernel/trace/trace.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index f35109514a01..6757561d9617 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -7999,7 +7999,7 @@ out: return ret; } -void __init trace_init(void) +void __init early_trace_init(void) { if (tracepoint_printk) { tracepoint_print_iter = @@ -8010,6 +8010,10 @@ void __init trace_init(void) static_key_enable(&tracepoint_printk_key.key); } tracer_alloc_buffers(); +} + +void __init trace_init(void) +{ trace_event_init(); } |