mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
tracing: disable buffers and synchronize_sched before resetting
Resetting the ring buffers while traces are happening can corrupt the ring buffer and disable it (no kernel crash to worry about). The safest thing to do is disable the ring buffers, call synchronize_sched() to wait for all current writers to finish and then reset the buffer. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
This commit is contained in:
parent
b8de7bd168
commit
621968cdb2
1 changed files with 8 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue