Lines Matching defs:pid

158 #define	FASTTRAP_PID_NAME		"pid"
164 static uint64_t fasttrap_pid_count; /* pid ref count */
181 #define FASTTRAP_PROVS_INDEX(pid, name) \
182 ((fasttrap_hash_str(name) + (pid)) & fasttrap_provs.fth_mask)
184 #define FASTTRAP_PROCS_INDEX(pid) ((pid) & fasttrap_procs.fth_mask)
470 * is set on the proc structure to indicate that there is a pid provider
482 * We clean up the pid provider for this process here; user-land
496 * There are no "default" pid probes.
506 pid_t pid;
511 pid = probe->ftp_pid;
515 ASSERT(probe->ftp_tps[index].fit_tp->ftt_pid == pid);
525 bucket = &fasttrap_tpoints.fth_table[FASTTRAP_TPOINTS_INDEX(pid, pc)];
545 if (tp->ftt_pid != pid || tp->ftt_pc != pc ||
636 ASSERT(new_tp->ftt_pid == pid);
680 pid_t pid;
685 pid = probe->ftp_pid;
689 ASSERT(probe->ftp_tps[index].fit_tp->ftt_pid == pid);
695 bucket = &fasttrap_tpoints.fth_table[FASTTRAP_TPOINTS_INDEX(pid, pc)];
698 if (tp->ftt_pid == pid && tp->ftt_pc == pc &&
1182 fasttrap_proc_lookup(pid_t pid)
1187 bucket = &fasttrap_procs.fth_table[FASTTRAP_PROCS_INDEX(pid)];
1191 if (fprc->ftpc_pid == pid && fprc->ftpc_acount != 0) {
1210 new_fprc->ftpc_pid = pid;
1218 * been created for this pid while we weren't under the bucket lock.
1221 if (fprc->ftpc_pid == pid && fprc->ftpc_acount != 0) {
1248 pid_t pid = proc->ftpc_pid;
1268 bucket = &fasttrap_procs.fth_table[FASTTRAP_PROCS_INDEX(pid)];
1292 * Lookup a fasttrap-managed provider based on its name and associated pid.
1298 fasttrap_provider_lookup(pid_t pid, const char *name,
1310 bucket = &fasttrap_provs.fth_table[FASTTRAP_PROVS_INDEX(pid, name)];
1317 if (fp->ftp_pid == pid && strcmp(fp->ftp_name, name) == 0 &&
1336 if ((p = prfind(pid)) == NULL) {
1365 new_fp->ftp_pid = pid;
1366 new_fp->ftp_proc = fasttrap_proc_lookup(pid);
1374 * been created for this pid while we weren't under the bucket lock.
1377 if (fp->ftp_pid == pid && strcmp(fp->ftp_name, name) == 0 &&
1396 if (snprintf(provname, sizeof (provname), "%s%u", name, (uint_t)pid) >=
1421 pid_t pid = provider->ftp_pid;
1454 if ((p = prfind(pid)) == NULL) {
1467 fasttrap_provider_retire(pid_t pid, const char *name, int mprov)
1475 bucket = &fasttrap_provs.fth_table[FASTTRAP_PROVS_INDEX(pid, name)];
1479 if (fp->ftp_pid == pid && strcmp(fp->ftp_name, name) == 0 &&
1728 fasttrap_meta_provide(void *arg, dtrace_helper_provdesc_t *dhpv, pid_t pid)
1733 * A 32-bit unsigned integer (like a pid for example) can be
1740 "name too long to accomodate pid", dhpv->dthpv_provname);
1745 * Don't let folks spoof the true pid provider.
1769 if ((provider = fasttrap_provider_lookup(pid, dhpv->dthpv_provname,
1772 "process %u", dhpv->dthpv_provname, (uint_t)pid);
1909 fasttrap_meta_remove(void *arg, dtrace_helper_provdesc_t *dhpv, pid_t pid)
1917 fasttrap_provider_retire(pid, dhpv->dthpv_provname, 1);
1989 pid_t pid = probe->ftps_pid;
1996 if ((p = prfind(pid)) == NULL || p->p_stat == SIDL) {
2029 pid_t pid = instr.ftiq_pid;
2036 if ((p = prfind(pid)) == NULL || p->p_stat == SIDL) {
2255 * that corresponds to that pid, fail to detach.