Commit 930d2b3
committed
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>1 parent a2e27e1 commit 930d2b3
1 file changed
Lines changed: 13 additions & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2083 | 2083 | | |
2084 | 2084 | | |
2085 | 2085 | | |
2086 | | - | |
| 2086 | + | |
2087 | 2087 | | |
2088 | 2088 | | |
2089 | | - | |
| 2089 | + | |
2090 | 2090 | | |
2091 | | - | |
2092 | | - | |
| 2091 | + | |
| 2092 | + | |
2093 | 2093 | | |
2094 | 2094 | | |
2095 | | - | |
| 2095 | + | |
| 2096 | + | |
2096 | 2097 | | |
2097 | | - | |
| 2098 | + | |
2098 | 2099 | | |
2099 | 2100 | | |
2100 | | - | |
2101 | | - | |
2102 | | - | |
2103 | | - | |
2104 | | - | |
2105 | | - | |
2106 | 2101 | | |
2107 | 2102 | | |
2108 | 2103 | | |
| |||
2300 | 2295 | | |
2301 | 2296 | | |
2302 | 2297 | | |
2303 | | - | |
| 2298 | + | |
2304 | 2299 | | |
2305 | 2300 | | |
2306 | | - | |
| 2301 | + | |
2307 | 2302 | | |
2308 | 2303 | | |
2309 | 2304 | | |
2310 | | - | |
2311 | | - | |
2312 | | - | |
2313 | | - | |
| 2305 | + | |
| 2306 | + | |
2314 | 2307 | | |
2315 | 2308 | | |
2316 | | - | |
2317 | | - | |
2318 | | - | |
2319 | | - | |
| 2309 | + | |
| 2310 | + | |
2320 | 2311 | | |
2321 | 2312 | | |
2322 | 2313 | | |
2323 | | - | |
2324 | | - | |
2325 | | - | |
2326 | | - | |
2327 | | - | |
2328 | 2314 | | |
2329 | 2315 | | |
2330 | 2316 | | |
| |||
0 commit comments