diff mbox series

ftrace: Add back ftrace_update_trampoline() to ftrace_update_pid_func()

Message ID 20240605205337.6115e9a5@gandalf.local.home (mailing list archive)
State Accepted
Commit 24311962484385fa3a06c4fc1f2864b613df5af6
Headers show
Series ftrace: Add back ftrace_update_trampoline() to ftrace_update_pid_func() | expand

Commit Message

Steven Rostedt June 6, 2024, 12:53 a.m. UTC
From: "Steven Rostedt (Google)" <rostedt@goodmis.org>

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")
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
---
 kernel/trace/ftrace.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index da7e6abf48b4..897d7541041c 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -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);