Lines Matching refs:ret_stack
933 current->ret_stack[index - 1].subtime += calltime; in profile_graph_return()
935 if (current->ret_stack[index].subtime < calltime) in profile_graph_return()
936 calltime -= current->ret_stack[index].subtime; in profile_graph_return()
5719 if (t->ret_stack == NULL) { in alloc_retstack_tasklist()
5724 t->ret_stack = ret_stack_list[start++]; in alloc_retstack_tasklist()
5765 next->ret_stack[index].calltime += timestamp; in ftrace_graph_probe_sched_switch()
5783 if (!idle_task(cpu)->ret_stack) in start_graph_tracing()
5929 graph_init_task(struct task_struct *t, struct ftrace_ret_stack *ret_stack) in graph_init_task() argument
5935 t->ret_stack = ret_stack; in graph_init_task()
5949 if (t->ret_stack) in ftrace_graph_init_idle_task()
5950 WARN_ON(t->ret_stack != per_cpu(idle_ret_stack, cpu)); in ftrace_graph_init_idle_task()
5953 struct ftrace_ret_stack *ret_stack; in ftrace_graph_init_idle_task() local
5955 ret_stack = per_cpu(idle_ret_stack, cpu); in ftrace_graph_init_idle_task()
5956 if (!ret_stack) { in ftrace_graph_init_idle_task()
5957 ret_stack = kmalloc(FTRACE_RETFUNC_DEPTH in ftrace_graph_init_idle_task()
5960 if (!ret_stack) in ftrace_graph_init_idle_task()
5962 per_cpu(idle_ret_stack, cpu) = ret_stack; in ftrace_graph_init_idle_task()
5964 graph_init_task(t, ret_stack); in ftrace_graph_init_idle_task()
5972 t->ret_stack = NULL; in ftrace_graph_init_task()
5976 struct ftrace_ret_stack *ret_stack; in ftrace_graph_init_task() local
5978 ret_stack = kmalloc(FTRACE_RETFUNC_DEPTH in ftrace_graph_init_task()
5981 if (!ret_stack) in ftrace_graph_init_task()
5983 graph_init_task(t, ret_stack); in ftrace_graph_init_task()
5989 struct ftrace_ret_stack *ret_stack = t->ret_stack; in ftrace_graph_exit_task() local
5991 t->ret_stack = NULL; in ftrace_graph_exit_task()
5995 kfree(ret_stack); in ftrace_graph_exit_task()