Lines Matching refs:pid
121 void dump_all_threads(uint64_t pid, zx_handle_t process) {
168 printf("WARNING: failed to get a handle to [%" PRIu64 ".%" PRIu64 "] : error %d\n", pid, tid, status);
193 pid, tid);
200 pid, tid);
211 fprintf(f, "Usage: threads [options] pid\n");
218 zx_koid_t pid = ZX_KOID_INVALID;
247 pid = strtoull(pidstr, &endptr, 0);
249 fprintf(stderr, "ERROR: invalid pid: %s", pidstr);
263 status = get_task_by_koid(pid, &type, &process);
265 print_zx_error(status, "unable to get a handle to %" PRIu64, pid);
270 print_error("PID %" PRIu64 " is not a process. Threads can only be dumped from processes", pid);
281 pid, process_name);
283 dump_all_threads(pid, process);