Lines Matching defs:task
14 * There four combinations for task and regs:
15 * 1) task==NULL, regs==NULL: the unwind starts for the task that is currently
17 * 2) task==NULL, regs!=NULL: the unwind starts from the sp/ip found in
18 * the struct pt_regs of an interrupt frame for the current task
19 * 3) task!=NULL, regs==NULL: the unwind starts for an inactive task with
20 * the sp picked up from task->thread.ksp and the ip picked up from the
22 * 4) task!=NULL, regs!=NULL: the sp/ip are picked up from the interrupt
23 * frame 'regs' of a inactive task
37 struct task_struct *task;
50 ip = ftrace_graph_ret_addr(state->task, &state->graph_idx, ip, (void *)state->sp);
53 ip = rethook_find_ret_addr(state->task, state->sp, &state->kr_cur);
58 void __unwind_start(struct unwind_state *state, struct task_struct *task,
74 struct task_struct *task,
78 task = task ?: current;
79 first_frame = first_frame ?: get_stack_pointer(task, regs);
80 __unwind_start(state, task, regs, first_frame);
88 #define unwind_for_each_frame(state, task, regs, first_frame) \
89 for (unwind_start(state, task, regs, first_frame); \