]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ftrace: Move ftrace_init() to right after memory initialization
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 3 Mar 2017 18:43:34 +0000 (13:43 -0500)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 24 Mar 2017 17:08:44 +0000 (13:08 -0400)
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>
init/main.c

index 81a49e8d54cc8aa65fc4fbc1cfbb58a09a0bc30f..c0137b916aa12ba9fa3e027da4d613bc182e81d2 100644 (file)
@@ -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();
 }