Message ID | 20240223013344.570525723@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | cca990c7b565af0dc61a8f647c00833453cf5bff |
Headers | show |
Series | tracing: Fix snapshot accounting | expand |
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index b7a870c8ae2a..480201c3b36e 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -6164,7 +6164,7 @@ int tracing_set_tracer(struct trace_array *tr, const char *buf) tracing_disarm_snapshot(tr); } - if (t->use_max_tr) { + if (!had_max_tr && t->use_max_tr) { ret = tracing_arm_snapshot_locked(tr); if (ret) goto out;