diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2025-05-05 17:21:16 -0400 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2025-05-09 15:19:10 -0400 |
commit | c4a80c06154084d52851fe495d40b0e4da032f47 (patch) | |
tree | 8e4744ae9941938d99836db0df4057ac93f83e6a /scripts/lib | |
parent | 90633c34c36d0c15c9da4e19b2ceb46cab137478 (diff) |
tracing: Use atomic_inc_return() for updating "disabled" counter in irqsoff tracer
The irqsoff tracer uses the per CPU "disabled" field to prevent corruption
of the accounting when it starts to trace interrupts disabled, but there's
a slight race that could happen if for some reason it was called twice.
Use atomic_inc_return() instead.
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Link: https://lore.kernel.org/20250505212236.567884756@goodmis.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'scripts/lib')
0 files changed, 0 insertions, 0 deletions