diff options
| author | Steven Rostedt <[email protected]> | 2025-08-01 20:37:24 +0000 |
|---|---|---|
| committer | Steven Rostedt (Google) <[email protected]> | 2025-08-01 20:49:15 +0000 |
| commit | 788fa4b47cdcd9b3d8c2d02ac0b3cd2540305f18 (patch) | |
| tree | 088626430dc7b4028c82066244c3a0e88c5f28c9 /scripts/rustdoc_test_gen.rs | |
| parent | tracing: Remove unneeded goto out logic (diff) | |
| download | kernel-788fa4b47cdcd9b3d8c2d02ac0b3cd2540305f18.tar.gz kernel-788fa4b47cdcd9b3d8c2d02ac0b3cd2540305f18.zip | |
tracing: Add guard(ring_buffer_nest)
Some calls to the tracing ring buffer can happen when the ring buffer is
already being written to by the same context (for example, a
trace_printk() in between a ring_buffer_lock_reserve() and a
ring_buffer_unlock_commit()).
In order to not trigger the recursion detection, these functions use
ring_buffer_nest_start() and ring_buffer_nest_end(). Create a guard() for
these functions so that their use cases can be simplified and not need to
use goto for the release.
Cc: Masami Hiramatsu <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Andrew Morton <[email protected]>
Link: https://lore.kernel.org/[email protected]
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_gen.rs')
0 files changed, 0 insertions, 0 deletions
