Lines Matching full:frame

13  * Unwind the current stack frame and store the new register values in the
41 int notrace unwind_frame(struct stackframe *frame) in unwind_frame() argument
44 unsigned long fp = frame->fp; in unwind_frame()
47 low = frame->sp; in unwind_frame()
51 /* check current frame pointer is within bounds */ in unwind_frame()
55 frame->sp = frame->fp; in unwind_frame()
56 frame->fp = *(unsigned long *)(fp); in unwind_frame()
57 frame->pc = frame->lr; in unwind_frame()
58 frame->lr = *(unsigned long *)(fp + 4); in unwind_frame()
60 /* check current frame pointer is within bounds */ in unwind_frame()
64 /* restore the registers from the stack frame */ in unwind_frame()
65 frame->fp = *(unsigned long *)(fp - 12); in unwind_frame()
66 frame->sp = *(unsigned long *)(fp - 8); in unwind_frame()
67 frame->pc = *(unsigned long *)(fp - 4); in unwind_frame()
74 void notrace walk_stackframe(struct stackframe *frame, in walk_stackframe() argument
80 if (fn(frame, data)) in walk_stackframe()
82 ret = unwind_frame(frame); in walk_stackframe()
96 static int save_trace(struct stackframe *frame, void *d) in save_trace() argument
101 unsigned long addr = frame->pc; in save_trace()
115 if (!in_entry_text(frame->pc)) in save_trace()
118 regs = (struct pt_regs *)frame->sp; in save_trace()
119 if ((unsigned long)&regs[1] > ALIGN(frame->sp, THREAD_SIZE)) in save_trace()
132 struct stackframe frame; in __save_stack_trace() local
147 frame.fp = thread_saved_fp(tsk); in __save_stack_trace()
148 frame.sp = thread_saved_sp(tsk); in __save_stack_trace()
149 frame.lr = 0; /* recovered from the stack */ in __save_stack_trace()
150 frame.pc = thread_saved_pc(tsk); in __save_stack_trace()
155 frame.fp = (unsigned long)__builtin_frame_address(0); in __save_stack_trace()
156 frame.sp = current_stack_pointer; in __save_stack_trace()
157 frame.lr = (unsigned long)__builtin_return_address(0); in __save_stack_trace()
158 frame.pc = (unsigned long)__save_stack_trace; in __save_stack_trace()
161 walk_stackframe(&frame, save_trace, &data); in __save_stack_trace()
167 struct stackframe frame; in save_stack_trace_regs() local
173 frame.fp = regs->ARM_fp; in save_stack_trace_regs()
174 frame.sp = regs->ARM_sp; in save_stack_trace_regs()
175 frame.lr = regs->ARM_lr; in save_stack_trace_regs()
176 frame.pc = regs->ARM_pc; in save_stack_trace_regs()
178 walk_stackframe(&frame, save_trace, &data); in save_stack_trace_regs()