Lines Matching refs:ret_stack
818 struct ftrace_ret_stack *ret_stack; in profile_graph_entry() local
823 if (!current->ret_stack) in profile_graph_entry()
826 ret_stack = ftrace_graph_get_ret_stack(current, 0); in profile_graph_entry()
827 if (ret_stack) in profile_graph_entry()
828 ret_stack->subtime = 0; in profile_graph_entry()
835 struct ftrace_ret_stack *ret_stack; in profile_graph_return() local
855 ret_stack = ftrace_graph_get_ret_stack(current, 1); in profile_graph_return()
856 if (ret_stack) in profile_graph_return()
857 ret_stack->subtime += calltime; in profile_graph_return()
859 ret_stack = ftrace_graph_get_ret_stack(current, 0); in profile_graph_return()
860 if (ret_stack && ret_stack->subtime < calltime) in profile_graph_return()
861 calltime -= ret_stack->subtime; in profile_graph_return()