diff options
Diffstat (limited to 'arch/x86/kernel/entry_32.S')
-rw-r--r-- | arch/x86/kernel/entry_32.S | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S index 74defe21ba42..958af86186c4 100644 --- a/arch/x86/kernel/entry_32.S +++ b/arch/x86/kernel/entry_32.S | |||
@@ -1174,6 +1174,11 @@ ftrace_call: | |||
1174 | popl %edx | 1174 | popl %edx |
1175 | popl %ecx | 1175 | popl %ecx |
1176 | popl %eax | 1176 | popl %eax |
1177 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER | ||
1178 | .globl ftrace_graph_call | ||
1179 | ftrace_graph_call: | ||
1180 | jmp ftrace_stub | ||
1181 | #endif | ||
1177 | 1182 | ||
1178 | .globl ftrace_stub | 1183 | .globl ftrace_stub |
1179 | ftrace_stub: | 1184 | ftrace_stub: |
@@ -1188,9 +1193,9 @@ ENTRY(mcount) | |||
1188 | 1193 | ||
1189 | cmpl $ftrace_stub, ftrace_trace_function | 1194 | cmpl $ftrace_stub, ftrace_trace_function |
1190 | jnz trace | 1195 | jnz trace |
1191 | #ifdef CONFIG_FUNCTION_RET_TRACER | 1196 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
1192 | cmpl $ftrace_stub, ftrace_function_return | 1197 | cmpl $ftrace_stub, ftrace_graph_return |
1193 | jnz ftrace_return_caller | 1198 | jnz ftrace_graph_caller |
1194 | #endif | 1199 | #endif |
1195 | .globl ftrace_stub | 1200 | .globl ftrace_stub |
1196 | ftrace_stub: | 1201 | ftrace_stub: |
@@ -1215,8 +1220,8 @@ END(mcount) | |||
1215 | #endif /* CONFIG_DYNAMIC_FTRACE */ | 1220 | #endif /* CONFIG_DYNAMIC_FTRACE */ |
1216 | #endif /* CONFIG_FUNCTION_TRACER */ | 1221 | #endif /* CONFIG_FUNCTION_TRACER */ |
1217 | 1222 | ||
1218 | #ifdef CONFIG_FUNCTION_RET_TRACER | 1223 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
1219 | ENTRY(ftrace_return_caller) | 1224 | ENTRY(ftrace_graph_caller) |
1220 | cmpl $0, function_trace_stop | 1225 | cmpl $0, function_trace_stop |
1221 | jne ftrace_stub | 1226 | jne ftrace_stub |
1222 | 1227 | ||
@@ -1230,7 +1235,7 @@ ENTRY(ftrace_return_caller) | |||
1230 | popl %ecx | 1235 | popl %ecx |
1231 | popl %eax | 1236 | popl %eax |
1232 | ret | 1237 | ret |
1233 | END(ftrace_return_caller) | 1238 | END(ftrace_graph_caller) |
1234 | 1239 | ||
1235 | .globl return_to_handler | 1240 | .globl return_to_handler |
1236 | return_to_handler: | 1241 | return_to_handler: |