Skip to content

Commit 2431196

Browse files
committed
ftrace: Add back ftrace_update_trampoline() to ftrace_update_pid_func()
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/[email protected] Cc: Masami Hiramatsu <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Andrew Morton <[email protected]> Fixes: df3ec5d ("function_graph: Add pid tracing back to function graph tracer") Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 8d4e21b commit 2431196

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/trace/ftrace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ static void ftrace_update_pid_func(void)
402402
if (op->flags & FTRACE_OPS_FL_PID) {
403403
op->func = ftrace_pids_enabled(op) ?
404404
ftrace_pid_func : op->saved_func;
405+
ftrace_update_trampoline(op);
405406
}
406407
} while_for_each_ftrace_op(op);
407408

0 commit comments

Comments
 (0)