Lines Matching refs:idp
785 dt_ident_t *idp; in dt_node_resolve() local
794 idp = dt_ident_resolve(dnp->dn_ident); in dt_node_resolve()
795 return (idp->di_kind == idkind ? idp : NULL); in dt_node_resolve()
799 idp = dt_ident_resolve(dnp->dn_ident); in dt_node_resolve()
800 return (idp->di_kind == idkind ? idp : NULL); in dt_node_resolve()
1303 dt_ident_t *idp; in dt_node_ident() local
1315 if ((idp = dt_idstack_lookup(&yypcb->pcb_globals, name)) != NULL && in dt_node_ident()
1316 (idp->di_flags & DT_IDFLG_INLINE)) { in dt_node_ident()
1317 dt_idnode_t *inp = idp->di_iarg; in dt_node_ident()
1549 dt_ident_t *idp; in dt_node_decl() local
1559 idp = dt_idhash_lookup(dhp, dsp->ds_ident); in dt_node_decl()
1564 idp = dt_idhash_lookup(dhp, dsp->ds_ident); in dt_node_decl()
1569 idp = dt_idstack_lookup( in dt_node_decl()
1580 if (idp != NULL && idp->di_gen == 0) { in dt_node_decl()
1582 "redeclared: %s\n", idp->di_name); in dt_node_decl()
1615 if (idp != NULL && idp->di_type != CTF_ERR) in dt_node_decl()
1616 dt_node_type_assign(&idn, idp->di_ctfp, idp->di_type, in dt_node_decl()
1618 else if (idp != NULL) in dt_node_decl()
1619 (void) dt_ident_cook(&idn, idp, NULL); in dt_node_decl()
1632 if (idp != NULL && (idp->di_kind != idkind || in dt_node_decl()
1640 dt_idkind_name(idp->di_kind), in dt_node_decl()
1643 } else if (idp != NULL && assc) { in dt_node_decl()
1644 const dt_idsig_t *isp = idp->di_data; in dt_node_decl()
1665 dt_idkind_name(idp->di_kind), argc + 1, in dt_node_decl()
1677 dt_idkind_name(idp->di_kind), in dt_node_decl()
1682 } else if (idp == NULL) { in dt_node_decl()
1717 idp = dt_idhash_insert(dhp, dsp->ds_ident, idkind, in dt_node_decl()
1722 if (idp == NULL) in dt_node_decl()
1725 dt_ident_type_assign(idp, dtt.dtt_ctfp, dtt.dtt_type); in dt_node_decl()
1736 idp->di_attr = in dt_node_decl()
1737 dt_ident_cook(&idn, idp, &ddp->dd_node); in dt_node_decl()
1753 dt_ident_t *idp; in dt_node_func() local
1760 idp = dt_idstack_lookup(&yypcb->pcb_globals, dnp->dn_string); in dt_node_func()
1762 if (idp == NULL) { in dt_node_func()
1767 if (idp->di_kind != DT_IDENT_FUNC && in dt_node_func()
1768 idp->di_kind != DT_IDENT_AGGFUNC && in dt_node_func()
1769 idp->di_kind != DT_IDENT_ACTFUNC) { in dt_node_func()
1771 "function\n", dt_idkind_name(idp->di_kind), idp->di_name); in dt_node_func()
1779 dnp->dn_ident = idp; in dt_node_func()
2232 dt_ident_t *idp, *rdp; in dt_node_inline() local
2247 if ((idp = dt_idstack_lookup( in dt_node_inline()
2251 idp->di_name, dt_idkind_name(idp->di_kind), in dt_node_inline()
2252 (idp->di_flags & DT_IDFLG_INLINE) ? "inline" : ""); in dt_node_inline()
2300 idp = dnp->dn_ident = dt_ident_create(dsp->ds_ident, in dt_node_inline()
2305 if (idp == NULL) { in dt_node_inline()
2388 idp->di_flags |= (rdp->di_flags & in dt_node_inline()
2392 idp->di_attr = dt_attr_min(_dtrace_defattr, expr->dn_attr); in dt_node_inline()
2393 dt_ident_type_assign(idp, dtt.dtt_ctfp, dtt.dtt_type); in dt_node_inline()
2394 (void) dt_ident_cook(dnp, idp, &ddp->dd_node); in dt_node_inline()
2411 dt_idhash_xinsert(dtp->dt_globals, idp); in dt_node_inline()
2640 dt_ident_t *idp; in dt_xcook_ident() local
2691 (idp = dt_idhash_lookup(dhp, name)) != NULL) || in dt_xcook_ident()
2693 (idp = dt_idstack_lookup(&yypcb->pcb_globals, name)) != NULL))) { in dt_xcook_ident()
2700 if (idp->di_kind != idkind && dhp == dtp->dt_globals) { in dt_xcook_ident()
2702 "as %s\n", dt_idkind_name(idp->di_kind), in dt_xcook_ident()
2703 idp->di_name, dt_idkind_name(idkind)); in dt_xcook_ident()
2711 if (idp->di_kind != DT_IDENT_ARRAY && in dt_xcook_ident()
2712 idp->di_kind != DT_IDENT_AGG) in dt_xcook_ident()
2713 attr = dt_ident_cook(dnp, idp, NULL); in dt_xcook_ident()
2717 attr = idp->di_attr; in dt_xcook_ident()
2723 dnp->dn_ident = idp; in dt_xcook_ident()
2726 if (idp->di_flags & DT_IDFLG_WRITE) in dt_xcook_ident()
2766 idp = dt_ident_create(name, DT_IDENT_SYMBOL, 0, 0, in dt_xcook_ident()
2769 if (idp == NULL) in dt_xcook_ident()
2773 idp->di_flags |= DT_IDFLG_PRIM; in dt_xcook_ident()
2775 idp->di_next = dtp->dt_externs; in dt_xcook_ident()
2776 dtp->dt_externs = idp; in dt_xcook_ident()
2782 idp->di_data = sip; in dt_xcook_ident()
2783 idp->di_ctfp = dtt.dtt_ctfp; in dt_xcook_ident()
2784 idp->di_type = dtt.dtt_type; in dt_xcook_ident()
2789 dnp->dn_ident = idp; in dt_xcook_ident()
2797 idp->di_flags |= DT_IDFLG_USER; in dt_xcook_ident()
2819 idp = dt_idhash_insert(dhp, name, in dt_xcook_ident()
2823 idp = dt_idhash_insert(dhp, name, in dt_xcook_ident()
2828 if (idp == NULL) in dt_xcook_ident()
2836 if (idp->di_kind != DT_IDENT_ARRAY && in dt_xcook_ident()
2837 idp->di_kind != DT_IDENT_AGG) in dt_xcook_ident()
2838 attr = dt_ident_cook(dnp, idp, NULL); in dt_xcook_ident()
2842 attr = idp->di_attr; in dt_xcook_ident()
2848 dnp->dn_ident = idp; in dt_xcook_ident()
2885 dt_ident_t *idp = dnp->dn_ident; in dt_cook_var() local
2887 if ((idflags & DT_IDFLG_REF) && dt_ident_unref(idp)) { in dt_cook_var()
2890 (idp->di_flags & DT_IDFLG_LOCAL) ? "this->" : in dt_cook_var()
2891 (idp->di_flags & DT_IDFLG_TLS) ? "self->" : "", in dt_cook_var()
2892 idp->di_name); in dt_cook_var()
2895 dt_node_attr_assign(dnp, dt_ident_cook(dnp, idp, &dnp->dn_args)); in dt_cook_var()
2917 dt_ident_t *idp; in dt_cook_op1() local
2957 if ((idp = dt_node_resolve(cp, DT_IDENT_XLPTR)) != NULL) { in dt_cook_op1()
2958 dt_xlator_t *dxp = idp->di_data; in dt_cook_op1()
3178 dt_ident_t *idp; in dt_cook_op2() local
3197 idp = dt_idhash_lookup(dhp, lp->dn_string + 1); in dt_cook_op2()
3201 idp = dt_idstack_lookup( in dt_cook_op2()
3206 if (idp == NULL || dt_ident_unref(idp)) in dt_cook_op2()
3209 dt_xcook_ident(lp, dhp, idp->di_kind, B_FALSE); in dt_cook_op2()
3327 if ((idp = dt_idstack_lookup(&yypcb->pcb_globals, in dt_cook_op2()
3334 dt_idkind_name(idp->di_kind)); in dt_cook_op2()
3550 if ((idp = dt_node_resolve(rp, DT_IDENT_XLSOU)) != NULL) { in dt_cook_op2()
3551 ctfp = idp->di_ctfp; in dt_cook_op2()
3552 type = idp->di_type; in dt_cook_op2()
3553 uref = idp->di_flags & DT_IDFLG_USER; in dt_cook_op2()
3596 if (idp != NULL && idp->di_kind == DT_IDENT_XLSOU && in dt_cook_op2()
3691 if ((idp = dt_node_resolve(lp, DT_IDENT_XLSOU)) != NULL || in dt_cook_op2()
3692 (idp = dt_node_resolve(lp, DT_IDENT_XLPTR)) != NULL) { in dt_cook_op2()
3697 dt_xlator_t *dxp = idp->di_data; in dt_cook_op2()
3705 ctfp = idp->di_ctfp; in dt_cook_op2()
3706 type = ctf_type_resolve(ctfp, idp->di_type); in dt_cook_op2()
3707 uref = idp->di_flags & DT_IDFLG_USER; in dt_cook_op2()
3820 idp = lp->dn_ident; in dt_cook_op2()
3827 if (idp->di_kind == DT_IDENT_SCALAR && dt_ident_unref(idp) && in dt_cook_op2()
3828 (idp->di_flags & (DT_IDFLG_LOCAL | DT_IDFLG_TLS)) != 0) { in dt_cook_op2()
3830 if (idp->di_flags & DT_IDFLG_LOCAL) { in dt_cook_op2()
3833 "associative arrays: %s\n", idp->di_name); in dt_cook_op2()
3837 "array\n", idp->di_name, idp->di_id); in dt_cook_op2()
3839 dt_ident_morph(idp, DT_IDENT_ARRAY, in dt_cook_op2()
3843 if (idp->di_kind != DT_IDENT_ARRAY) { in dt_cook_op2()
3845 "as %s\n", dt_idkind_name(idp->di_kind), in dt_cook_op2()
3846 idp->di_name, dt_idkind_name(DT_IDENT_ARRAY)); in dt_cook_op2()