Lines Matching refs:pdp
214 dt_probe_keylen(const dtrace_probedesc_t *pdp)
216 return (strlen(pdp->dtpd_mod) + 1 +
217 strlen(pdp->dtpd_func) + 1 + strlen(pdp->dtpd_name) + 1);
221 dt_probe_key(const dtrace_probedesc_t *pdp, char *s)
224 pdp->dtpd_mod, pdp->dtpd_func, pdp->dtpd_name);
233 dt_probe_discover(dt_provider_t *pvp, const dtrace_probedesc_t *pdp)
236 char *name = dt_probe_key(pdp, alloca(dt_probe_keylen(pdp)));
249 assert(strcmp(pvp->pv_desc.dtvd_name, pdp->dtpd_provider) == 0);
250 assert(pdp->dtpd_id != DTRACE_IDNONE);
253 pvp->pv_desc.dtvd_name, name, pdp->dtpd_id);
258 adp->dtargd_id = pdp->dtpd_id;
285 dt_pid_get_types(dtp, pdp, adv, &nc);
301 DT_IDFLG_ORPHAN, pdp->dtpd_id, _dtrace_defattr, 0,
664 dt_probe_desc(dtrace_hdl_t *dtp, const dtrace_probedesc_t *pdp, void *arg)
667 bcopy(pdp, arg, sizeof (dtrace_probedesc_t));
676 const dtrace_probedesc_t *pdp, dtrace_probeinfo_t *pip)
678 int m_is_glob = pdp->dtpd_mod[0] == '\0' || strisglob(pdp->dtpd_mod);
679 int f_is_glob = pdp->dtpd_func[0] == '\0' || strisglob(pdp->dtpd_func);
680 int n_is_glob = pdp->dtpd_name[0] == '\0' || strisglob(pdp->dtpd_name);
692 if ((pvp = dt_provider_lookup(dtp, pdp->dtpd_provider)) != NULL) {
693 size_t keylen = dt_probe_keylen(pdp);
694 char *key = dt_probe_key(pdp, alloca(keylen));
698 else if (pdp->dtpd_id != DTRACE_IDNONE)
699 prp = dt_probe_discover(pvp, pdp);
705 * iterating over up to at most two probes that match 'pdp'. We then
723 if ((m = dtrace_probe_iter(dtp, pdp, dt_probe_desc, &pd)) < 0)
791 if (pdp->dtpd_provider[0] == '\0' || strisglob(pdp->dtpd_provider))
814 const dtrace_probedesc_t *pdp, dtrace_probeinfo_t *pip)
816 return (dt_probe_info(dtp, pdp, pip) != NULL ? 0 : -1);
837 const dtrace_probedesc_t *pdp, dtrace_probe_f *func, void *arg)
839 const char *provider = pdp ? pdp->dtpd_provider : NULL;
850 pit.pit_pat = pdp ? pdp->dtpd_name : NULL;
869 if (pdp != NULL)
875 if (pdp != NULL)
876 bcopy(pdp, &pd, sizeof (pd));