Lines Matching defs:sdp
226 dtrace_stmtdesc_t *sdp;
228 if ((sdp = dt_zalloc(dtp, sizeof (dtrace_stmtdesc_t))) == NULL)
232 sdp->dtsd_ecbdesc = edp;
233 sdp->dtsd_descattr = _dtrace_defattr;
234 sdp->dtsd_stmtattr = _dtrace_defattr;
236 return (sdp);
240 dtrace_stmt_action(dtrace_hdl_t *dtp, dtrace_stmtdesc_t *sdp)
243 dtrace_ecbdesc_t *edp = sdp->dtsd_ecbdesc;
248 if (sdp->dtsd_action_last != NULL) {
249 assert(sdp->dtsd_action != NULL);
250 assert(sdp->dtsd_action_last->dtad_next == NULL);
251 sdp->dtsd_action_last->dtad_next = new;
255 assert(sdp->dtsd_action == NULL);
256 sdp->dtsd_action = new;
267 sdp->dtsd_action_last = new;
269 new->dtad_uarg = (uintptr_t)sdp;
275 dtrace_stmt_add(dtrace_hdl_t *dtp, dtrace_prog_t *pgp, dtrace_stmtdesc_t *sdp)
283 stp->ds_desc = sdp;
305 dtrace_stmt_destroy(dtrace_hdl_t *dtp, dtrace_stmtdesc_t *sdp)
307 dtrace_ecbdesc_t *edp = sdp->dtsd_ecbdesc;
313 if (sdp->dtsd_action != NULL) {
314 dtrace_actdesc_t *last = sdp->dtsd_action_last;
320 if (ap == sdp->dtsd_action)
323 if (ap->dtad_next == sdp->dtsd_action)
340 for (ap = sdp->dtsd_action; ap != NULL; ap = next) {
341 assert(ap->dtad_uarg == (uintptr_t)sdp);
348 if (sdp->dtsd_fmtdata != NULL)
349 dt_printf_destroy(sdp->dtsd_fmtdata);
351 dt_ecbdesc_release(dtp, sdp->dtsd_ecbdesc);
352 dt_free(dtp, sdp);