Lines Matching defs:pid
1230 * is zero, we return a NULL if a pid descriptor could not be found or
1238 pmcstat_process_lookup(pid_t pid, int allocate)
1244 hash = (uint32_t) pid & PMCSTAT_HASH_MASK; /* simplicity wins */
1247 if (pp->pp_pid == pid) {
1269 err(EX_OSERR, "ERROR: Cannot allocate pid descriptor");
1271 pp->pp_pid = pid;
1353 pid_t pid;
1381 * userland process or the kernel (pid == -1).
1388 pid = ev.pl_u.pl_mi.pl_pid;
1389 if (pid == -1)
1392 pp = pmcstat_process_lookup(pid,
1399 image = pmcstat_image_from_path(image_path, pid == -1);
1411 pid = ev.pl_u.pl_mo.pl_pid;
1412 if (pid == -1)
1415 pp = pmcstat_process_lookup(pid, 0);
1432 * currently associated with the PMC & pid
2113 * Create a fake 'process' entry for the kernel with pid -1.