diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-03-03 21:43:34 +0300 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-03-24 20:08:44 +0300 |
commit | f631718de3ca24a9ae03595e937fe0b64cfaf456 (patch) | |
tree | 6a4660027df5c8e20046de4085ddbc03524e9c99 /init | |
parent | e725c731e3bb1e892e7b564c945b121cb41d1087 (diff) | |
download | linux-f631718de3ca24a9ae03595e937fe0b64cfaf456.tar.xz |
ftrace: Move ftrace_init() to right after memory initialization
Initialize the ftrace records immediately after memory initialization, as
that is all that is required for the records to be created. This will allow
for future work to get function tracing started earlier in the boot process.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/init/main.c b/init/main.c index 81a49e8d54cc..c0137b916aa1 100644 --- a/init/main.c +++ b/init/main.c @@ -545,6 +545,8 @@ asmlinkage __visible void __init start_kernel(void) trap_init(); mm_init(); + ftrace_init(); + /* trace_printk can be enabled here */ early_trace_init(); @@ -673,8 +675,6 @@ asmlinkage __visible void __init start_kernel(void) efi_free_boot_services(); } - ftrace_init(); - /* Do the rest non-__init'ed, we're now alive */ rest_init(); } |