Lines Matching refs:tsk
44 int notrace unwind_frame(struct task_struct *tsk, struct stackframe *frame) in unwind_frame() argument
51 if (!tsk) in unwind_frame()
52 tsk = current; in unwind_frame()
54 if (!on_accessible_stack(tsk, fp)) in unwind_frame()
61 if (tsk->ret_stack && in unwind_frame()
74 frame->pc = tsk->ret_stack[frame->graph--].ret; in unwind_frame()
91 void notrace walk_stackframe(struct task_struct *tsk, struct stackframe *frame, in walk_stackframe() argument
99 ret = unwind_frame(tsk, frame); in walk_stackframe()
151 static noinline void __save_stack_trace(struct task_struct *tsk, in __save_stack_trace() argument
157 if (!try_get_task_stack(tsk)) in __save_stack_trace()
164 if (tsk != current) { in __save_stack_trace()
165 frame.fp = thread_saved_fp(tsk); in __save_stack_trace()
166 frame.pc = thread_saved_pc(tsk); in __save_stack_trace()
174 frame.graph = tsk->curr_ret_stack; in __save_stack_trace()
177 walk_stackframe(tsk, &frame, save_trace, &data); in __save_stack_trace()
181 put_task_stack(tsk); in __save_stack_trace()
185 void save_stack_trace_tsk(struct task_struct *tsk, struct stack_trace *trace) in save_stack_trace_tsk() argument
187 __save_stack_trace(tsk, trace, 1); in save_stack_trace_tsk()