diff options
-rw-r--r-- | include/linux/ftrace.h | 2 | ||||
-rw-r--r-- | kernel/trace/trace_functions_graph.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 7d565afe35d2..4ad9ccc60e38 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -795,7 +795,9 @@ struct ftrace_ret_stack { | |||
795 | unsigned long func; | 795 | unsigned long func; |
796 | unsigned long long calltime; | 796 | unsigned long long calltime; |
797 | unsigned long long subtime; | 797 | unsigned long long subtime; |
798 | #ifdef HAVE_FUNCTION_GRAPH_FP_TEST | ||
798 | unsigned long fp; | 799 | unsigned long fp; |
800 | #endif | ||
799 | }; | 801 | }; |
800 | 802 | ||
801 | /* | 803 | /* |
diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c index fc173cd9fbfd..0e03ed0eac68 100644 --- a/kernel/trace/trace_functions_graph.c +++ b/kernel/trace/trace_functions_graph.c | |||
@@ -171,7 +171,9 @@ ftrace_push_return_trace(unsigned long ret, unsigned long func, int *depth, | |||
171 | current->ret_stack[index].func = func; | 171 | current->ret_stack[index].func = func; |
172 | current->ret_stack[index].calltime = calltime; | 172 | current->ret_stack[index].calltime = calltime; |
173 | current->ret_stack[index].subtime = 0; | 173 | current->ret_stack[index].subtime = 0; |
174 | #ifdef HAVE_FUNCTION_GRAPH_FP_TEST | ||
174 | current->ret_stack[index].fp = frame_pointer; | 175 | current->ret_stack[index].fp = frame_pointer; |
176 | #endif | ||
175 | *depth = current->curr_ret_stack; | 177 | *depth = current->curr_ret_stack; |
176 | 178 | ||
177 | return 0; | 179 | return 0; |