Commit df47f38
committed
tracing: Switch trace_osnoise.c code over to use guard() and __free()
JIRA: https://issues.redhat.com/browse/RHEL-117873
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 3934997 commit df47f38
1 file changed
+13
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2066 | 2066 | | |
2067 | 2067 | | |
2068 | 2068 | | |
2069 | | - | |
| 2069 | + | |
2070 | 2070 | | |
2071 | 2071 | | |
2072 | | - | |
| 2072 | + | |
2073 | 2073 | | |
2074 | | - | |
2075 | | - | |
| 2074 | + | |
| 2075 | + | |
2076 | 2076 | | |
2077 | 2077 | | |
2078 | | - | |
| 2078 | + | |
| 2079 | + | |
2079 | 2080 | | |
2080 | | - | |
| 2081 | + | |
2081 | 2082 | | |
2082 | 2083 | | |
2083 | | - | |
2084 | | - | |
2085 | | - | |
2086 | | - | |
2087 | | - | |
2088 | | - | |
2089 | 2084 | | |
2090 | 2085 | | |
2091 | 2086 | | |
| |||
2283 | 2278 | | |
2284 | 2279 | | |
2285 | 2280 | | |
2286 | | - | |
| 2281 | + | |
2287 | 2282 | | |
2288 | 2283 | | |
2289 | | - | |
| 2284 | + | |
2290 | 2285 | | |
2291 | 2286 | | |
2292 | 2287 | | |
2293 | | - | |
2294 | | - | |
2295 | | - | |
2296 | | - | |
| 2288 | + | |
| 2289 | + | |
2297 | 2290 | | |
2298 | 2291 | | |
2299 | | - | |
2300 | | - | |
2301 | | - | |
2302 | | - | |
| 2292 | + | |
| 2293 | + | |
2303 | 2294 | | |
2304 | 2295 | | |
2305 | 2296 | | |
2306 | | - | |
2307 | | - | |
2308 | | - | |
2309 | | - | |
2310 | | - | |
2311 | 2297 | | |
2312 | 2298 | | |
2313 | 2299 | | |
| |||
0 commit comments