Lines Matching refs:pid
211 * is zero, we return a NULL if a pid descriptor could not be found or
219 pmcstat_process_lookup(pid_t pid, int allocate)
225 hash = (uint32_t) pid & PMCSTAT_HASH_MASK; /* simplicity wins */
228 if (pp->pp_pid == pid) {
250 err(EX_OSERR, "ERROR: Cannot allocate pid descriptor");
252 pp->pp_pid = pid;
266 pid_t pid;
273 switch (pid = fork()) {
303 EV_SET(&kev, pid, EVFILT_PROC, EV_ADD | EV_ONESHOT, NOTE_EXIT, 0,
306 err(EX_OSERR, "ERROR: cannot monitor child process %d", pid);
311 pt->pt_pid = pid;
324 * If a pid was specified, attach each allocated PMC to the target