Lines Matching refs:pid
132 pid_t pid;
135 pid = Pstatus(pp->dpp_pr)->pr_pid;
137 pid = proc_getpid(pp->dpp_pr);
140 dt_dprintf("creating probe pid%d:%s:%s:%s\n", (int)pid, pp->dpp_obj,
151 ftp->ftps_pid = pid;
656 "failed to instantiate probes for pid %d: %s",
676 pid_t pid;
691 pid = strtol(last, &end, 10);
693 if (errno != 0 || end == last || end[0] != '\0' || pid <= 0) {
695 "'%s' does not contain a valid pid", pdp->dtpd_provider);
699 return (pid);
708 pid_t pid;
713 if ((pid = dt_pid_get_pid(pdp, dtp, pcb, NULL)) == -1)
719 "pid provider is not installed on this system");
722 "pid provider is not available: %s",
729 (void) snprintf(provname, sizeof (provname), "pid%d", (int)pid);
733 if ((P = dt_proc_grab(dtp, pid, 0, 1)) == NULL)
735 if ((P = dt_proc_grab(dtp, pid, PGRAB_RDONLY | PGRAB_FORCE,
740 "failed to grab process %d", (int)pid);
761 * If it's not strictly a pid provider, we might match a USDT provider.
764 if ((P = dt_proc_grab(dtp, pid, 0, 1)) == NULL) {
766 "failed to grab process %d", (int)pid);
793 pid_t pid;
797 (void) snprintf(provname, sizeof (provname), "pid%d",
807 pid = dt_pid_get_pid(pdp, dtp, NULL, dpr);
808 if (pid != dpr->dpr_pid)
820 * If it's not strictly a pid provider, we might match
844 * behalf of pid provider probes when fasttrap doesn't return any type
907 dt_dprintf("failed to grab pid\n");