]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tracing: Fix HAVE_DYNAMIC_FTRACE_WITH_REGS ifdef
authorPetr Pavlu <petr.pavlu@suse.com>
Tue, 13 Feb 2024 13:24:34 +0000 (14:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:25:17 +0000 (09:25 +0100)
commitab94509051eae4eb6f541bf315db468ba243277e
tree186643d012cd0fb86014823f988f849389ded1fb
parent5d858e2d3ecae3aaf5b533006e33fa3dc830b78c
tracing: Fix HAVE_DYNAMIC_FTRACE_WITH_REGS ifdef

commit bdbddb109c75365d22ec4826f480c5e75869e1cb upstream.

Commit a8b9cf62ade1 ("ftrace: Fix DIRECT_CALLS to use SAVE_REGS by
default") attempted to fix an issue with direct trampolines on x86, see
its description for details. However, it wrongly referenced the
HAVE_DYNAMIC_FTRACE_WITH_REGS config option and the problem is still
present.

Add the missing "CONFIG_" prefix for the logic to work as intended.

Link: https://lore.kernel.org/linux-trace-kernel/20240213132434.22537-1-petr.pavlu@suse.com
Fixes: a8b9cf62ade1 ("ftrace: Fix DIRECT_CALLS to use SAVE_REGS by default")
Signed-off-by: Petr Pavlu <petr.pavlu@suse.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/trace/ftrace.c