Lines Matching defs:pid
118 pid_t pid;
120 pid = Pstatus(pp->dpp_pr)->pr_pid;
122 dt_dprintf("creating probe pid%d:%s:%s:%s\n", (int)pid, pp->dpp_obj,
133 ftp->ftps_pid = pid;
590 "failed to instantiate probes for pid %d: %s",
606 pid_t pid;
621 pid = strtol(last, &end, 10);
623 if (errno != 0 || end == last || end[0] != '\0' || pid <= 0) {
625 "'%s' does not contain a valid pid", pdp->dtpd_provider);
629 return (pid);
638 pid_t pid;
643 if ((pid = dt_pid_get_pid(pdp, dtp, pcb, NULL)) == -1)
649 "pid provider is not installed on this system");
652 "pid provider is not available: %s",
659 (void) snprintf(provname, sizeof (provname), "pid%d", (int)pid);
662 if ((P = dt_proc_grab(dtp, pid, PGRAB_RDONLY | PGRAB_FORCE,
665 "failed to grab process %d", (int)pid);
686 * If it's not strictly a pid provider, we might match a USDT provider.
689 if ((P = dt_proc_grab(dtp, pid, 0, 1)) == NULL) {
691 "failed to grab process %d", (int)pid);
717 pid_t pid;
721 (void) snprintf(provname, sizeof (provname), "pid%d",
731 pid = dt_pid_get_pid(pdp, dtp, NULL, dpr);
732 if (pid != dpr->dpr_pid)
744 * If it's not strictly a pid provider, we might match
766 * behalf of pid provider probes when fasttrap doesn't return any type
829 dt_dprintf("failed to grab pid\n");