tracing/boot: Initialize per-instance event list in early boot
Initialize per-instance event list in early boot time (before
initializing instance directory on tracefs). This fixes boot-time
tracing to correctly handle the boot-time per-instance settings.
Link: https://lkml.kernel.org/r/160096560826.182763.17110991546046128881.stgit@devnote2
Fixes: 4114fbfd02
("tracing: Enable creating new instance early boot")
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
This commit is contained in:

committed by
Steven Rostedt (VMware)

parent
fd264ce96c
commit
720dee53ad
@@ -8700,7 +8700,8 @@ static struct trace_array *trace_array_create(const char *name)
|
||||
ret = trace_array_create_dir(tr);
|
||||
if (ret)
|
||||
goto out_free_tr;
|
||||
}
|
||||
} else
|
||||
__trace_early_add_events(tr);
|
||||
|
||||
list_add(&tr->list, &ftrace_trace_arrays);
|
||||
|
||||
|
Reference in New Issue
Block a user