/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_create.c | 1193 ctf_id_t type = CTF_ERR; in ctf_add_struct() 1207 if (type == CTF_ERR) in ctf_add_struct() 1211 VERIFY(type != CTF_ERR); in ctf_add_struct() 1229 ctf_id_t type = CTF_ERR; in ctf_add_union() 1243 if (type == CTF_ERR) in ctf_add_union() 1247 VERIFY(type != CTF_ERR); in ctf_add_union() 1269 ctf_id_t type = CTF_ERR; in ctf_add_enum() 1287 if (type == CTF_ERR) in ctf_add_enum() 1291 VERIFY(type != CTF_ERR); in ctf_add_enum() 1429 dmd->dmd_type = CTF_ERR; in ctf_add_enumerator() [all …]
|
H A D | ctf_types.c | 84 return (CTF_ERR); /* errno is set for us */ in ctf_member_iter() 87 return (CTF_ERR); /* errno is set for us */ in ctf_member_iter() 136 return (CTF_ERR); /* errno is set for us */ in ctf_enum_iter() 139 return (CTF_ERR); /* errno is set for us */ in ctf_enum_iter() 212 return (CTF_ERR); /* errno is set for us */ in ctf_type_resolve() 307 if (fp == NULL && type == CTF_ERR) in ctf_type_qlname() 624 return (CTF_ERR); /* errno is set for us */ in ctf_type_kind() 640 return (CTF_ERR); /* errno is set for us */ in ctf_type_reference() 668 return (CTF_ERR); /* errno is set for us */ in ctf_type_pointer() 944 return (CTF_ERR); in ctf_enum_value() [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/cmd/mdb/common/mdb/ |
H A D | mdb_ctf.c | 243 ctf_id_t id = CTF_ERR; in name_to_type() 280 arg.tn_id = CTF_ERR; in name_to_type() 297 if (id == CTF_ERR) { in name_to_type() 693 if (ret == CTF_ERR) in mdb_ctf_type_visit() 763 if (ret == CTF_ERR) in mdb_ctf_member_iter() 1816 CTF_ERR) { in mdb_ctf_synthetics_create_base() 1905 CTF_ERR) { in mdb_ctf_add_struct() 1941 CTF_ERR) { in mdb_ctf_add_union() 1992 if (id == CTF_ERR) { in mdb_ctf_add_member() 2026 if (id == CTF_ERR) { in mdb_ctf_add_array() [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/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() 169 return (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() 195 return (CTF_ERR); in ctf_diff_qualifier() 216 return (CTF_ERR); in ctf_diff_array() 261 return (CTF_ERR); in ctf_diff_fptr() 287 ret = CTF_ERR; in ctf_diff_fptr() [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() 215 return (CTF_ERR); in ctf_merge_add_array() 240 if (ret == CTF_ERR) in ctf_merge_add_array() 278 if (ret == CTF_ERR) in ctf_merge_add_reftype() 333 CTF_ERR); in ctf_merge_add_enumerator() 363 return (CTF_ERR); in ctf_merge_add_enum() 391 CTF_ERR) { in ctf_merge_add_func() 440 return (CTF_ERR); in ctf_merge_add_forward() 616 return (CTF_ERR); in ctf_merge_fixup_sou() [all …]
|
H A D | ctf_dwarf.c | 1177 if (id == CTF_ERR) { in ctf_dwarf_create_base() 1535 if (base == CTF_ERR) in ctf_dwarf_create_sou() 1814 return (CTF_ERR); in needed_array_qualifier() 1820 return (CTF_ERR); in needed_array_qualifier() 1826 return (CTF_ERR); in needed_array_qualifier() 1902 CTF_ERR) { in ctf_dwarf_create_reference() 2102 CTF_ERR) { in ctf_dwarf_create_fptr() 2201 *idp = CTF_ERR; in ctf_dwarf_convert_type() 2389 CTF_ERR) { in ctf_dwarf_convert_function() 2910 CTF_ERR) { in ctf_dwarf_duplicate_func() [all …]
|
/illumos-gate/usr/src/cmd/ctfdump/ |
H A D | ctfdump.c | 515 if ((kind = ctf_type_kind(g_fp, id)) == CTF_ERR) in ctfdump_types_cb() 537 if (ctf_type_encoding(g_fp, id, &cte) == CTF_ERR) in ctfdump_types_cb() 564 if (ctf_array_info(g_fp, id, &ar) == CTF_ERR) in ctfdump_types_cb() 577 CTF_ERR) in ctfdump_types_cb() 596 if (size == CTF_ERR) in ctfdump_types_cb() 620 if (size != CTF_ERR && size != sizeof (int)) { in ctfdump_types_cb() 821 if (size != CTF_ERR && size != sizeof (int)) { in ctfsrc_type() 961 g_nfargc, g_fargc) == CTF_ERR) { in ctfsrc_function() 1093 idnames) == CTF_ERR) { in ctfdump_source() 1116 &count) == CTF_ERR) { in ctfdump_source() [all …]
|
/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/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() 508 if (type == CTF_ERR || ctf_update(ctfp) == CTF_ERR) { in dt_decl_sou() 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() 785 name, value) == CTF_ERR || ctf_update(dsp->ds_ctfp) == CTF_ERR) { in dt_decl_enumerator() 978 if (tip->dtt_type == CTF_ERR || in dt_decl_type() 999 if (tip->dtt_type == CTF_ERR || in dt_decl_type() 1078 if (type == CTF_ERR || ctf_update(dmp->dm_ctfp) == CTF_ERR) { in dt_decl_type() [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 }, 602 { "int", NULL, CTF_ERR, 0x7fffffffULL }, 603 { "unsigned int", NULL, CTF_ERR, 0xffffffffULL }, 1125 if (err == CTF_ERR) { in dt_vopen() 1192 dtyp->dty_src)) == CTF_ERR) { in dt_vopen() 1240 if (dtp->dt_type_func == CTF_ERR || dtp->dt_type_fptr == CTF_ERR || in dt_vopen() 1241 dtp->dt_type_str == CTF_ERR || dtp->dt_type_dyn == CTF_ERR || in dt_vopen() 1242 dtp->dt_type_stack == CTF_ERR || dtp->dt_type_symaddr == CTF_ERR || in dt_vopen() [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 | 64 clc.clc_id = CTF_ERR; in ctftest_lookup_type() 90 clc.clc_id = CTF_ERR; in ctftest_lookup_symbol() 152 if (id == CTF_ERR) { in ctftest_check_numbers() 166 if (ctf_type_encoding(fp, id, &enc) == CTF_ERR) { in ctftest_check_numbers() 222 if (id == CTF_ERR) { in ctftest_check_symbol_cb() 266 if (base == CTF_ERR) { in ctftest_check_descent() 276 if (base == CTF_ERR) { in ctftest_check_descent() 287 if (tid == CTF_ERR) { in ctftest_check_descent() 318 if (ctf_array_info(fp, base, &ari) == CTF_ERR) { in ctftest_check_descent() 341 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 | 761 if ((stype = ctf_lookup_by_name(ctf, rtname)) == CTF_ERR) in do_start_sizeof() 763 if ((stype = ctf_type_resolve(ctf, stype)) == CTF_ERR) in do_start_sizeof() 785 if ((ftype = ctf_type_resolve(ctf, ftype)) == CTF_ERR) in do_scalar_field() 810 if ((ftype = ctf_type_resolve(ctf, ftype)) == CTF_ERR) in do_array_field() 835 if ((stype = ctf_lookup_by_name(ctf, tname)) == CTF_ERR) in do_array_type() 837 if ((stype = ctf_type_resolve(ctf, stype)) == CTF_ERR) in do_array_type() 882 if ((stype = ctf_lookup_by_name(ctf, tname)) == CTF_ERR) in get_field_info() 884 if ((stype = ctf_type_resolve(ctf, stype)) == CTF_ERR) in get_field_info()
|