Lines Matching defs:idp

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