summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorSteven Rostedt <rostedt@goodmis.org>2024-12-23 21:46:22 +0300
committerSteven Rostedt (Google) <rostedt@goodmis.org>2024-12-24 05:01:48 +0300
commit1d95fd9d6b1a1750da2dec1485a4c58f5a7d3ebd (patch)
treeaba669b4a99832aca30fa3e3928b441a767cec7c /tools/perf/scripts/python/task-analyzer.py
parent77e53cb2fcf2c5e81f06f4a41783d8752cf9d038 (diff)
downloadlinux-1d95fd9d6b1a1750da2dec1485a4c58f5a7d3ebd.tar.xz
ftrace: Switch ftrace.c code over to use guard()
There are a few functions in ftrace.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> Link: https://lore.kernel.org/20241223184941.718001540@goodmis.org Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions