Lines Matching refs:pid
60 event->proc->pid, event->type); in enque_event()
94 event->proc != NULL ? event->proc->pid : -1); in each_qd_event()
139 pid_t pid; in next_event() local
158 pid = waitpid(-1, &status, __WALL); in next_event()
161 if (pid == -1) { in next_event()
173 event.proc = pid2proc(pid); in next_event()
191 for (; i < 100 && process_status(pid) != PS_TRACING_STOP; ++i) { in next_event()
192 debug(2, "waiting for %d to stop", pid); in next_event()
196 event.e_un.newpid = pid; in next_event()
197 debug(DEBUG_EVENT, "event: NEW: pid=%d", pid); in next_event()
202 debug(3, "event from pid %u", pid); in next_event()
217 switch (process_stopped(pid)) \ in next_event()
223 continue_process(event.proc->pid); \ in next_event()
237 debug(DEBUG_EVENT, "event: EXIT_SIGNAL: pid=%d, signum=%d", pid, event.e_un.signum); in next_event()
243 debug(DEBUG_EVENT, "event: EXIT: pid=%d, status=%d", pid, event.e_un.ret_val); in next_event()
258 debug(DEBUG_EVENT, "event: SYSCALL: pid=%d, sysnum=%d", pid, tmp); in next_event()
263 debug(DEBUG_EVENT, "event: SYSRET: pid=%d, sysnum=%d", pid, tmp); in next_event()
268 debug(DEBUG_EVENT, "event: ARCH_SYSCALL: pid=%d, sysnum=%d", pid, tmp); in next_event()
273 debug(DEBUG_EVENT, "event: ARCH_SYSRET: pid=%d, sysnum=%d", pid, tmp); in next_event()
288 ptrace(PTRACE_GETEVENTMSG, pid, NULL, &data); in next_event()
291 pid, (int)data); in next_event()
297 debug(DEBUG_EVENT, "event: EXEC: pid=%d", pid); in next_event()
303 debug(DEBUG_EVENT, "event: NONE: pid=%d (wait error?)", pid); in next_event()
328 debug(DEBUG_EVENT, "event: SIGNAL: pid=%d, signum=%d", pid, stop_signal); in next_event()
336 debug(DEBUG_EVENT, "event: BREAKPOINT: pid=%d, addr=%p", pid, event.e_un.brk_addr); in next_event()