Home | History | Annotate | Download | only in debuggerd

Lines Matching refs:tid

54     pid_t pid, tid;
161 static int get_process_info(pid_t tid, pid_t* out_pid, uid_t* out_uid, uid_t* out_gid) {
163 snprintf(path, sizeof(path), "/proc/%d/status", tid);
198 XLOG("reading tid\n");
207 LOG("timed out reading tid (from pid=%d uid=%d)\n", cr.pid, cr.uid);
228 out_request->tid = msg.tid;
235 /* Ensure that the tid reported by the crashing process is valid. */
238 snprintf(buf, sizeof buf, "/proc/%d/task/%d", out_request->pid, out_request->tid);
240 LOG("tid %d does not exist in pid %d. ignoring debug request\n",
241 out_request->tid, out_request->pid);
248 status = get_process_info(out_request->tid, &out_request->pid,
251 LOG("tid %d does not exist. ignoring explicit dump request\n",
252 out_request->tid);
279 XLOG("BOOM: pid=%d uid=%d gid=%d tid=%d\n",
280 request.pid, request.uid, request.gid, request.tid);
293 if (ptrace(PTRACE_ATTACH, request.tid, 0, 0)) {
310 int signal = wait_for_signal(request.tid, &total_sleep_time_usec);
319 tombstone_path = engrave_tombstone(request.pid, request.tid,
325 request.pid, request.tid, &detach_failed,
329 status = ptrace(PTRACE_CONT, request.tid, 0, 0);
357 tombstone_path = engrave_tombstone(request.pid, request.tid,
387 if (ptrace(PTRACE_DETACH, request.tid, 0, 0)) {
388 LOG("ptrace detach from %d failed: %s\n", request.tid, strerror(errno));
401 if (ptrace(PTRACE_DETACH, request.tid, 0, 0)) {
402 LOG("ptrace detach from %d failed: %s\n", request.tid, strerror(errno));
487 static int do_explicit_dump(pid_t tid, bool dump_backtrace) {
488 fprintf(stdout, "Sending request to dump task %d.\n", tid);
492 if (dump_backtrace_to_file(tid
498 if (dump_tombstone(tid, tombstone_path, sizeof(tombstone_path)) < 0) {
508 fputs("Usage: -b [<tid>]\n"
511 "If tid specified, sends a request to debuggerd to dump that task.\n"
522 pid_t tid = 0;
527 tid = atoi(argv[i]);
538 return do_explicit_dump(tid, dump_backtrace);