ring-buffer: do not swap if recording is disabled
If the ring buffer recording has been disabled. Do not let swapping of ring buffers occur. Simply return -EAGAIN. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
5bc4564b22
commit
97b17efe45
@@ -415,7 +415,7 @@ update_max_tr_single(struct trace_array *tr, struct task_struct *tsk, int cpu)
|
||||
|
||||
ftrace_enable_cpu();
|
||||
|
||||
WARN_ON_ONCE(ret);
|
||||
WARN_ON_ONCE(ret && ret != -EAGAIN);
|
||||
|
||||
__update_max_tr(tr, tsk, cpu);
|
||||
__raw_spin_unlock(&ftrace_max_lock);
|
||||
|
Reference in New Issue
Block a user