Lines Matching refs:task
21 void notrace walk_stackframe(struct task_struct *task, struct pt_regs *regs, in walk_stackframe() argument
30 } else if (task == NULL || task == current) { in walk_stackframe()
36 fp = task->thread.s[0]; in walk_stackframe()
37 sp = task->thread.sp; in walk_stackframe()
38 pc = task->thread.ra; in walk_stackframe()
70 void notrace walk_stackframe(struct task_struct *task, in walk_stackframe() argument
79 } else if (task == NULL || task == current) { in walk_stackframe()
84 sp = task->thread.sp; in walk_stackframe()
85 pc = task->thread.ra; in walk_stackframe()
109 noinline void dump_backtrace(struct pt_regs *regs, struct task_struct *task, in dump_backtrace() argument
112 walk_stackframe(task, regs, print_trace_address, (void *)loglvl); in dump_backtrace()
115 void show_stack(struct task_struct *task, unsigned long *sp, const char *loglvl) in show_stack() argument
118 dump_backtrace(NULL, task, loglvl); in show_stack()
131 unsigned long __get_wchan(struct task_struct *task) in __get_wchan() argument
135 if (!try_get_task_stack(task)) in __get_wchan()
137 walk_stackframe(task, NULL, save_wchan, &pc); in __get_wchan()
138 put_task_stack(task); in __get_wchan()
145 struct task_struct *task, struct pt_regs *regs) in arch_stack_walk() argument
147 walk_stackframe(task, regs, consume_entry, cookie); in arch_stack_walk()