|
@@ -817,7 +817,7 @@ function_profile_call(unsigned long ip, unsigned long parent_ip,
|
|
|
#ifdef CONFIG_FUNCTION_GRAPH_TRACER
|
|
|
static int profile_graph_entry(struct ftrace_graph_ent *trace)
|
|
|
{
|
|
|
- int index = trace->depth;
|
|
|
+ int index = current->curr_ret_stack;
|
|
|
|
|
|
function_profile_call(trace->func, 0, NULL, NULL);
|
|
|
|
|
@@ -852,7 +852,7 @@ static void profile_graph_return(struct ftrace_graph_ret *trace)
|
|
|
if (!fgraph_graph_time) {
|
|
|
int index;
|
|
|
|
|
|
- index = trace->depth;
|
|
|
+ index = current->curr_ret_stack;
|
|
|
|
|
|
/* Append this call time to the parent time to subtract */
|
|
|
if (index)
|