mirror of https://github.com/torvalds/linux.git
tracing: Show the tracer options in boot-time created instance
Since tracer_init_tracefs_work_func() only updates the tracer options
for the global_trace, the instances created by the kernel cmdline
do not have those options.
Fix to update tracer options for those boot-time created instances
to show those options.
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://patch.msgid.link/176354112555.2356172.3989277078358802353.stgit@mhiramat.tok.corp.google.com
Fixes: 428add559b ("tracing: Have tracer option be instance specific")
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
This commit is contained in:
parent
7a6735cc9b
commit
23c0e9cc76
|
|
@ -10228,10 +10228,13 @@ static __init int __update_tracer_options(struct trace_array *tr)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static __init void update_tracer_options(struct trace_array *tr)
|
static __init void update_tracer_options(void)
|
||||||
{
|
{
|
||||||
|
struct trace_array *tr;
|
||||||
|
|
||||||
guard(mutex)(&trace_types_lock);
|
guard(mutex)(&trace_types_lock);
|
||||||
tracer_options_updated = true;
|
tracer_options_updated = true;
|
||||||
|
list_for_each_entry(tr, &ftrace_trace_arrays, list)
|
||||||
__update_tracer_options(tr);
|
__update_tracer_options(tr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -10934,7 +10937,7 @@ static __init void tracer_init_tracefs_work_func(struct work_struct *work)
|
||||||
|
|
||||||
create_trace_instances(NULL);
|
create_trace_instances(NULL);
|
||||||
|
|
||||||
update_tracer_options(&global_trace);
|
update_tracer_options();
|
||||||
}
|
}
|
||||||
|
|
||||||
static __init int tracer_init_tracefs(void)
|
static __init int tracer_init_tracefs(void)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue