summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2024-12-19 23:12:09 +0300
committerSteven Rostedt (Google) <rostedt@goodmis.org>2024-12-26 18:38:37 +0300
commita2e27e1bb19eb7c1790af7c8b6f7298ec524c1bb (patch)
tree05a6952cd1744672d0b7a6377d92e7b9b3a15ec7 /tools/perf/scripts/python/syscall-counts.py
parent076796f74eac6eec2da6168836ff6baa8d878297 (diff)
downloadlinux-a2e27e1bb19eb7c1790af7c8b6f7298ec524c1bb.tar.xz
tracing: Switch trace_events_synth.c code over to use guard()
There are a couple functions in trace_events_synth.c that have "goto out" or equivalent on error in order to release locks that were taken. This can be error prone or just simply make the code more complex. Switch every location that ends with unlocking a mutex on error over to using the guard(mutex)() infrastructure to let the compiler worry about releasing locks. This makes the code easier to read and understand. 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> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/20241219201346.371082515@goodmis.org Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions