Lines Matching refs:enabled
115 dtrace_eprobedesc_t *enabled, *nenabled; in dt_epid_add() local
151 if ((enabled = malloc(sizeof (dtrace_eprobedesc_t))) == NULL) in dt_epid_add()
154 bzero(enabled, sizeof (dtrace_eprobedesc_t)); in dt_epid_add()
155 enabled->dtepd_epid = id; in dt_epid_add()
156 enabled->dtepd_nrecs = 1; in dt_epid_add()
158 if (dt_ioctl(dtp, DTRACEIOC_EPROBE, enabled) == -1) { in dt_epid_add()
160 free(enabled); in dt_epid_add()
164 if (DTRACE_SIZEOF_EPROBEDESC(enabled) != sizeof (*enabled)) { in dt_epid_add()
170 malloc(DTRACE_SIZEOF_EPROBEDESC(enabled))) != NULL) in dt_epid_add()
171 bcopy(enabled, nenabled, sizeof (*enabled)); in dt_epid_add()
173 free(enabled); in dt_epid_add()
175 if ((enabled = nenabled) == NULL) in dt_epid_add()
178 rval = dt_ioctl(dtp, DTRACEIOC_EPROBE, enabled); in dt_epid_add()
182 free(enabled); in dt_epid_add()
188 free(enabled); in dt_epid_add()
192 probe->dtpd_id = enabled->dtepd_probeid; in dt_epid_add()
199 for (i = 0; i < enabled->dtepd_nrecs; i++) { in dt_epid_add()
200 dtrace_recdesc_t *rec = &enabled->dtepd_rec[i]; in dt_epid_add()
220 dtp->dt_edesc[id] = enabled; in dt_epid_add()
231 free(enabled); in dt_epid_add()