Lines Matching refs:task
281 ftrace_graph_get_ret_stack(struct task_struct *task, int idx) in ftrace_graph_get_ret_stack() argument
283 idx = task->curr_ret_stack - idx; in ftrace_graph_get_ret_stack()
285 if (idx >= 0 && idx <= task->curr_ret_stack) in ftrace_graph_get_ret_stack()
286 return &task->ret_stack[idx]; in ftrace_graph_get_ret_stack()
307 unsigned long ftrace_graph_ret_addr(struct task_struct *task, int *idx, in ftrace_graph_ret_addr() argument
310 int index = task->curr_ret_stack; in ftrace_graph_ret_addr()
320 if (task->ret_stack[i].retp == retp) in ftrace_graph_ret_addr()
321 return task->ret_stack[i].ret; in ftrace_graph_ret_addr()
326 unsigned long ftrace_graph_ret_addr(struct task_struct *task, int *idx, in ftrace_graph_ret_addr() argument
334 task_idx = task->curr_ret_stack; in ftrace_graph_ret_addr()
336 if (!task->ret_stack || task_idx < *idx) in ftrace_graph_ret_addr()
342 return task->ret_stack[task_idx].ret; in ftrace_graph_ret_addr()