Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1611411
| From | Steven Rostedt <rostedt@goodmis.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [for-next][PATCH 2/7] ftrace: Move ftrace_init() to right after memory initialization |
| Date | 2017-03-29 00:20 +0200 |
| Message-ID | <tq7D4-5Qj-25@gated-at.bofh.it> (permalink) |
| References | <tq7D3-5Qj-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org> 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 | 4 ++-- 1 file 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(); } -- 2.10.2
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[for-next][PATCH 0/7] tracing: [4.12] Allow function tracing to start earlier in boot up Steven Rostedt <rostedt@goodmis.org> - 2017-03-29 00:20 +0200 [for-next][PATCH 6/7] tracing: Move trace_handle_return() out of line Steven Rostedt <rostedt@goodmis.org> - 2017-03-29 00:20 +0200 [for-next][PATCH 5/7] ftrace: Allow for function tracing to record init functions on boot up Steven Rostedt <rostedt@goodmis.org> - 2017-03-29 00:20 +0200 [for-next][PATCH 7/7] ftrace/x86: Do no run CPU sync when there is only one CPU online Steven Rostedt <rostedt@goodmis.org> - 2017-03-29 00:20 +0200 [for-next][PATCH 2/7] ftrace: Move ftrace_init() to right after memory initialization Steven Rostedt <rostedt@goodmis.org> - 2017-03-29 00:20 +0200 [for-next][PATCH 3/7] tracing: Postpone tracer start-up tests till the system is more robust Steven Rostedt <rostedt@goodmis.org> - 2017-03-29 00:20 +0200 [for-next][PATCH 1/7] tracing: Split tracing initialization into two for early initialization Steven Rostedt <rostedt@goodmis.org> - 2017-03-29 00:20 +0200 [for-next][PATCH 4/7] ftrace: Have function tracing start in early boot up Steven Rostedt <rostedt@goodmis.org> - 2017-03-29 00:20 +0200
csiph-web