tracing: Only let top level have option files
Currently, only the top level instance can have tracing options. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
607e2ea167
commit
f1b21c9a40
|
@ -3968,9 +3968,11 @@ static int tracing_set_tracer(struct trace_array *tr, const char *buf)
|
||||||
free_snapshot(tr);
|
free_snapshot(tr);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
destroy_trace_option_files(topts);
|
/* Currently, only the top instance has options */
|
||||||
|
if (tr->flags & TRACE_ARRAY_FL_GLOBAL) {
|
||||||
topts = create_trace_option_files(tr, t);
|
destroy_trace_option_files(topts);
|
||||||
|
topts = create_trace_option_files(tr, t);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_TRACER_MAX_TRACE
|
#ifdef CONFIG_TRACER_MAX_TRACE
|
||||||
if (t->use_max_tr && !had_max_tr) {
|
if (t->use_max_tr && !had_max_tr) {
|
||||||
|
|
Loading…
Reference in New Issue