]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ftrace: Add back ftrace_update_trampoline() to ftrace_update_pid_func()
authorSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 6 Jun 2024 00:53:37 +0000 (20:53 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Thu, 6 Jun 2024 00:57:48 +0000 (20:57 -0400)
The update to the ops trampoline done by the function
ftrace_update_trampoline() was accidentally removed from
ftrace_update_pid_func(). Add it back.

Link: https://lore.kernel.org/linux-trace-kernel/20240605205337.6115e9a5@gandalf.local.home
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>
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

index da7e6abf48b4b1c847526d9b95f30fa22315e90c..897d7541041ce6c5ac05b49a964a83e8a745fd3b 100644 (file)
@@ -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);