Skip to content

Commit

Permalink
ftrace: Move ftrace_init() to right after memory initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Rostedt (VMware) committed Mar 24, 2017
1 parent e725c73 commit f631718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit f631718

Please sign in to comment.