diff options
author | Steven Rostedt (Google) <[email protected]> | 2023-12-05 16:52:10 -0500 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2023-12-05 17:06:12 -0500 |
commit | d78ab792705c7be1b91243b2544d1a79406a2ad7 (patch) | |
tree | 97ffb49b0c906e3636e416e2eab2e2c10a5e0c47 /scripts/generate_rust_analyzer.py | |
parent | 7be76461f302ec05cbd62b90b2a05c64299ca01f (diff) |
tracing: Stop current tracer when resizing buffer
When the ring buffer is being resized, it can cause side effects to the
running tracer. For instance, there's a race with irqsoff tracer that
swaps individual per cpu buffers between the main buffer and the snapshot
buffer. The resize operation modifies the main buffer and then the
snapshot buffer. If a swap happens in between those two operations it will
break the tracer.
Simply stop the running tracer before resizing the buffers and enable it
again when finished.
Link: https://lkml.kernel.org/r/[email protected]
Cc: [email protected]
Cc: Masami Hiramatsu <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Andrew Morton <[email protected]>
Fixes: 3928a8a2d9808 ("ftrace: make work with new ring buffer")
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions