Lines Matching refs:log
37 static void dump_process_header(log_t* log, pid_t pid) {
54 _LOG(log, SCOPE_AT_FAULT, "\n\n----- pid %d at %s -----\n", pid, timestr);
57 _LOG(log, SCOPE_AT_FAULT, "Cmd line: %s\n", procname);
61 static void dump_process_footer(log_t* log, pid_t pid) {
62 _LOG(log, SCOPE_AT_FAULT, "\n----- end %d -----\n", pid);
65 static void dump_thread(log_t* log, pid_t tid, ptrace_context_t* context, bool attached,
84 _LOG(log, SCOPE_AT_FAULT, "\n\"%s\" sysTid=%d\n",
88 _LOG(log, SCOPE_AT_FAULT, "Could not attach to thread: %s\n", strerror(errno));
97 _LOG(log, SCOPE_AT_FAULT, "Could not obtain stack trace for thread.\n");
105 _LOG(log, SCOPE_AT_FAULT, " %s\n", line);
111 LOG("ptrace detach from %d failed: %s\n", tid, strerror(errno));
118 log_t log;
119 log.tfd = fd;
120 log.amfd = amfd;
121 log.quiet = true;
124 dump_process_header(&log, pid);
125 dump_thread(&log, tid, context, true, detach_failed, total_sleep_time_usec);
143 dump_thread(&log, new_tid, context, false, detach_failed, total_sleep_time_usec);
148 dump_process_footer(&log, pid);