aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/garbage.c
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2025-02-20 14:07:49 +0000
committerSteven Rostedt (Google) <[email protected]>2025-02-21 14:36:12 +0000
commit57b76bedc5c52c66968183b5ef57234894c25ce7 (patch)
treed9a64ff1d2cad69b3a69757baf17493ea9518cf1 /net/unix/garbage.c
parentselftests/ftrace: Update fprobe test to check enabled_functions file (diff)
downloadkernel-57b76bedc5c52c66968183b5ef57234894c25ce7.tar.gz
kernel-57b76bedc5c52c66968183b5ef57234894c25ce7.zip
ftrace: Correct preemption accounting for function tracing.
The function tracer should record the preemption level at the point when the function is invoked. If the tracing subsystem decrement the preemption counter it needs to correct this before feeding the data into the trace buffer. This was broken in the commit cited below while shifting the preempt-disabled section. Use tracing_gen_ctx_dec() which properly subtracts one from the preemption counter on a preemptible kernel. Cc: [email protected] Cc: Wander Lairson Costa <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/[email protected] Fixes: ce5e48036c9e7 ("ftrace: disable preemption when recursion locked") Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Tested-by: Wander Lairson Costa <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions