Home | History | Annotate | Download | only in debuggerd

Lines Matching refs:tid

65 static void dump_thread(log_t* log, pid_t tid, ptrace_context_t* context, bool attached,
72 snprintf(path, sizeof(path), "/proc/%d/comm", tid);
85 threadname ? threadname : "<unknown>", tid);
87 if (!attached && ptrace(PTRACE_ATTACH, tid, 0, 0) < 0) {
92 wait_for_stop(tid, total_sleep_time_usec);
95 ssize_t frames = unwind_backtrace_ptrace(tid, context, backtrace, 0, STACK_DEPTH);
110 if (!attached && ptrace(PTRACE_DETACH, tid, 0, 0) != 0) {
111 LOG("ptrace detach from %d failed: %s\n", tid, strerror(errno));
116 void dump_backtrace(int fd, int amfd, pid_t pid, pid_t tid, bool* detach_failed,
123 ptrace_context_t* context = load_ptrace_context(tid);
125 dump_thread(&log, tid, context, true, detach_failed, total_sleep_time_usec);
139 if (*end || new_tid == tid) {