aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-inline.c
diff options
context:
space:
mode:
authorSteven Rostedt <[email protected]>2025-10-08 15:49:43 +0000
committerSteven Rostedt (Google) <[email protected]>2025-10-08 16:10:44 +0000
commitc834a97962c708ff5bb8582ca76b0e1225feb675 (patch)
tree9f83abd490815f5ebc9152e3db680692221a41e4 /lib/mpi/mpi-inline.c
parenttracing: Fix wakeup tracers on failure of acquiring calltime (diff)
downloadkernel-c834a97962c708ff5bb8582ca76b0e1225feb675.tar.gz
kernel-c834a97962c708ff5bb8582ca76b0e1225feb675.zip
tracing: Fix irqoff tracers on failure of acquiring calltime
The functions irqsoff_graph_entry() and irqsoff_graph_return() both call func_prolog_dec() that will test if the data->disable is already set and if not, increment it and return. If it was set, it returns false and the caller exits. The caller of this function must decrement the disable counter, but misses doing so if the calltime fails to be acquired. Instead of exiting out when calltime is NULL, change the logic to do the work if it is not NULL and still do the clean up at the end of the function if it is NULL. Cc: [email protected] Cc: Masami Hiramatsu <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Link: https://lore.kernel.org/[email protected] Fixes: a485ea9e3ef3 ("tracing: Fix irqsoff and wakeup latency tracers when using function graph") Reported-by: Sasha Levin <[email protected]> Closes: https://lore.kernel.org/linux-trace-kernel/[email protected]/ Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.c')
0 files changed, 0 insertions, 0 deletions