/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_print.c | 117 dt_print_type_name(ctf_file_t *ctfp, ctf_id_t id, char *buf, size_t buflen) in dt_print_type_name() argument 119 if (ctf_type_name(ctfp, id, buf, buflen) == NULL) in dt_print_type_name() 239 ctf_file_t *ctfp = pap->pa_ctfp; in dt_print_int() local 245 if (ctf_type_encoding(ctfp, base, &e) == CTF_ERR) { in dt_print_int() 301 ctf_file_t *ctfp = pap->pa_ctfp; in dt_print_float() local 306 if (ctf_type_encoding(ctfp, base, &e) == 0) { in dt_print_float() 330 ctf_file_t *ctfp = pap->pa_ctfp; in dt_print_ptr() local 332 size_t size = ctf_type_size(ctfp, base); in dt_print_ptr() 333 ctf_id_t bid = ctf_type_reference(ctfp, base); in dt_print_ptr() 338 if (bid == CTF_ERR || ctf_type_kind(ctfp, bid) != CTF_K_FUNCTION) { in dt_print_ptr() [all …]
|
H A D | dt_decl.c | 464 ctf_file_t *ctfp; in dt_decl_sou() local 469 ctfp = yypcb->pcb_hdl->dt_cdefs->dm_ctfp; in dt_decl_sou() 471 ctfp = yypcb->pcb_hdl->dt_ddefs->dm_ctfp; in dt_decl_sou() 482 if (name != NULL && (type = ctf_lookup_by_name(ctfp, n)) != CTF_ERR && in dt_decl_sou() 483 ctf_type_kind(ctfp, type) != CTF_K_FORWARD) in dt_decl_sou() 487 type = ctf_add_struct(ctfp, flag, name); in dt_decl_sou() 489 type = ctf_add_union(ctfp, flag, name); in dt_decl_sou() 491 if (type == CTF_ERR || ctf_update(ctfp) == CTF_ERR) { in dt_decl_sou() 493 n, ctf_errmsg(ctf_errno(ctfp))); in dt_decl_sou() 496 ddp->dd_ctfp = ctfp; in dt_decl_sou() [all …]
|
H A D | dt_printf.c | 110 ctf_file_t *ctfp; in pfcheck_str() local 119 ctfp = dnp->dn_ctfp; in pfcheck_str() 120 base = ctf_type_resolve(ctfp, dnp->dn_type); in pfcheck_str() 121 kind = ctf_type_kind(ctfp, base); in pfcheck_str() 123 return (kind == CTF_K_ARRAY && ctf_array_info(ctfp, base, &r) == 0 && in pfcheck_str() 124 (base = ctf_type_resolve(ctfp, r.ctr_contents)) != CTF_ERR && in pfcheck_str() 125 ctf_type_encoding(ctfp, base, &e) == 0 && IS_CHAR(e)); in pfcheck_str() 132 ctf_file_t *ctfp = dnp->dn_ctfp; in pfcheck_wstr() local 133 ctf_id_t base = ctf_type_resolve(ctfp, dnp->dn_type); in pfcheck_wstr() 134 uint_t kind = ctf_type_kind(ctfp, base); in pfcheck_wstr() [all …]
|
H A D | dt_cg.c | 145 dt_cg_load(dt_node_t *dnp, ctf_file_t *ctfp, ctf_id_t type) in dt_cg_load() argument 167 ctf_type_encoding(ctfp, type, &e) != CTF_ERR) in dt_cg_load() 170 size = ctf_type_size(ctfp, type); in dt_cg_load() 191 ctf_file_t *ctfp = dnp->dn_ctfp; in dt_cg_ptrsize() local 199 type = ctf_type_resolve(ctfp, dnp->dn_type); in dt_cg_ptrsize() 200 kind = ctf_type_kind(ctfp, type); in dt_cg_ptrsize() 204 if (ctf_array_info(ctfp, type, &r) != 0) { in dt_cg_ptrsize() 205 yypcb->pcb_hdl->dt_ctferr = ctf_errno(ctfp); in dt_cg_ptrsize() 210 type = ctf_type_reference(ctfp, type); in dt_cg_ptrsize() 212 if ((size = ctf_type_size(ctfp, type)) == 1) in dt_cg_ptrsize() [all …]
|
H A D | dt_parser.c | 271 ctf_file_t *ctfp = tip->dtt_ctfp; in dt_type_pointer() local 273 ctf_id_t base = ctf_type_resolve(ctfp, type); in dt_type_pointer() 279 if ((ptr = ctf_type_pointer(ctfp, type)) != CTF_ERR || in dt_type_pointer() 280 (ptr = ctf_type_pointer(ctfp, base)) != CTF_ERR) { in dt_type_pointer() 290 if (ctfp != dmp->dm_ctfp && ctfp != ctf_parent_file(dmp->dm_ctfp) && in dt_type_pointer() 291 (type = ctf_add_type(dmp->dm_ctfp, ctfp, type)) == CTF_ERR) { in dt_type_pointer() 312 dt_type_name(ctf_file_t *ctfp, ctf_id_t type, char *buf, size_t len) in dt_type_name() argument 316 if (ctfp == DT_FPTR_CTFP(dtp) && type == DT_FPTR_TYPE(dtp)) in dt_type_name() 318 else if (ctfp == DT_FUNC_CTFP(dtp) && type == DT_FUNC_TYPE(dtp)) in dt_type_name() 320 else if (ctfp == DT_DYN_CTFP(dtp) && type == DT_DYN_TYPE(dtp)) in dt_type_name() [all …]
|
H A D | dt_xlator.c | 363 dt_xlator_ident(dt_xlator_t *dxp, ctf_file_t *ctfp, ctf_id_t type) in dt_xlator_ident() argument 365 if (ctf_type_kind(ctfp, ctf_type_resolve(ctfp, type)) == CTF_K_POINTER) in dt_xlator_ident()
|
H A D | dt_module.c | 542 dt_module_lookup_by_ctf(dtrace_hdl_t *dtp, ctf_file_t *ctfp) in dt_module_lookup_by_ctf() argument 544 return (ctfp ? ctf_getspecific(ctfp) : NULL); in dt_module_lookup_by_ctf()
|