Lines Matching refs:frame
120 struct stack_frame* frame, in print_function_info() argument
124 uintptr_t pc = arch_extract_return_addr(frame->ret_addr); in print_function_info()
127 print_stack_address(thread, frame->frame_addr); in print_function_info()
149 struct stack_frame* frame) { in dump_user_function() argument
150 uintptr_t ret_addr = arch_extract_return_addr(frame->ret_addr); in dump_user_function()
155 print_function_info(thread, frame, load_bias, &info); in dump_user_function()
157 print_function_info(thread, frame, load_bias, NULL); in dump_user_function()
162 struct stack_frame* frame) { in dump_kernel_function() argument
168 print_function_info(thread, frame, load_bias, NULL); in dump_kernel_function()
176 static void dump_function(thread_t* thread, struct stack_frame* frame) { in dump_function() argument
177 uintptr_t ret_addr = arch_extract_return_addr(frame->ret_addr); in dump_function()
182 frame); in dump_function()
184 dump_kernel_function(thread, frame); in dump_function()
186 print_function_info(thread, frame, 0, NULL); in dump_function()
248 struct stack_frame* frame, in dump_monotonic_backtrace() argument
252 frame_state = step_frame(frame, user); in dump_monotonic_backtrace()
253 dump_function(thread, frame); in dump_monotonic_backtrace()
255 if (is_on_stack(thread, frame->fp, !user)) { in dump_monotonic_backtrace()
259 if (is_zero_frame(frame)) { in dump_monotonic_backtrace()
263 if (!is_on_stack(thread, frame->fp, user)) { in dump_monotonic_backtrace()
267 if (frame->frame_addr && in dump_monotonic_backtrace()
268 !is_trace_monotonic(frame->frame_addr, frame->fp)) { in dump_monotonic_backtrace()
276 struct stack_frame* frame) { in dump_backtrace_etc() argument
281 if (!is_kernel_address(frame->fp)) { in dump_backtrace_etc()
282 printf("Corrupt stack frame pointer! fp: 0x%" PRIxPTR "\n", frame->fp); in dump_backtrace_etc()
285 int frame_state = dump_monotonic_backtrace(thread, frame, false); in dump_backtrace_etc()
294 frame_state = dump_monotonic_backtrace(thread, frame, false); in dump_backtrace_etc()
297 if (frame_state == FRAME_OK && is_user_address(frame->fp)) { in dump_backtrace_etc()
298 frame_state = dump_monotonic_backtrace(thread, frame, true); in dump_backtrace_etc()
307 dump_function(thread, frame); in dump_backtrace_etc()
311 dump_function(thread, frame); in dump_backtrace_etc()
327 struct stack_frame frame = {0}; in dump_thread_backtrace() local
328 get_current_frame(&frame); in dump_thread_backtrace()
338 dump_backtrace_etc(thread, &frame); in dump_thread_backtrace()