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()
119 if (tsk->ret_stack && in unwind_frame()
128 orig_pc = ftrace_graph_ret_addr(tsk, NULL, frame->pc, in unwind_frame()
137 frame->pc = kretprobe_find_ret_addr(tsk, (void *)frame->fp, &frame->kr_cur); in unwind_frame()
144 void notrace walk_stackframe(struct task_struct *tsk, struct stackframe *frame, in walk_stackframe() argument
152 ret = unwind_frame(tsk, frame); in walk_stackframe()
164 void dump_backtrace(struct pt_regs *regs, struct task_struct *tsk, in dump_backtrace() argument
170 pr_debug("%s(regs = %p tsk = %p)\n", __func__, regs, tsk); in dump_backtrace()
178 if (!tsk) in dump_backtrace()
179 tsk = current; in dump_backtrace()
181 if (!try_get_task_stack(tsk)) in dump_backtrace()
184 if (tsk == current) { in dump_backtrace()
193 thread_saved_fp(tsk), in dump_backtrace()
194 thread_saved_pc(tsk)); in dump_backtrace()
213 } while (!unwind_frame(tsk, &frame)); in dump_backtrace()
215 put_task_stack(tsk); in dump_backtrace()
218 void show_stack(struct task_struct *tsk, unsigned long *sp, const char *loglvl) in show_stack() argument
220 dump_backtrace(NULL, tsk, loglvl); in show_stack()