• Home
  • Raw
  • Download

Lines Matching refs:tfd

54 extern int unwind_backtrace_with_ptrace(int tfd, pid_t pid, mapinfo *map,
64 void _LOG(int tfd, bool in_tombstone_only, const char *fmt, ...) in _LOG() argument
71 if (tfd >= 0) { in _LOG()
75 if(tfd >= 0) write(tfd, buf, len); in _LOG()
119 void dump_build_info(int tfd) in dump_build_info() argument
125 _LOG(tfd, false, "Build fingerprint: '%s'\n", fingerprint); in dump_build_info()
129 void dump_stack_and_code(int tfd, int pid, mapinfo *map, in dump_stack_and_code() argument
143 _LOG(tfd, only_in_tombstone, "\ncode around pc:\n"); in dump_stack_and_code()
163 _LOG(tfd, only_in_tombstone, "%s\n", code_buffer); in dump_stack_and_code()
167 _LOG(tfd, only_in_tombstone, "\ncode around lr:\n"); in dump_stack_and_code()
187 _LOG(tfd, only_in_tombstone, "%s\n", code_buffer); in dump_stack_and_code()
206 _LOG(tfd, only_in_tombstone, "\nstack:\n"); in dump_stack_and_code()
233 _LOG(tfd, (sp_depth > 2) || only_in_tombstone, in dump_stack_and_code()
243 _LOG(tfd, (sp_depth > 2) || only_in_tombstone, in dump_stack_and_code()
250 void dump_pc_and_lr(int tfd, int pid, mapinfo *map, int unwound_level, in dump_pc_and_lr() argument
256 _LOG(tfd, !at_fault, "tid %d not responding!\n", pid); in dump_pc_and_lr()
261 _LOG(tfd, !at_fault, " #%02d pc %08x %s\n", 0, r.ARM_pc, in dump_pc_and_lr()
264 _LOG(tfd, !at_fault, " #%02d lr %08x %s\n", 1, r.ARM_lr, in dump_pc_and_lr()
268 void dump_registers(int tfd, int pid, bool at_fault) in dump_registers() argument
274 _LOG(tfd, only_in_tombstone, in dump_registers()
279 _LOG(tfd, only_in_tombstone, " r0 %08x r1 %08x r2 %08x r3 %08x\n", in dump_registers()
281 _LOG(tfd, only_in_tombstone, " r4 %08x r5 %08x r6 %08x r7 %08x\n", in dump_registers()
283 _LOG(tfd, only_in_tombstone, " r8 %08x r9 %08x 10 %08x fp %08x\n", in dump_registers()
285 _LOG(tfd, only_in_tombstone, in dump_registers()
294 _LOG(tfd, only_in_tombstone, in dump_registers()
300 _LOG(tfd, only_in_tombstone, in dump_registers()
304 _LOG(tfd, only_in_tombstone, " scr %08lx\n\n", vfp_regs.fpscr); in dump_registers()
365 void dump_fault_addr(int tfd, int pid, int sig) in dump_fault_addr() argument
371 _LOG(tfd, false, "cannot get siginfo: %s\n", strerror(errno)); in dump_fault_addr()
373 _LOG(tfd, false, "signal %d (%s), code %d (%s), fault addr %08x\n", in dump_fault_addr()
380 void dump_crash_banner(int tfd, unsigned pid, unsigned tid, int sig) in dump_crash_banner() argument
393 _LOG(tfd, false, in dump_crash_banner()
395 dump_build_info(tfd); in dump_crash_banner()
396 _LOG(tfd, false, "pid: %d, tid: %d >>> %s <<<\n", in dump_crash_banner()
399 if(sig) dump_fault_addr(tfd, tid, sig); in dump_crash_banner()
436 void dump_crash_report(int tfd, unsigned pid, unsigned tid, bool at_fault) in dump_crash_report() argument
446 _LOG(tfd, true, in dump_crash_report()
448 _LOG(tfd, true, "pid: %d, tid: %d\n", pid, tid); in dump_crash_report()
451 dump_registers(tfd, tid, at_fault); in dump_crash_report()
474 stack_depth = unwind_backtrace_with_ptrace(tfd, tid, milist, sp_list, in dump_crash_report()
481 dump_pc_and_lr(tfd, tid, milist, stack_depth, at_fault); in dump_crash_report()
484 dump_stack_and_code(tfd, tid, milist, stack_depth, sp_list, at_fault); in dump_crash_report()
554 static bool dump_sibling_thread_report(int tfd, unsigned pid, unsigned tid) in dump_sibling_thread_report() argument
583 dump_crash_report(tfd, pid, new_tid, false); in dump_sibling_thread_report()