mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
ftrace: rename ftrace_instruction_pointer_set() -> ftrace_regs_set_instruction_pointer()
In subsequent patches we'll add a sew of ftrace_regs_{get,set}_*()
helpers. In preparation, this patch renames
ftrace_instruction_pointer_set() to
ftrace_regs_set_instruction_pointer().
There should be no functional change as a result of this patch.
Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Florent Revest <revest@chromium.org>
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Reviewed-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Link: https://lore.kernel.org/r/20221103170520.931305-3-mark.rutland@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
This commit is contained in:
committed by
Will Deacon
parent
9705bc7096
commit
0ef86097f1
@@ -118,7 +118,7 @@ static void notrace klp_ftrace_handler(unsigned long ip,
|
||||
if (func->nop)
|
||||
goto unlock;
|
||||
|
||||
ftrace_instruction_pointer_set(fregs, (unsigned long)func->new_func);
|
||||
ftrace_regs_set_instruction_pointer(fregs, (unsigned long)func->new_func);
|
||||
|
||||
unlock:
|
||||
ftrace_test_recursion_unlock(bit);
|
||||
|
||||
Reference in New Issue
Block a user