]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - kernel/trace/trace.c
tracing: make tracing_reset safe for external use
authorSteven Rostedt <srostedt@redhat.com>
Fri, 4 Sep 2009 16:35:16 +0000 (12:35 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 4 Sep 2009 22:46:51 +0000 (18:46 -0400)
commitf633903af2ceb0cec07d45e499a072b6593d0ed1
tree9a484fa299142a00d0dbb5a97e1108031db96e70
parent2f26ebd549b9ab55ac756b836ec759c11fe93f81
tracing: make tracing_reset safe for external use

Reseting the trace buffer without first disabling the buffer and
waiting for any writers to complete, can corrupt the ring buffer.

This patch makes the external version of tracing_reset safe from
corruption by disabling the ring buffer and calling synchronize_sched.

This version can no longer be called from interrupt context. But all those
callers have been removed.

Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c