diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2024-12-26 01:25:41 +0300 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2024-12-26 18:38:37 +0300 |
commit | 930d2b32c0af6895ba4c6ca6404e7f7b6dc214ed (patch) | |
tree | be4c455e0bdad0af7cc922019911c733b72bc85e /tools/perf/scripts/python/syscall-counts.py | |
parent | a2e27e1bb19eb7c1790af7c8b6f7298ec524c1bb (diff) | |
download | linux-930d2b32c0af6895ba4c6ca6404e7f7b6dc214ed.tar.xz |
tracing: Switch trace_osnoise.c code over to use guard() and __free()
The osnoise_hotplug_workfn() grabs two mutexes and cpu_read_lock(). It has
various gotos to handle unlocking them. Switch them over to guard() and
let the compiler worry about it.
The osnoise_cpus_read() has a temporary mask_str allocated and there's
some gotos to make sure it gets freed on error paths. Switch that over to
__free() to let the compiler worry about it.
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/20241225222931.517329690@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