/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_create.c | 1007 if ((type = ctf_add_generic(fp, flag, name, &dtd)) == CTF_ERR) in ctf_add_encoded() 1008 return (CTF_ERR); /* errno is set for us */ in ctf_add_encoded() 1031 if (ref == CTF_ERR || ref < 0 || ref > CTF_MAX_TYPE) in ctf_add_reftype() 1034 if ((type = ctf_add_generic(fp, flag, name, &dtd)) == CTF_ERR) in ctf_add_reftype() 1035 return (CTF_ERR); /* errno is set for us */ in ctf_add_reftype() 1090 if ((type = ctf_add_generic(fp, flag, NULL, &dtd)) == CTF_ERR) in ctf_add_array() 1091 return (CTF_ERR); /* errno is set for us */ in ctf_add_array() 1171 if ((type = ctf_add_generic(fp, flag, NULL, &dtd)) == CTF_ERR) { in ctf_add_funcptr() 1173 return (CTF_ERR); /* errno is set for us */ in ctf_add_funcptr() 1197 ctf_id_t type = CTF_ERR; in ctf_add_struct() [all …]
|
H A D | ctf_types.c | 84 if ((type = ctf_type_resolve(fp, type)) == CTF_ERR) in ctf_member_iter() 85 return (CTF_ERR); /* errno is set for us */ in ctf_member_iter() 88 return (CTF_ERR); /* errno is set for us */ in ctf_member_iter() 136 if ((type = ctf_type_resolve(fp, type)) == CTF_ERR) in ctf_enum_iter() 137 return (CTF_ERR); /* errno is set for us */ in ctf_enum_iter() 140 return (CTF_ERR); /* errno is set for us */ in ctf_enum_iter() 213 return (CTF_ERR); /* errno is set for us */ in ctf_type_resolve() 308 if (fp == NULL && type == CTF_ERR) in ctf_type_qlname() 497 if ((type = ctf_type_resolve(fp, type)) == CTF_ERR) in ctf_type_size() 527 if (ctf_array_info(fp, type, &ar) == CTF_ERR || in ctf_type_size() [all …]
|
H A D | ctf_labels.c | 59 if (extract_label_info(fp, &ctlp, &num_labels) == CTF_ERR) in ctf_label_topmost() 86 if (extract_label_info(fp, &ctlp, &num_labels) == CTF_ERR) in ctf_label_iter() 87 return (CTF_ERR); /* errno is set */ in ctf_label_iter() 144 if ((rc = ctf_label_iter(fp, label_info_cb, &cb_arg)) == CTF_ERR) in ctf_label_info()
|
H A D | ctf_lookup.c | 117 if (ntype == CTF_ERR || (ntype = fp->ctf_ptrtab[ in ctf_lookup_by_name() 171 (ptype = ctf_lookup_by_name(fp->ctf_parent, name)) != CTF_ERR) in ctf_lookup_by_name() 174 return (CTF_ERR); in ctf_lookup_by_name() 303 if (ctf_func_info(fp, symidx, &f) == CTF_ERR) in ctf_func_args() 304 return (CTF_ERR); /* errno is set for us */ in ctf_func_args()
|
/illumos-gate/usr/src/lib/libctf/common/ |
H A D | ctf_diff.c | 113 return (CTF_ERR); in ctf_diff_name() 140 return (CTF_ERR); in ctf_diff_number() 164 ctf_id_t iref = CTF_ERR, oref = CTF_ERR; in ctf_diff_typedef() 168 if (iref == CTF_ERR) in ctf_diff_typedef() 169 return (CTF_ERR); in ctf_diff_typedef() 175 if (oref == CTF_ERR) in ctf_diff_typedef() 176 return (CTF_ERR); in ctf_diff_typedef() 180 VERIFY(iref != CTF_ERR && oref != CTF_ERR); in ctf_diff_typedef() 194 if (iref == CTF_ERR) in ctf_diff_qualifier() 195 return (CTF_ERR); in ctf_diff_qualifier() [all …]
|
H A D | ctf_merge.c | 187 return (CTF_ERR); in ctf_merge_add_number() 199 if (ret == CTF_ERR) in ctf_merge_add_number() 214 if (ctf_array_info(cmp->cm_src, id, &ar) == CTF_ERR) in ctf_merge_add_array() 215 return (CTF_ERR); in ctf_merge_add_array() 240 if (ret == CTF_ERR) in ctf_merge_add_array() 265 if (reftype == CTF_ERR) in ctf_merge_add_reftype() 278 if (ret == CTF_ERR) in ctf_merge_add_reftype() 302 if (reftype == CTF_ERR) in ctf_merge_add_typedef() 314 if (ret == CTF_ERR) in ctf_merge_add_typedef() 333 CTF_ERR); in ctf_merge_add_enumerator() [all …]
|
H A D | ctf_dwarf.c | 359 if (cup->cu_voidtid == CTF_ERR) { in ctf_dwarf_void() 363 if (cup->cu_voidtid == CTF_ERR) { in ctf_dwarf_void() 381 if (cup->cu_longtid == CTF_ERR) { in ctf_dwarf_long() 390 if (cup->cu_longtid == CTF_ERR) { in ctf_dwarf_long() 1177 if (id == CTF_ERR) { in ctf_dwarf_create_base() 1244 if ((tsz = ctf_type_size(cup->cu_ctfp, mid)) == CTF_ERR) { in ctf_dwarf_member_offset() 1365 if (cdb->cdb_id == CTF_ERR) { in ctf_dwarf_member_bitfield() 1390 VERIFY(kind != CTF_ERR); in ctf_dwarf_fixup_sou() 1452 if (ret == CTF_ERR) { in ctf_dwarf_fixup_sou() 1480 if ((ctf_set_size(cup->cu_ctfp, base, size)) == CTF_ERR) { in ctf_dwarf_fixup_sou() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_ctf.c | 220 (id = ctf_lookup_by_name(fp, tnp->tn_name)) != CTF_ERR) { in obj_lookup() 246 ctf_id_t id = CTF_ERR; in name_to_type() 276 (id = ctf_lookup_by_name(fp, name)) == CTF_ERR || in name_to_type() 283 arg.tn_id = CTF_ERR; in name_to_type() 287 if (arg.tn_id != CTF_ERR) { in name_to_type() 292 name)) != CTF_ERR) in name_to_type() 300 if (id == CTF_ERR) { in name_to_type() 362 if ((mcip->mci_id = ctf_lookup_by_symbol(fp, sip->sym_id)) == CTF_ERR) { in mdb_ctf_lookup_by_symbol() 424 if ((id = ctf_lookup_by_name(fp, name)) == CTF_ERR) in mdb_ctf_module_lookup() 467 if (ctf_func_info(fp, si.sym_id, &f) == CTF_ERR) in mdb_ctf_func_info() [all …]
|
H A D | mdb_ctf_open.c | 64 if (ctf_write(fp, fd) == CTF_ERR) { in mdb_ctf_write() 66 return (CTF_ERR); in mdb_ctf_write()
|
H A D | mdb_typedef.c | 359 if (mdb_ctf_lookup_by_name(basename, &id) != CTF_ERR) { in typedef_parse() 459 if (mdb_ctf_lookup_by_name(pr->pr_tname, &id) != CTF_ERR) { in typedef_validate() 496 if (mdb_ctf_lookup_by_name(pn->pn_type, &tid) == CTF_ERR) { in typedef_add() 535 CTF_ERR) { in typedef_add()
|
/illumos-gate/usr/src/tools/ctf/stabs/common/ |
H A D | ctfstabs.c | 164 if ((id = ctf_lookup_by_name(ctf, name)) != CTF_ERR) in find_type() 168 if ((id = ctf_lookup_by_name(ctf, fullname)) != CTF_ERR) in find_type() 172 if ((id = ctf_lookup_by_name(ctf, fullname)) != CTF_ERR) in find_type() 176 if ((id = ctf_lookup_by_name(ctf, fullname)) != CTF_ERR) in find_type() 179 return (CTF_ERR); in find_type() 219 if ((lid = ctf_lookup_by_name(ctf, "long")) == CTF_ERR || in get_model() 220 (lsz = ctf_type_size(ctf, lid)) == CTF_ERR) in get_model()
|
H A D | fth_struct.c | 185 if ((sz = ctf_type_size(ctf, fth_str_curtid)) == CTF_ERR) in fth_struct_header() 332 if (ctf_array_info(ctf, tid, &ar) == CTF_ERR) { in fth_print_array() 361 if ((tid = ctf_type_resolve(ctf, mem->fsm_tid)) == CTF_ERR) { in fth_print_member() 366 if ((kind = ctf_type_kind(ctf, tid)) == CTF_ERR) { in fth_print_member() 371 if ((sz = ctf_type_size(ctf, tid)) == CTF_ERR) { in fth_print_member() 378 if (ctf_type_encoding(ctf, tid, &e) == CTF_ERR) in fth_print_member()
|
H A D | forth.c | 196 if ((tid = find_type(part)) == CTF_ERR || in fth_section_init() 197 (tid = ctf_type_resolve(ctf, tid)) == CTF_ERR || in fth_section_init() 198 (kind = ctf_type_kind(ctf, tid)) == CTF_ERR) { in fth_section_init() 217 if ((kind = ctf_type_kind(ctf, tid)) == CTF_ERR) { in fth_section_init()
|
H A D | genassym.c | 165 if ((curtype = find_type(curname)) == CTF_ERR) in ga_process_name() 253 if ((type = ctf_type_resolve(ctf, type)) == CTF_ERR) in ga_member_cb()
|
/illumos-gate/usr/src/cmd/ctfdump/ |
H A D | ctfdump.c | 193 if (ctf_object_iter(g_fp, ctfdump_objects_cb, NULL) == CTF_ERR) { in ctfdump_objects() 221 if (ctf_func_args(g_fp, symidx, g_nfargc, g_fargc) == CTF_ERR) in ctfdump_functions_cb() 249 if (ctf_function_iter(g_fp, ctfdump_functions_cb, NULL) == CTF_ERR) { in ctfdump_functions() 302 if (ctf_label_iter(g_fp, ctfdump_labels_cb, NULL) == CTF_ERR) { in ctfdump_labels() 329 if (ctf_string_iter(g_fp, ctfdump_strings_cb, &stroff) == CTF_ERR) { in ctfdump_strings() 526 if ((kind = ctf_type_kind(g_fp, id)) == CTF_ERR) in ctfdump_types_cb() 548 if (ctf_type_encoding(g_fp, id, &cte) == CTF_ERR) in ctfdump_types_cb() 557 if (ctf_type_encoding(g_fp, id, &cte) == CTF_ERR) in ctfdump_types_cb() 568 if ((ref = ctf_type_reference(g_fp, id)) == CTF_ERR) in ctfdump_types_cb() 575 if (ctf_array_info(g_fp, id, &ar) == CTF_ERR) in ctfdump_types_cb() [all …]
|
/illumos-gate/usr/src/cmd/ctfconvert/ |
H A D | ctfconvert.c | 168 if (cpuid == CTF_ERR) in ctfconvert_fixup_genunix() 174 if ((sz = ctf_type_size(fp, cpuid)) == CTF_ERR) in ctfconvert_fixup_genunix() 183 CTF_ERR) in ctfconvert_fixup_genunix() 205 if (mcpu == CTF_ERR) { in ctfconvert_fixup_genunix() 208 if (mcpu == CTF_ERR) { in ctfconvert_fixup_genunix() 214 if ((kind = ctf_type_kind(fp, mcpu)) == CTF_ERR) { in ctfconvert_fixup_genunix() 225 if (ctf_update(fp) == CTF_ERR) { in ctfconvert_fixup_genunix() 230 if (ctf_add_member(fp, cpuid, "cpu_m", mcpu, sz * NBBY) == CTF_ERR) { in ctfconvert_fixup_genunix() 235 if (ctf_update(fp) == CTF_ERR) { in ctfconvert_fixup_genunix() 474 if (err == CTF_ERR) { in main()
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_decl.c | 85 ddp->dd_type = CTF_ERR; in dt_decl_alloc() 149 dsp->ds_type = CTF_ERR; in dt_decl_pop() 337 if (dnp->dn_type == CTF_ERR && !(flags & DT_DP_VARARGS)) { in dt_decl_prototype() 499 if (name != NULL && (type = ctf_lookup_by_name(ctfp, n)) != CTF_ERR && in dt_decl_sou() 508 if (type == CTF_ERR || ctf_update(ctfp) == CTF_ERR) { in dt_decl_sou() 628 ctf_type_encoding(dtt.dtt_ctfp, base, &cte) == CTF_ERR || in dt_decl_member() 646 if (dtt.dtt_type == CTF_ERR || in dt_decl_member() 647 ctf_update(dsp->ds_ctfp) == CTF_ERR) { in dt_decl_member() 670 if (dtt.dtt_type == CTF_ERR || in dt_decl_member() 671 ctf_update(dtt.dtt_ctfp) == CTF_ERR) { in dt_decl_member() [all …]
|
H A D | dt_open.c | 589 { "int", NULL, CTF_ERR, 0x7fffffffULL }, 590 { "unsigned int", NULL, CTF_ERR, 0xffffffffULL }, 591 { "long", NULL, CTF_ERR, 0x7fffffffULL }, 592 { "unsigned long", NULL, CTF_ERR, 0xffffffffULL }, 593 { "long long", NULL, CTF_ERR, 0x7fffffffffffffffULL }, 594 { "unsigned long long", NULL, CTF_ERR, 0xffffffffffffffffULL } 602 { "int", NULL, CTF_ERR, 0x7fffffffULL }, 603 { "unsigned int", NULL, CTF_ERR, 0xffffffffULL }, 604 { "long", NULL, CTF_ERR, 0x7fffffffffffffffULL }, 605 { "unsigned long", NULL, CTF_ERR, 0xffffffffffffffffULL }, [all …]
|
H A D | dt_print.c | 260 if (ctf_type_encoding(ctfp, base, &e) == CTF_ERR) { in dt_print_int() 344 if (bid == CTF_ERR || ctf_type_kind(ctfp, bid) != CTF_K_FUNCTION) { in dt_print_ptr() 398 if (ctf_array_info(ctfp, base, &car) == CTF_ERR) { in dt_print_array() 404 (rtype = ctf_type_resolve(ctfp, car.ctr_contents)) == CTF_ERR || in dt_print_array() 405 (kind = ctf_type_kind(ctfp, rtype)) == CTF_ERR) { in dt_print_array() 413 ctf_type_encoding(ctfp, rtype, &e) != CTF_ERR && CTF_IS_CHAR(e)) { in dt_print_array() 585 if ((rtype = ctf_type_resolve(ctfp, id)) == CTF_ERR || in dt_print_member() 586 (kind = ctf_type_kind(ctfp, rtype)) == CTF_ERR || in dt_print_member() 712 if (ctfp == NULL || ctf_type_kind(ctfp, id) == CTF_ERR) in dtrace_print()
|
H A D | dt_xlator.c | 128 ptr.dtt_type = CTF_ERR; in dt_xlator_create() 274 if (src_base == CTF_ERR || dst_base == CTF_ERR) in dt_xlator_lookup() 331 if (ptr && dxp != NULL && dxp->dx_ptrid.di_type == CTF_ERR) in dt_xlator_lookup()
|
/illumos-gate/usr/src/test/util-tests/tests/ctf/ |
H A D | check-common.c | 65 clc.clc_id = CTF_ERR; in ctftest_lookup_type() 91 clc.clc_id = CTF_ERR; in ctftest_lookup_symbol() 153 if (id == CTF_ERR) { in ctftest_check_numbers() 167 if (ctf_type_encoding(fp, id, &enc) == CTF_ERR) { in ctftest_check_numbers() 223 if (id == CTF_ERR) { in ctftest_check_symbol_cb() 267 if (base == CTF_ERR) { in ctftest_check_descent() 277 if (base == CTF_ERR) { in ctftest_check_descent() 288 if (tid == CTF_ERR) { in ctftest_check_descent() 319 if (ctf_array_info(fp, base, &ari) == CTF_ERR) { in ctftest_check_descent() 342 if (tid == CTF_ERR) { in ctftest_check_descent() [all …]
|
H A D | check-merge-static.c | 85 if ((tid = ctf_lookup_by_symbol(fp, symid)) == CTF_ERR) { in check_global() 118 if ((id = ctf_lookup_by_name(fp, type)) == CTF_ERR) { in check_mumble()
|
/illumos-gate/usr/src/cmd/ctfdiff/ |
H A D | ctfdiff.c | 230 if (ret == CTF_ERR) in ctfdiff_labels() 233 if (ret == CTF_ERR) in ctfdiff_labels() 501 if ((g_flag & CTF_DIFF_TYPES) && err != CTF_ERR) in main() 503 if ((g_flag & CTF_DIFF_FUNCS) && err != CTF_ERR) in main() 505 if ((g_flag & CTF_DIFF_OBJS) && err != CTF_ERR) in main() 507 if ((g_flag & CTF_DIFF_LABEL) && err != CTF_ERR) in main() 511 if (err == CTF_ERR) { in main()
|
/illumos-gate/usr/src/lib/abi/apptrace/common/ |
H A D | apptraceutil.c | 146 if (ctf_type_encoding(ctfp, base, &e) == CTF_ERR) { in print_int() 230 if ((base = ctf_type_reference(ctfp, base)) == CTF_ERR) in print_ptr() 233 if ((base = ctf_type_resolve(ctfp, base)) == CTF_ERR) in print_ptr() 310 if ((base = ctf_type_resolve(ctfp, id)) == CTF_ERR || in elt_print() 311 (kind = ctf_type_kind(ctfp, base)) == CTF_ERR) in elt_print()
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | gen_struct_layout.c | 778 if ((stype = ctf_lookup_by_name(ctf, rtname)) == CTF_ERR) in do_start_sizeof() 780 if ((stype = ctf_type_resolve(ctf, stype)) == CTF_ERR) in do_start_sizeof() 802 if ((ftype = ctf_type_resolve(ctf, ftype)) == CTF_ERR) in do_scalar_field() 827 if ((ftype = ctf_type_resolve(ctf, ftype)) == CTF_ERR) in do_array_field() 852 if ((stype = ctf_lookup_by_name(ctf, tname)) == CTF_ERR) in do_array_type() 854 if ((stype = ctf_type_resolve(ctf, stype)) == CTF_ERR) in do_array_type() 899 if ((stype = ctf_lookup_by_name(ctf, tname)) == CTF_ERR) in get_field_info() 901 if ((stype = ctf_type_resolve(ctf, stype)) == CTF_ERR) in get_field_info()
|