/titanic_41/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) in type_name() argument 49 if (ctf_type_name(ctfp, type, buf, len) == NULL) in type_name() 56 print_value(ctf_file_t *ctfp, ctf_id_t type, ulong_t value) in print_value() argument 58 ctf_id_t rtype = ctf_type_resolve(ctfp, type); in print_value() 63 if (ctf_type_kind(ctfp, rtype) == CTF_K_POINTER) { in print_value() 64 type = ctf_type_reference(ctfp, rtype); in print_value() 65 rtype = ctf_type_resolve(ctfp, type); in print_value() 67 if (ctf_type_encoding(ctfp, rtype, &e) == 0 && in print_value() 79 if (ctf_type_kind(ctfp, rtype) == CTF_K_STRUCT) { in print_value() 85 pa.pa_ctfp = ctfp; in print_value() [all …]
|
H A D | apptrace.c | 585 ctf_file_t *ctfp; in la_sparcv9_pltenter() local 600 if ((ctfp = Pname_to_ctf(proc_hdl, defname)) == NULL) in la_sparcv9_pltenter() 607 if (ctf_func_info(ctfp, si.prs_id, &finfo) == CTF_ERR) in la_sparcv9_pltenter() 610 (void) type_name(ctfp, finfo.ctc_return, buf, sizeof (buf)); in la_sparcv9_pltenter() 619 rtype = ctf_type_resolve(ctfp, finfo.ctc_return); in la_sparcv9_pltenter() 620 type = ctf_type_reference(ctfp, rtype); in la_sparcv9_pltenter() 621 rtype = ctf_type_resolve(ctfp, type); in la_sparcv9_pltenter() 622 kind = ctf_type_kind(ctfp, rtype); in la_sparcv9_pltenter() 628 (void) ctf_func_args(ctfp, si.prs_id, argc, argt); in la_sparcv9_pltenter() 647 (void) type_name(ctfp, argt[i], buf, sizeof (buf)); in la_sparcv9_pltenter() [all …]
|
/titanic_41/usr/src/lib/libdtrace/common/ |
H A D | dt_print.c | 114 dt_print_type_name(ctf_file_t *ctfp, ctf_id_t id, char *buf, size_t buflen) in dt_print_type_name() argument 116 if (ctf_type_name(ctfp, id, buf, buflen) == NULL) in dt_print_type_name() 232 ctf_file_t *ctfp = pap->pa_ctfp; in dt_print_int() local 237 if (ctf_type_encoding(ctfp, base, &e) == CTF_ERR) { in dt_print_int() 286 ctf_file_t *ctfp = pap->pa_ctfp; in dt_print_float() local 290 if (ctf_type_encoding(ctfp, base, &e) == 0) { in dt_print_float() 317 ctf_file_t *ctfp = pap->pa_ctfp; in dt_print_ptr() local 319 size_t size = ctf_type_size(ctfp, base); in dt_print_ptr() 320 ctf_id_t bid = ctf_type_reference(ctfp, base); in dt_print_ptr() 325 if (bid == CTF_ERR || ctf_type_kind(ctfp, bid) != CTF_K_FUNCTION) { in dt_print_ptr() [all …]
|
H A D | dt_decl.c | 481 ctf_file_t *ctfp; in dt_decl_sou() local 486 ctfp = yypcb->pcb_hdl->dt_cdefs->dm_ctfp; in dt_decl_sou() 488 ctfp = yypcb->pcb_hdl->dt_ddefs->dm_ctfp; in dt_decl_sou() 499 if (name != NULL && (type = ctf_lookup_by_name(ctfp, n)) != CTF_ERR && in dt_decl_sou() 500 ctf_type_kind(ctfp, type) != CTF_K_FORWARD) in dt_decl_sou() 504 type = ctf_add_struct(ctfp, flag, name); in dt_decl_sou() 506 type = ctf_add_union(ctfp, flag, name); in dt_decl_sou() 508 if (type == CTF_ERR || ctf_update(ctfp) == CTF_ERR) { in dt_decl_sou() 510 n, ctf_errmsg(ctf_errno(ctfp))); in dt_decl_sou() 513 ddp->dd_ctfp = ctfp; in dt_decl_sou() [all …]
|
H A D | dt_printf.c | 96 ctf_file_t *ctfp; in pfcheck_str() local 105 ctfp = dnp->dn_ctfp; in pfcheck_str() 106 base = ctf_type_resolve(ctfp, dnp->dn_type); in pfcheck_str() 107 kind = ctf_type_kind(ctfp, base); in pfcheck_str() 109 return (kind == CTF_K_ARRAY && ctf_array_info(ctfp, base, &r) == 0 && in pfcheck_str() 110 (base = ctf_type_resolve(ctfp, r.ctr_contents)) != CTF_ERR && in pfcheck_str() 111 ctf_type_encoding(ctfp, base, &e) == 0 && IS_CHAR(e)); in pfcheck_str() 118 ctf_file_t *ctfp = dnp->dn_ctfp; in pfcheck_wstr() local 119 ctf_id_t base = ctf_type_resolve(ctfp, dnp->dn_type); in pfcheck_wstr() 120 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 | 266 ctf_file_t *ctfp = tip->dtt_ctfp; in dt_type_pointer() local 268 ctf_id_t base = ctf_type_resolve(ctfp, type); in dt_type_pointer() 274 if ((ptr = ctf_type_pointer(ctfp, type)) != CTF_ERR || in dt_type_pointer() 275 (ptr = ctf_type_pointer(ctfp, base)) != CTF_ERR) { in dt_type_pointer() 285 if (ctfp != dmp->dm_ctfp && ctfp != ctf_parent_file(dmp->dm_ctfp) && in dt_type_pointer() 286 (type = ctf_add_type(dmp->dm_ctfp, ctfp, type)) == CTF_ERR) { in dt_type_pointer() 307 dt_type_name(ctf_file_t *ctfp, ctf_id_t type, char *buf, size_t len) in dt_type_name() argument 311 if (ctfp == DT_FPTR_CTFP(dtp) && type == DT_FPTR_TYPE(dtp)) in dt_type_name() 313 else if (ctfp == DT_FUNC_CTFP(dtp) && type == DT_FUNC_TYPE(dtp)) in dt_type_name() 315 else if (ctfp == DT_DYN_CTFP(dtp) && type == DT_DYN_TYPE(dtp)) in dt_type_name() [all …]
|
H A D | dt_xlator.c | 361 dt_xlator_ident(dt_xlator_t *dxp, ctf_file_t *ctfp, ctf_id_t type) in dt_xlator_ident() argument 363 if (ctf_type_kind(ctfp, ctf_type_resolve(ctfp, type)) == CTF_K_POINTER) in dt_xlator_ident()
|
H A D | dt_module.c | 495 dt_module_lookup_by_ctf(dtrace_hdl_t *dtp, ctf_file_t *ctfp) in dt_module_lookup_by_ctf() argument 497 return (ctfp ? ctf_getspecific(ctfp) : NULL); in dt_module_lookup_by_ctf()
|
/titanic_41/usr/src/cmd/mail/ |
H A D | isheader.c | 39 isheader(lp, ctfp) in isheader() argument 41 int *ctfp; 55 if ((*ctfp) && ((*lp == ' ') || (*lp == '\t'))) { 59 *ctfp = FALSE; 76 *ctfp = TRUE; 88 *ctfp = TRUE;
|
H A D | mail.h | 310 extern int isheader(char *lp, int *ctfp);
|
/titanic_41/usr/src/lib/libsaveargs/tests/dump/ |
H A D | dump.c | 116 check_sym(ctf_file_t *ctfp, symtab_sym_t *ss) in check_sym() argument 118 int rettype = ctf_type_kind(ctfp, ss->ss_finfo.ctc_return); in check_sym() 125 ctf_type_size(ctfp, ss->ss_finfo.ctc_return) > 16) in check_sym() 138 ctf_file_t *ctfp; in main() local 150 if ((ctfp = ctf_open(argv[1], &errp)) == NULL) in main() 161 walk_symtab(elf, argv[1], ctfp, check_sym); in main()
|
/titanic_41/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_module.c | 187 ctf_file_t *ctfp = kmc->kmc_mod->mod_ctfp; in kmdb_module_addr_to_ctf() local 189 if (ctfp == NULL) { in kmdb_module_addr_to_ctf() 194 return (ctfp); in kmdb_module_addr_to_ctf() 206 ctf_file_t *ctfp; in kmdb_module_name_to_ctf() local 213 if ((ctfp = kmc->kmc_mod->mod_ctfp) == NULL) { in kmdb_module_name_to_ctf() 218 return (ctfp); in kmdb_module_name_to_ctf()
|
H A D | kmdb_ctf_open.c | 74 ctf_file_t *ctfp; in mdb_ctf_open() local 89 if ((ctfp = mdb_ctf_bufopen(mp->ctfdata, mp->ctfsize, mp->symtbl, in mdb_ctf_open() 96 return (ctfp); in mdb_ctf_open()
|
/titanic_41/usr/src/lib/libproc/amd64/ |
H A D | Pisadep.c | 359 ctf_file_t *ctfp = NULL; in read_args() local 374 if ((ctfp = Paddr_to_ctf(P, pc)) == NULL) in read_args() 377 if (ctf_func_info(ctfp, si.prs_id, &finfo) == CTF_ERR) in read_args() 385 rettype = ctf_type_kind(ctfp, finfo.ctc_return); in read_args() 393 ctf_type_size(ctfp, finfo.ctc_return) > 16) in read_args() 403 if (ctf_func_args(ctfp, si.prs_id, 5, args_types) == CTF_ERR) in read_args() 407 int t = ctf_type_kind(ctfp, args_types[i]); in read_args() 410 ctf_type_size(ctfp, args_types[i]) <= 16) in read_args()
|
/titanic_41/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_cmds.c | 1508 ctf_file_t *ctfp; in objects_printversion() local 1511 ctfp = mdb_tgt_name_to_ctf(mdb.m_target, name); in objects_printversion() 1512 if (ctfp == NULL || (version = ctf_label_topmost(ctfp)) == NULL) in objects_printversion() 1551 ctf_file_t *ctfp; in showrev_addversion() local 1558 if ((ctfp = mdb_tgt_name_to_ctf(mdb.m_target, objname)) != NULL) in showrev_addversion() 1559 version = ctf_label_topmost(ctfp); in showrev_addversion()
|