File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -6315,12 +6315,18 @@ static void tracing_set_nop(struct trace_array *tr)
63156315 tr -> current_trace = & nop_trace ;
63166316}
63176317
6318+ static bool tracer_options_updated ;
6319+
63186320static void add_tracer_options (struct trace_array * tr , struct tracer * t )
63196321{
63206322 /* Only enable if the directory has been created already. */
63216323 if (!tr -> dir )
63226324 return ;
63236325
6326+ /* Only create trace option files after update_tracer_options finish */
6327+ if (!tracer_options_updated )
6328+ return ;
6329+
63246330 create_trace_option_files (tr , t );
63256331}
63266332
@@ -9144,6 +9150,7 @@ static void __update_tracer_options(struct trace_array *tr)
91449150static void update_tracer_options (struct trace_array * tr )
91459151{
91469152 mutex_lock (& trace_types_lock );
9153+ tracer_options_updated = true;
91479154 __update_tracer_options (tr );
91489155 mutex_unlock (& trace_types_lock );
91499156}
You can’t perform that action at this time.
0 commit comments