|
75 | 75 | add x29, sp, #S_STACKFRAME
|
76 | 76 | .endm
|
77 | 77 |
|
78 |
| -ENTRY(ftrace_regs_caller) |
| 78 | +SYM_CODE_START(ftrace_regs_caller) |
79 | 79 | ftrace_regs_entry 1
|
80 | 80 | b ftrace_common
|
81 |
| -ENDPROC(ftrace_regs_caller) |
| 81 | +SYM_CODE_END(ftrace_regs_caller) |
82 | 82 |
|
83 |
| -ENTRY(ftrace_caller) |
| 83 | +SYM_CODE_START(ftrace_caller) |
84 | 84 | ftrace_regs_entry 0
|
85 | 85 | b ftrace_common
|
86 |
| -ENDPROC(ftrace_caller) |
| 86 | +SYM_CODE_END(ftrace_caller) |
87 | 87 |
|
88 |
| -ENTRY(ftrace_common) |
| 88 | +SYM_CODE_START(ftrace_common) |
89 | 89 | sub x0, x30, #AARCH64_INSN_SIZE // ip (callsite's BL insn)
|
90 | 90 | mov x1, x9 // parent_ip (callsite's LR)
|
91 | 91 | ldr_l x2, function_trace_op // op
|
@@ -122,17 +122,17 @@ ftrace_common_return:
|
122 | 122 | add sp, sp, #S_FRAME_SIZE + 16
|
123 | 123 |
|
124 | 124 | ret x9
|
125 |
| -ENDPROC(ftrace_common) |
| 125 | +SYM_CODE_END(ftrace_common) |
126 | 126 |
|
127 | 127 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER
|
128 |
| -ENTRY(ftrace_graph_caller) |
| 128 | +SYM_CODE_START(ftrace_graph_caller) |
129 | 129 | ldr x0, [sp, #S_PC]
|
130 | 130 | sub x0, x0, #AARCH64_INSN_SIZE // ip (callsite's BL insn)
|
131 | 131 | add x1, sp, #S_LR // parent_ip (callsite's LR)
|
132 | 132 | ldr x2, [sp, #S_FRAME_SIZE] // parent fp (callsite's FP)
|
133 | 133 | bl prepare_ftrace_return
|
134 | 134 | b ftrace_common_return
|
135 |
| -ENDPROC(ftrace_graph_caller) |
| 135 | +SYM_CODE_END(ftrace_graph_caller) |
136 | 136 | #endif
|
137 | 137 |
|
138 | 138 | #else /* CONFIG_DYNAMIC_FTRACE_WITH_REGS */
|
|
0 commit comments