Lines Matching refs:tsk
66 int notrace unwind_frame(struct task_struct *tsk, struct stackframe *frame) in unwind_frame() argument
71 if (!tsk) in unwind_frame()
72 tsk = current; in unwind_frame()
75 if (fp == (unsigned long)task_pt_regs(tsk)->stackframe) in unwind_frame()
81 if (!on_accessible_stack(tsk, fp, 16, &info)) in unwind_frame()
117 if (tsk->ret_stack && in unwind_frame()
126 ret_stack = ftrace_graph_get_ret_stack(tsk, frame->graph++); in unwind_frame()
139 void notrace walk_stackframe(struct task_struct *tsk, struct stackframe *frame, in walk_stackframe() argument
147 ret = unwind_frame(tsk, frame); in walk_stackframe()
159 void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk, in dump_backtrace() argument
165 pr_debug("%s(regs = %p tsk = %p)\n", __func__, regs, tsk); in dump_backtrace()
173 if (!tsk) in dump_backtrace()
174 tsk = current; in dump_backtrace()
176 if (!try_get_task_stack(tsk)) in dump_backtrace()
179 if (tsk == current) { in dump_backtrace()
188 thread_saved_fp(tsk), in dump_backtrace()
189 thread_saved_pc(tsk)); in dump_backtrace()
208 } while (!unwind_frame(tsk, &frame)); in dump_backtrace()
210 put_task_stack(tsk); in dump_backtrace()
213 void show_stack(struct task_struct *tsk, unsigned long *sp, const char *loglvl) in show_stack() argument
215 dump_backtrace(NULL, tsk, loglvl); in show_stack()