Skip to contentSkip to conversation

ftrace: Add back ftrace_update_trampoline() to ftrace_update_pid_func()

PATCH New Steven Rostedt 1 participant 1 message Jun 6, 2024

Subsystems (2)
lore
Share & tools
lore

Steven Rostedt

author maintainer
#0 lore raw

PATCH 1/1 ftrace: Add back ftrace_update_trampoline() to ftrace_update_pid_func()

From: "Steven Rostedt (Google)" <[email protected]>

The update to the ops trampoline done by the function ftrace_update_trampoline() was accidentally removed from ftrace_update_pid_func(). Add it back.

Fixes df3ec5da6a1e ("function_graph: Add pid tracing back to function graph tracer")
---
 kernel/trace/ftrace.c | 1 +
 1 file changed, 1 insertion(+)
kernel/trace/ftrace.c +1 -0
index da7e6abf48b4..897d7541041c 100644
@@ -402,6 +402,7 @@ static void ftrace_update_pid_func(void)
 		if (op->flags & FTRACE_OPS_FL_PID) {
 			op->func = ftrace_pids_enabled(op) ?
 				ftrace_pid_func : op->saved_func;
+			ftrace_update_trampoline(op);
 		}
 	} while_for_each_ftrace_op(op);
 
Signature · 1 line
2.43.0