/illumos-gate/usr/src/lib/abi/apptrace/common/ |
H A D | apptraceutil.c | 45 type_name(ctf_file_t *ctfp, ctf_id_t type, char *buf, size_t len) in type_name() argument 47 if (ctf_type_name(ctfp, type, buf, len) == NULL) in type_name() 54 print_value(ctf_file_t *ctfp, ctf_id_t type, ulong_t value) in print_value() argument 56 ctf_id_t rtype = ctf_type_resolve(ctfp, type); in print_value() 61 if (ctf_type_kind(ctfp, rtype) == CTF_K_POINTER) { in print_value() 62 type = ctf_type_reference(ctfp, rtype); in print_value() 63 rtype = ctf_type_resolve(ctfp, type); in print_value() 65 if (ctf_type_encoding(ctfp, rtype, &e) == 0 && in print_value() 77 if (ctf_type_kind(ctfp, rtype) == CTF_K_STRUCT) { in print_value() 83 pa.pa_ctfp = ctfp; in print_value() [all …]
|
H A D | apptrace.c | 583 ctf_file_t *ctfp; in la_sparcv9_pltenter() local 598 if ((ctfp = Pname_to_ctf(proc_hdl, defname)) == NULL) in la_sparcv9_pltenter() 605 if (ctf_func_info(ctfp, si.prs_id, &finfo) == CTF_ERR) in la_sparcv9_pltenter() 608 (void) type_name(ctfp, finfo.ctc_return, buf, sizeof (buf)); in la_sparcv9_pltenter() 617 rtype = ctf_type_resolve(ctfp, finfo.ctc_return); in la_sparcv9_pltenter() 618 type = ctf_type_reference(ctfp, rtype); in la_sparcv9_pltenter() 619 rtype = ctf_type_resolve(ctfp, type); in la_sparcv9_pltenter() 620 kind = ctf_type_kind(ctfp, rtype); in la_sparcv9_pltenter() 626 (void) ctf_func_args(ctfp, si.prs_id, argc, argt); in la_sparcv9_pltenter() 645 (void) type_name(ctfp, argt[i], buf, sizeof (buf)); in la_sparcv9_pltenter() [all …]
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_print.c | 115 dt_print_type_name(ctf_file_t *ctfp, ctf_id_t id, char *buf, size_t buflen) in dt_print_type_name() argument 117 if (ctf_type_name(ctfp, id, buf, buflen) == NULL) in dt_print_type_name() 255 ctf_file_t *ctfp = pap->pa_ctfp; in dt_print_int() local 260 if (ctf_type_encoding(ctfp, base, &e) == CTF_ERR) { in dt_print_int() 305 ctf_file_t *ctfp = pap->pa_ctfp; in dt_print_float() local 309 if (ctf_type_encoding(ctfp, base, &e) == 0) { in dt_print_float() 336 ctf_file_t *ctfp = pap->pa_ctfp; in dt_print_ptr() local 338 size_t size = ctf_type_size(ctfp, base); in dt_print_ptr() 339 ctf_id_t bid = ctf_type_reference(ctfp, base); in dt_print_ptr() 344 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 | 148 dt_cg_load(dt_node_t *dnp, ctf_file_t *ctfp, ctf_id_t type) in dt_cg_load() argument 170 ctf_type_encoding(ctfp, type, &e) != CTF_ERR) { in dt_cg_load() 174 size = ctf_type_size(ctfp, type); in dt_cg_load() 196 ctf_file_t *ctfp = dnp->dn_ctfp; in dt_cg_ptrsize() local 204 type = ctf_type_resolve(ctfp, dnp->dn_type); in dt_cg_ptrsize() 205 kind = ctf_type_kind(ctfp, type); in dt_cg_ptrsize() 209 if (ctf_array_info(ctfp, type, &r) != 0) { in dt_cg_ptrsize() 210 yypcb->pcb_hdl->dt_ctferr = ctf_errno(ctfp); in dt_cg_ptrsize() 215 type = ctf_type_reference(ctfp, type); in dt_cg_ptrsize() 217 if ((size = ctf_type_size(ctfp, type)) == 1) in dt_cg_ptrsize() [all …]
|
H A D | dt_parser.c | 267 ctf_file_t *ctfp = tip->dtt_ctfp; in dt_type_pointer() local 269 ctf_id_t base = ctf_type_resolve(ctfp, type); in dt_type_pointer() 275 if ((ptr = ctf_type_pointer(ctfp, type)) != CTF_ERR || in dt_type_pointer() 276 (ptr = ctf_type_pointer(ctfp, base)) != CTF_ERR) { in dt_type_pointer() 286 if (ctfp != dmp->dm_ctfp && ctfp != ctf_parent_file(dmp->dm_ctfp) && in dt_type_pointer() 287 (type = ctf_add_type(dmp->dm_ctfp, ctfp, type)) == CTF_ERR) { in dt_type_pointer() 308 dt_type_name(ctf_file_t *ctfp, ctf_id_t type, char *buf, size_t len) in dt_type_name() argument 312 if (ctfp == DT_FPTR_CTFP(dtp) && type == DT_FPTR_TYPE(dtp)) in dt_type_name() 314 else if (ctfp == DT_FUNC_CTFP(dtp) && type == DT_FUNC_TYPE(dtp)) in dt_type_name() 316 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 | 494 dt_module_lookup_by_ctf(dtrace_hdl_t *dtp, ctf_file_t *ctfp) in dt_module_lookup_by_ctf() argument 496 return (ctfp ? ctf_getspecific(ctfp) : NULL); in dt_module_lookup_by_ctf()
|
/illumos-gate/usr/src/cmd/mail/ |
H A D | isheader.c | 38 isheader(char *lp, int *ctfp) in isheader() argument 52 if ((*ctfp) && ((*lp == ' ') || (*lp == '\t'))) { in isheader() 56 *ctfp = FALSE; in isheader() 73 *ctfp = TRUE; in isheader() 85 *ctfp = TRUE; in isheader()
|
H A D | mail.h | 310 extern int isheader(char *lp, int *ctfp);
|
/illumos-gate/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()
|
/illumos-gate/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_module.c | 185 ctf_file_t *ctfp = kmc->kmc_mod->mod_ctfp; in kmdb_module_addr_to_ctf() local 187 if (ctfp == NULL) { in kmdb_module_addr_to_ctf() 192 return (ctfp); in kmdb_module_addr_to_ctf() 204 ctf_file_t *ctfp; in kmdb_module_name_to_ctf() local 211 if ((ctfp = kmc->kmc_mod->mod_ctfp) == NULL) { in kmdb_module_name_to_ctf() 216 return (ctfp); in kmdb_module_name_to_ctf()
|
H A D | kmdb_ctf_open.c | 73 ctf_file_t *ctfp; in mdb_ctf_open() local 88 if ((ctfp = mdb_ctf_bufopen(mp->ctfdata, mp->ctfsize, mp->symtbl, in mdb_ctf_open() 95 return (ctfp); in mdb_ctf_open()
|
/illumos-gate/usr/src/lib/libproc/amd64/ |
H A D | Pisadep.c | 166 ctf_file_t *ctfp; in argcount_ctf() local 173 if ((ctfp = Paddr_to_ctf(P, pc)) == NULL) in argcount_ctf() 176 if (ctf_func_info(ctfp, si.prs_id, &finfo) == CTF_ERR) in argcount_ctf() 388 ctf_file_t *ctfp = NULL; in read_args() local 403 if ((ctfp = Paddr_to_ctf(P, pc)) == NULL) in read_args() 406 if (ctf_func_info(ctfp, si.prs_id, &finfo) == CTF_ERR) in read_args() 414 rettype = ctf_type_kind(ctfp, finfo.ctc_return); in read_args() 422 ctf_type_size(ctfp, finfo.ctc_return) > 16) in read_args() 432 if (ctf_func_args(ctfp, si.prs_id, 5, args_types) == CTF_ERR) in read_args() 436 int t = ctf_type_kind(ctfp, args_types[i]); in read_args() [all …]
|
/illumos-gate/usr/src/lib/libctf/common/ |
H A D | ctf_lib.c | 417 ctf_fdcreate_int(int fd, int *errp, ctf_sect_t *ctfp) in ctf_fdcreate_int() argument 449 if (ctfp != NULL) in ctf_fdcreate_int() 602 ctfp == NULL) { in ctf_fdcreate_int() 629 if (ctfp == NULL) { in ctf_fdcreate_int() 630 if (ctfsect.cts_type == SHT_NULL && ctfp == NULL) { in ctf_fdcreate_int() 644 ctfp = &ctfsect; in ctf_fdcreate_int() 654 fp = ctf_bufopen(ctfp, &symsect, &strsect, errp); in ctf_fdcreate_int() 656 fp = ctf_bufopen(ctfp, NULL, NULL, errp); in ctf_fdcreate_int() 659 if (ctfp == NULL) in ctf_fdcreate_int()
|
/illumos-gate/usr/src/lib/libproc/i386/ |
H A D | Pisadep.c | 126 ctf_file_t *ctfp; in argcount_ctf() local 133 if ((ctfp = Paddr_to_ctf(P, pc)) == NULL) in argcount_ctf() 136 if (ctf_func_info(ctfp, si.prs_id, &finfo) == CTF_ERR) in argcount_ctf()
|
/illumos-gate/usr/src/cmd/mdb/common/libstandctf/ |
H A D | ctf_subr.c | 68 ctf_fdcreate_int(int fd, int *errp, ctf_sect_t *ctfp) in ctf_fdcreate_int() argument
|
/illumos-gate/usr/src/uts/common/ctf/ |
H A D | ctf_mod.c | 118 ctf_fdcreate_int(int fd, int *errp, ctf_sect_t *ctfp) in ctf_fdcreate_int() argument
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_cmds.c | 1609 ctf_file_t *ctfp; in objects_printversion() local 1612 ctfp = mdb_tgt_name_to_ctf(mdb.m_target, name); in objects_printversion() 1613 if (ctfp == NULL || (version = ctf_label_topmost(ctfp)) == NULL) in objects_printversion() 1652 ctf_file_t *ctfp; in showrev_addversion() local 1659 if ((ctfp = mdb_tgt_name_to_ctf(mdb.m_target, objname)) != NULL) in showrev_addversion() 1660 version = ctf_label_topmost(ctfp); in showrev_addversion()
|