mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
tracing: Fix HAVE_DYNAMIC_FTRACE_WITH_REGS ifdef
commitbdbddb109cupstream. Commita8b9cf62ad("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:a8b9cf62ad("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
27978243f1
commit
02faad5f52
@@ -5331,7 +5331,7 @@ static int register_ftrace_function_nolock(struct ftrace_ops *ops);
|
||||
* not support ftrace_regs_caller but direct_call, use SAVE_ARGS so that it
|
||||
* jumps from ftrace_caller for multiple ftrace_ops.
|
||||
*/
|
||||
#ifndef HAVE_DYNAMIC_FTRACE_WITH_REGS
|
||||
#ifndef CONFIG_HAVE_DYNAMIC_FTRACE_WITH_REGS
|
||||
#define MULTI_FLAGS (FTRACE_OPS_FL_DIRECT | FTRACE_OPS_FL_SAVE_ARGS)
|
||||
#else
|
||||
#define MULTI_FLAGS (FTRACE_OPS_FL_DIRECT | FTRACE_OPS_FL_SAVE_REGS)
|
||||
|
||||
Reference in New Issue
Block a user