History

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.

Mark Rutland committed 4 years ago

Commit 0ef86091 parent 9705bc75 files · +12 −11Browse files

Showing the changes to kernel/livepatch/patch.c (1 of 5 files). Show all

Unified · Split

kernel/livepatch/patch.c+1−1
@@ -118,7 +118,7 @@ static void notrace klp_ftrace_handler(unsigned long ip, · 117 unmodified lines
118118 if (func->nop)
119119 goto unlock;
120120
121− ftrace_instruction_pointer_set(fregs, (unsigned long)func->new_func);
121+ ftrace_regs_set_instruction_pointer(fregs, (unsigned long)func->new_func);
122122
123123 unlock:
124124 ftrace_test_recursion_unlock(bit);