File tree Expand file tree Collapse file tree 5 files changed +12
-11
lines changed Expand file tree Collapse file tree 5 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,9 @@ static __always_inline struct pt_regs *arch_ftrace_get_regs(struct ftrace_regs *
37
37
return fregs -> regs .msr ? & fregs -> regs : NULL ;
38
38
}
39
39
40
- static __always_inline void ftrace_instruction_pointer_set (struct ftrace_regs * fregs ,
41
- unsigned long ip )
40
+ static __always_inline void
41
+ ftrace_regs_set_instruction_pointer (struct ftrace_regs * fregs ,
42
+ unsigned long ip )
42
43
{
43
44
regs_set_return_ip (& fregs -> regs , ip );
44
45
}
Original file line number Diff line number Diff line change @@ -54,8 +54,9 @@ static __always_inline struct pt_regs *arch_ftrace_get_regs(struct ftrace_regs *
54
54
return NULL ;
55
55
}
56
56
57
- static __always_inline void ftrace_instruction_pointer_set (struct ftrace_regs * fregs ,
58
- unsigned long ip )
57
+ static __always_inline void
58
+ ftrace_regs_set_instruction_pointer (struct ftrace_regs * fregs ,
59
+ unsigned long ip )
59
60
{
60
61
fregs -> regs .psw .addr = ip ;
61
62
}
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ arch_ftrace_get_regs(struct ftrace_regs *fregs)
48
48
return & fregs -> regs ;
49
49
}
50
50
51
- #define ftrace_instruction_pointer_set (fregs , _ip ) \
51
+ #define ftrace_regs_set_instruction_pointer (fregs , _ip ) \
52
52
do { (fregs)->regs.ip = (_ip); } while (0)
53
53
54
54
struct ftrace_ops ;
Original file line number Diff line number Diff line change @@ -111,12 +111,11 @@ struct ftrace_regs {
111
111
#define arch_ftrace_get_regs (fregs ) (&(fregs)->regs)
112
112
113
113
/*
114
- * ftrace_instruction_pointer_set() is to be defined by the architecture
115
- * if to allow setting of the instruction pointer from the ftrace_regs
116
- * when HAVE_DYNAMIC_FTRACE_WITH_ARGS is set and it supports
117
- * live kernel patching.
114
+ * ftrace_regs_set_instruction_pointer() is to be defined by the architecture
115
+ * if to allow setting of the instruction pointer from the ftrace_regs when
116
+ * HAVE_DYNAMIC_FTRACE_WITH_ARGS is set and it supports live kernel patching.
118
117
*/
119
- #define ftrace_instruction_pointer_set (fregs , ip ) do { } while (0)
118
+ #define ftrace_regs_set_instruction_pointer (fregs , ip ) do { } while (0)
120
119
#endif /* CONFIG_HAVE_DYNAMIC_FTRACE_WITH_ARGS */
121
120
122
121
static __always_inline struct pt_regs * ftrace_get_regs (struct ftrace_regs * fregs )
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ static void notrace klp_ftrace_handler(unsigned long ip,
118
118
if (func -> nop )
119
119
goto unlock ;
120
120
121
- ftrace_instruction_pointer_set (fregs , (unsigned long )func -> new_func );
121
+ ftrace_regs_set_instruction_pointer (fregs , (unsigned long )func -> new_func );
122
122
123
123
unlock :
124
124
ftrace_test_recursion_unlock (bit );
You can’t perform that action at this time.
0 commit comments