diff options
Diffstat (limited to 'kernel/trace/trace_functions_graph.c')
| -rw-r--r-- | kernel/trace/trace_functions_graph.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c index ce27c8ba8d31..99b4378393d5 100644 --- a/kernel/trace/trace_functions_graph.c +++ b/kernel/trace/trace_functions_graph.c | |||
| @@ -143,7 +143,7 @@ ftrace_pop_return_trace(struct ftrace_graph_ret *trace, unsigned long *ret, | |||
| 143 | return; | 143 | return; |
| 144 | } | 144 | } |
| 145 | 145 | ||
| 146 | #ifdef CONFIG_HAVE_FUNCTION_GRAPH_FP_TEST | 146 | #if defined(CONFIG_HAVE_FUNCTION_GRAPH_FP_TEST) && !defined(CC_USING_FENTRY) |
| 147 | /* | 147 | /* |
| 148 | * The arch may choose to record the frame pointer used | 148 | * The arch may choose to record the frame pointer used |
| 149 | * and check it here to make sure that it is what we expect it | 149 | * and check it here to make sure that it is what we expect it |
| @@ -154,6 +154,9 @@ ftrace_pop_return_trace(struct ftrace_graph_ret *trace, unsigned long *ret, | |||
| 154 | * | 154 | * |
| 155 | * Currently, x86_32 with optimize for size (-Os) makes the latest | 155 | * Currently, x86_32 with optimize for size (-Os) makes the latest |
| 156 | * gcc do the above. | 156 | * gcc do the above. |
| 157 | * | ||
| 158 | * Note, -mfentry does not use frame pointers, and this test | ||
| 159 | * is not needed if CC_USING_FENTRY is set. | ||
| 157 | */ | 160 | */ |
| 158 | if (unlikely(current->ret_stack[index].fp != frame_pointer)) { | 161 | if (unlikely(current->ret_stack[index].fp != frame_pointer)) { |
| 159 | ftrace_graph_stop(); | 162 | ftrace_graph_stop(); |
