/osnet-11/usr/src/lib/libdtrace/common/ |
H A D | dt_xlator.c | 358 dt_xlator_ident(dt_xlator_t *dxp, ctf_file_t *ctfp, ctf_id_t type) argument 360 if (ctf_type_kind(ctfp, ctf_type_resolve(ctfp, type)) == CTF_K_POINTER)
|
H A D | dt_decl.c | 464 ctf_file_t *ctfp; local 469 ctfp = yypcb->pcb_hdl->dt_cdefs->dm_ctfp; 471 ctfp = yypcb->pcb_hdl->dt_ddefs->dm_ctfp; 482 if (name != NULL && (type = ctf_lookup_by_name(ctfp, n)) != CTF_ERR && 483 ctf_type_kind(ctfp, type) != CTF_K_FORWARD) 487 type = ctf_add_struct(ctfp, flag, name); 489 type = ctf_add_union(ctfp, flag, name); 491 if (type == CTF_ERR || ctf_update(ctfp) == CTF_ERR) { 493 n, ctf_errmsg(ctf_errno(ctfp))); 496 ddp->dd_ctfp = ctfp; 661 ctf_file_t *ctfp; local 1076 dt_scope_push(ctf_file_t *ctfp, ctf_id_t type) argument [all...] |
H A D | dt_cg.c | 142 dt_cg_load(dt_node_t *dnp, ctf_file_t *ctfp, ctf_id_t type) argument 164 ctf_type_encoding(ctfp, type, &e) != CTF_ERR) 167 size = ctf_type_size(ctfp, type); 188 ctf_file_t *ctfp = dnp->dn_ctfp; local 199 type = ctf_type_resolve(ctfp, dnp->dn_type); 200 kind = ctf_type_kind(ctfp, type); 204 if (ctf_array_info(ctfp, type, &r) != 0) { 205 yypcb->pcb_hdl->dt_ctferr = ctf_errno(ctfp); 210 type = ctf_type_reference(ctfp, type); 212 if ((size = ctf_type_size(ctfp, typ 617 ctf_file_t *ctfp = dnp->dn_ctfp; local 676 ctf_file_t *ctfp = dnp->dn_ctfp; local 1344 ctf_file_t *ctfp = dnp->dn_ctfp; local [all...] |
H A D | dt_module.c | 463 dt_module_lookup_by_ctf(dtrace_hdl_t *dtp, ctf_file_t *ctfp) argument 465 return (ctfp ? ctf_getspecific(ctfp) : NULL);
|
H A D | dt_parser.c | 248 ctf_file_t *ctfp = tip->dtt_ctfp; local 250 ctf_id_t base = ctf_type_resolve(ctfp, type); 255 if ((ptr = ctf_type_pointer(ctfp, type)) != CTF_ERR || 256 (ptr = ctf_type_pointer(ctfp, base)) != CTF_ERR) { 266 if (ctfp != dmp->dm_ctfp && ctfp != ctf_parent_file(dmp->dm_ctfp) && 267 (type = ctf_add_type(dmp->dm_ctfp, ctfp, type)) == CTF_ERR) { 287 dt_type_name(ctf_file_t *ctfp, ctf_id_t type, char *buf, size_t len) argument 291 if (ctfp == DT_FPTR_CTFP(dtp) && type == DT_FPTR_TYPE(dtp)) 293 else if (ctfp 3078 ctf_file_t *ctfp; local 3931 ctf_file_t *ctfp; local [all...] |
H A D | dt_printf.c | 94 ctf_file_t *ctfp; local 103 ctfp = dnp->dn_ctfp; 104 base = ctf_type_resolve(ctfp, dnp->dn_type); 105 kind = ctf_type_kind(ctfp, base); 107 return (kind == CTF_K_ARRAY && ctf_array_info(ctfp, base, &r) == 0 && 108 (base = ctf_type_resolve(ctfp, r.ctr_contents)) != CTF_ERR && 109 ctf_type_encoding(ctfp, base, &e) == 0 && IS_CHAR(e)); 116 ctf_file_t *ctfp = dnp->dn_ctfp; local 117 ctf_id_t base = ctf_type_resolve(ctfp, dnp->dn_type); 118 uint_t kind = ctf_type_kind(ctfp, bas 167 ctf_file_t *ctfp = dnp->dn_ctfp; local 180 ctf_file_t *ctfp = dnp->dn_ctfp; local 193 ctf_file_t *ctfp = dnp->dn_ctfp; local [all...] |
/osnet-11/usr/src/lib/abi/apptrace/common/ |
H A D | apptraceutil.c | 47 type_name(ctf_file_t *ctfp, ctf_id_t type, char *buf, size_t len) argument 49 if (ctf_type_name(ctfp, type, buf, len) == NULL) 56 print_value(ctf_file_t *ctfp, ctf_id_t type, ulong_t value) argument 58 ctf_id_t rtype = ctf_type_resolve(ctfp, type); 63 if (ctf_type_kind(ctfp, rtype) == CTF_K_POINTER) { 64 type = ctf_type_reference(ctfp, rtype); 65 rtype = ctf_type_resolve(ctfp, type); 67 if (ctf_type_encoding(ctfp, rtype, &e) == 0 && 79 if (ctf_type_kind(ctfp, rtype) == CTF_K_STRUCT) { 85 pa.pa_ctfp = ctfp; 143 ctf_file_t *ctfp = pap->pa_ctfp; local 195 ctf_file_t *ctfp = pap->pa_ctfp; local 225 ctf_file_t *ctfp = pap->pa_ctfp; local 268 ctf_file_t *ctfp = pap->pa_ctfp; local 305 ctf_file_t *ctfp = pap->pa_ctfp; local [all...] |
H A D | apptrace.c | 585 ctf_file_t *ctfp; local 600 if ((ctfp = Pname_to_ctf(proc_hdl, defname)) == NULL) 607 if (ctf_func_info(ctfp, si.prs_id, &finfo) == CTF_ERR) 610 (void) type_name(ctfp, finfo.ctc_return, buf, sizeof (buf)); 619 rtype = ctf_type_resolve(ctfp, finfo.ctc_return); 620 type = ctf_type_reference(ctfp, rtype); 621 rtype = ctf_type_resolve(ctfp, type); 622 kind = ctf_type_kind(ctfp, rtype); 628 (void) ctf_func_args(ctfp, si.prs_id, argc, argt); 647 (void) type_name(ctfp, arg 726 ctf_file_t *ctfp; local [all...] |