Commit 86303fb
committed
tracing: Switch trace_osnoise.c code over to use guard() and __free()
JIRA: https://issues.redhat.com/browse/RHEL-117874
commit 930d2b3
Author: Steven Rostedt <rostedt@goodmis.org>
Date: Wed Dec 25 17:25:41 2024 -0500
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>
Signed-off-by: Tomas Glozar <tglozar@redhat.com>1 parent ed1b672 commit 86303fb
1 file changed
+13
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2073 | 2073 | | |
2074 | 2074 | | |
2075 | 2075 | | |
2076 | | - | |
| 2076 | + | |
2077 | 2077 | | |
2078 | 2078 | | |
2079 | | - | |
| 2079 | + | |
2080 | 2080 | | |
2081 | | - | |
2082 | | - | |
| 2081 | + | |
| 2082 | + | |
2083 | 2083 | | |
2084 | 2084 | | |
2085 | | - | |
| 2085 | + | |
| 2086 | + | |
2086 | 2087 | | |
2087 | | - | |
| 2088 | + | |
2088 | 2089 | | |
2089 | 2090 | | |
2090 | | - | |
2091 | | - | |
2092 | | - | |
2093 | | - | |
2094 | | - | |
2095 | | - | |
2096 | 2091 | | |
2097 | 2092 | | |
2098 | 2093 | | |
| |||
2290 | 2285 | | |
2291 | 2286 | | |
2292 | 2287 | | |
2293 | | - | |
| 2288 | + | |
2294 | 2289 | | |
2295 | 2290 | | |
2296 | | - | |
| 2291 | + | |
2297 | 2292 | | |
2298 | 2293 | | |
2299 | 2294 | | |
2300 | | - | |
2301 | | - | |
2302 | | - | |
2303 | | - | |
| 2295 | + | |
| 2296 | + | |
2304 | 2297 | | |
2305 | 2298 | | |
2306 | | - | |
2307 | | - | |
2308 | | - | |
2309 | | - | |
| 2299 | + | |
| 2300 | + | |
2310 | 2301 | | |
2311 | 2302 | | |
2312 | 2303 | | |
2313 | | - | |
2314 | | - | |
2315 | | - | |
2316 | | - | |
2317 | | - | |
2318 | 2304 | | |
2319 | 2305 | | |
2320 | 2306 | | |
| |||
0 commit comments