diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/trace/trace.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 38c613ede10d..d4627f15407a 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c | |||
| @@ -4172,8 +4172,11 @@ static int tracing_set_tracer(struct trace_array *tr, const char *buf) | |||
| 4172 | free_snapshot(tr); | 4172 | free_snapshot(tr); |
| 4173 | } | 4173 | } |
| 4174 | #endif | 4174 | #endif |
| 4175 | /* Currently, only the top instance has options */ | 4175 | /* |
| 4176 | if (tr->flags & TRACE_ARRAY_FL_GLOBAL) { | 4176 | * Only enable if the directory has been created already. |
| 4177 | * Currently, only the top instance has options | ||
| 4178 | */ | ||
| 4179 | if (tr->dir && tr->flags & TRACE_ARRAY_FL_GLOBAL) { | ||
| 4177 | destroy_trace_option_files(topts); | 4180 | destroy_trace_option_files(topts); |
| 4178 | topts = create_trace_option_files(tr, t); | 4181 | topts = create_trace_option_files(tr, t); |
| 4179 | } | 4182 | } |
