diff options
author | Masami Hiramatsu <mhiramat@kernel.org> | 2020-09-10 14:39:17 +0200 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2020-09-22 03:06:04 +0200 |
commit | ba0fbfbb21cd90d51e4f6668ee8397e810818028 (patch) | |
tree | 0ee53dc044e64ea5d4a608025aaf130be718de46 /kernel/trace/trace_boot.c | |
parent | tracing: Enable creating new instance early boot (diff) | |
download | linux-ba0fbfbb21cd90d51e4f6668ee8397e810818028.tar.xz linux-ba0fbfbb21cd90d51e4f6668ee8397e810818028.zip |
tracing/boot, kprobe, synth: Initialize boot-time tracing earlier
Initialize boot-time tracing in core_initcall_sync instead of
fs_initcall, and initialize required tracers (kprobes and synth)
in core_initcall. This will allow the boot-time tracing to trace
__init code from the beginning of postcore_initcall stage.
Link: https://lkml.kernel.org/r/159974155727.478751.7486926132902849578.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/trace_boot.c')
-rw-r--r-- | kernel/trace/trace_boot.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/trace/trace_boot.c b/kernel/trace/trace_boot.c index d52d441a17e8..754e3cf2df3a 100644 --- a/kernel/trace/trace_boot.c +++ b/kernel/trace/trace_boot.c @@ -340,5 +340,8 @@ static int __init trace_boot_init(void) return 0; } - -fs_initcall(trace_boot_init); +/* + * Start tracing at the end of core-initcall, so that it starts tracing + * from the beginning of postcore_initcall. + */ +core_initcall_sync(trace_boot_init); |