Lines Matching refs:pid
1241 * is zero, we return a NULL if a pid descriptor could not be found or
1249 pmcstat_process_lookup(pid_t pid, int allocate)
1255 hash = (uint32_t) pid & PMCSTAT_HASH_MASK; /* simplicity wins */
1258 if (pp->pp_pid == pid) {
1280 err(EX_OSERR, "ERROR: Cannot allocate pid descriptor");
1282 pp->pp_pid = pid;
1364 pid_t pid;
1392 * userland process or the kernel (pid == -1).
1399 pid = ev.pl_u.pl_mi.pl_pid;
1400 if (pid == -1)
1403 pp = pmcstat_process_lookup(pid,
1410 image = pmcstat_image_from_path(image_path, pid == -1);
1422 pid = ev.pl_u.pl_mo.pl_pid;
1423 if (pid == -1)
1426 pp = pmcstat_process_lookup(pid, 0);
1443 * currently associated with the PMC & pid
2126 * Create a fake 'process' entry for the kernel with pid -1.