File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 9
9
#include <asm/export.h>
10
10
#include <asm/ftrace.h>
11
11
#include <asm/nospec-branch.h>
12
+ #include <asm/frame.h>
12
13
13
14
# define function_hook __fentry__
14
15
EXPORT_SYMBOL(__fentry__)
@@ -116,6 +117,8 @@ ENTRY(ftrace_regs_caller)
116
117
pushl %ecx
117
118
pushl %ebx
118
119
120
+ ENCODE_FRAME_POINTER
121
+
119
122
movl 12*4 (%esp ), %eax /* Load ip (1st parameter) */
120
123
subl $MCOUNT_INSN_SIZE, %eax /* Adjust ip */
121
124
movl 15*4 (%esp ), %edx /* Load parent ip (2nd parameter) */
Original file line number Diff line number Diff line change 9
9
#include <asm/export.h>
10
10
#include <asm/nospec-branch.h>
11
11
#include <asm/unwind_hints.h>
12
+ #include <asm/frame.h>
12
13
13
14
.code64
14
15
.section .entry.text, "ax"
@@ -203,6 +204,8 @@ GLOBAL(ftrace_regs_caller_op_ptr)
203
204
leaq MCOUNT_REG_SIZE+8*2 (%rsp ), %rcx
204
205
movq %rcx , RSP(%rsp )
205
206
207
+ ENCODE_FRAME_POINTER
208
+
206
209
/* regs go into 4th parameter */
207
210
leaq (%rsp ), %rcx
208
211
You can’t perform that action at this time.
0 commit comments