Home
last modified time | relevance | path

Searched refs:CTF_ERR (Results 1 – 25 of 38) sorted by relevance

12

/titanic_44/usr/src/common/ctf/
H A Dctf_types.c66 if ((type = ctf_type_resolve(fp, type)) == CTF_ERR) in ctf_member_iter()
67 return (CTF_ERR); /* errno is set for us */ in ctf_member_iter()
70 return (CTF_ERR); /* errno is set for us */ in ctf_member_iter()
118 if ((type = ctf_type_resolve(fp, type)) == CTF_ERR) in ctf_enum_iter()
119 return (CTF_ERR); /* errno is set for us */ in ctf_enum_iter()
122 return (CTF_ERR); /* errno is set for us */ in ctf_enum_iter()
193 return (CTF_ERR); /* errno is set for us */ in ctf_type_resolve()
210 if (fp == NULL && type == CTF_ERR) in ctf_type_qlname()
351 if ((type = ctf_type_resolve(fp, type)) == CTF_ERR) in ctf_type_size()
378 if (ctf_array_info(fp, type, &ar) == CTF_ERR || in ctf_type_size()
[all …]
H A Dctf_create.c669 if ((type = ctf_add_generic(fp, flag, name, &dtd)) == CTF_ERR) in ctf_add_encoded()
670 return (CTF_ERR); /* errno is set for us */ in ctf_add_encoded()
685 if (ref == CTF_ERR || ref < 0 || ref > CTF_MAX_TYPE) in ctf_add_reftype()
688 if ((type = ctf_add_generic(fp, flag, NULL, &dtd)) == CTF_ERR) in ctf_add_reftype()
689 return (CTF_ERR); /* errno is set for us */ in ctf_add_reftype()
739 if ((type = ctf_add_generic(fp, flag, NULL, &dtd)) == CTF_ERR) in ctf_add_array()
740 return (CTF_ERR); /* errno is set for us */ in ctf_add_array()
820 if ((type = ctf_add_generic(fp, flag, NULL, &dtd)) == CTF_ERR) { in ctf_add_function()
822 return (CTF_ERR); /* errno is set for us */ in ctf_add_function()
853 else if ((type = ctf_add_generic(fp, flag, name, &dtd)) == CTF_ERR) in ctf_add_struct()
[all …]
H A Dctf_labels.c61 if (extract_label_info(fp, &ctlp, &num_labels) == CTF_ERR) in ctf_label_topmost()
88 if (extract_label_info(fp, &ctlp, &num_labels) == CTF_ERR) in ctf_label_iter()
89 return (CTF_ERR); /* errno is set */ in ctf_label_iter()
146 if ((rc = ctf_label_iter(fp, label_info_cb, &cb_arg)) == CTF_ERR) in ctf_label_info()
H A Dctf_lookup.c115 if (ntype == CTF_ERR || (ntype = fp->ctf_ptrtab[ in ctf_lookup_by_name()
168 (ptype = ctf_lookup_by_name(fp->ctf_parent, name)) != CTF_ERR) in ctf_lookup_by_name()
171 return (CTF_ERR); in ctf_lookup_by_name()
300 if (ctf_func_info(fp, symidx, &f) == CTF_ERR) in ctf_func_args()
301 return (CTF_ERR); /* errno is set for us */ in ctf_func_args()
H A Dctf_util.c151 return (CTF_ERR); in ctf_set_errno()
/titanic_44/usr/src/cmd/mdb/common/mdb/
H A Dmdb_ctf.c216 (id = ctf_lookup_by_name(fp, tnp->tn_name)) != CTF_ERR) { in obj_lookup()
272 (id = ctf_lookup_by_name(fp, name)) == CTF_ERR || in name_to_type()
279 arg.tn_id = CTF_ERR; in name_to_type()
283 if (arg.tn_id != CTF_ERR) { in name_to_type()
288 name)) != CTF_ERR) in name_to_type()
296 if (id == CTF_ERR) { in name_to_type()
358 if ((mcip->mci_id = ctf_lookup_by_symbol(fp, sip->sym_id)) == CTF_ERR) { in mdb_ctf_lookup_by_symbol()
420 if ((id = ctf_lookup_by_name(fp, name)) == CTF_ERR) in mdb_ctf_module_lookup()
463 if (ctf_func_info(fp, si.sym_id, &f) == CTF_ERR) in mdb_ctf_func_info()
490 if (ctf_func_args(fp, funcp->mtf_symidx, len, cargv) == CTF_ERR) in mdb_ctf_func_args()
[all …]
H A Dmdb_typedef.c357 if (mdb_ctf_lookup_by_name(basename, &id) != CTF_ERR) { in typedef_parse()
457 if (mdb_ctf_lookup_by_name(pr->pr_tname, &id) != CTF_ERR) { in typedef_validate()
494 if (mdb_ctf_lookup_by_name(pn->pn_type, &tid) == CTF_ERR) { in typedef_add()
533 CTF_ERR) { in typedef_add()
H A Dmdb_nm.c190 if (ctf_func_info(fp, index, &f) == CTF_ERR) in nm_func_signature()
253 else if ((id = ctf_lookup_by_symbol(fp, index)) != CTF_ERR) in nm_print_ctype()
271 if (fp != NULL && (id = ctf_lookup_by_symbol(fp, index)) != CTF_ERR) { in nm_print_ctfid()
/titanic_44/usr/src/tools/ctf/stabs/common/
H A Dctfstabs.c166 if ((id = ctf_lookup_by_name(ctf, name)) != CTF_ERR) in find_type()
170 if ((id = ctf_lookup_by_name(ctf, fullname)) != CTF_ERR) in find_type()
174 if ((id = ctf_lookup_by_name(ctf, fullname)) != CTF_ERR) in find_type()
178 if ((id = ctf_lookup_by_name(ctf, fullname)) != CTF_ERR) in find_type()
181 return (CTF_ERR); in find_type()
221 if ((lid = ctf_lookup_by_name(ctf, "long")) == CTF_ERR || in get_model()
222 (lsz = ctf_type_size(ctf, lid)) == CTF_ERR) in get_model()
H A Dfth_struct.c166 if ((sz = ctf_type_size(ctf, fth_str_curtid)) == CTF_ERR) in fth_struct_header()
313 if (ctf_array_info(ctf, tid, &ar) == CTF_ERR) { in fth_print_array()
342 if ((tid = ctf_type_resolve(ctf, mem->fsm_tid)) == CTF_ERR) { in fth_print_member()
347 if ((kind = ctf_type_kind(ctf, tid)) == CTF_ERR) { in fth_print_member()
352 if ((sz = ctf_type_size(ctf, tid)) == CTF_ERR) { in fth_print_member()
359 if (ctf_type_encoding(ctf, tid, &e) == CTF_ERR) in fth_print_member()
H A Dforth.c198 if ((tid = find_type(part)) == CTF_ERR || in fth_section_init()
199 (tid = ctf_type_resolve(ctf, tid)) == CTF_ERR || in fth_section_init()
200 (kind = ctf_type_kind(ctf, tid)) == CTF_ERR) { in fth_section_init()
219 if ((kind = ctf_type_kind(ctf, tid)) == CTF_ERR) { in fth_section_init()
H A Dgenassym.c165 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()
/titanic_44/usr/src/lib/libdtrace/common/
H A Ddt_decl.c85 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()
605 ctf_type_encoding(dtt.dtt_ctfp, base, &cte) == CTF_ERR || in dt_decl_member()
623 if (dtt.dtt_type == CTF_ERR || in dt_decl_member()
624 ctf_update(dsp->ds_ctfp) == CTF_ERR) { in dt_decl_member()
647 if (dtt.dtt_type == CTF_ERR || in dt_decl_member()
648 ctf_update(dtt.dtt_ctfp) == CTF_ERR) { in dt_decl_member()
[all …]
H A Ddt_print.c237 if (ctf_type_encoding(ctfp, base, &e) == CTF_ERR) { in dt_print_int()
325 if (bid == CTF_ERR || ctf_type_kind(ctfp, bid) != CTF_K_FUNCTION) { in dt_print_ptr()
379 if (ctf_array_info(ctfp, base, &car) == CTF_ERR) { in dt_print_array()
385 (rtype = ctf_type_resolve(ctfp, car.ctr_contents)) == CTF_ERR || in dt_print_array()
386 (kind = ctf_type_kind(ctfp, rtype)) == CTF_ERR) { in dt_print_array()
394 ctf_type_encoding(ctfp, rtype, &e) != CTF_ERR && CTF_IS_CHAR(e)) { in dt_print_array()
566 if ((rtype = ctf_type_resolve(ctfp, id)) == CTF_ERR || in dt_print_member()
567 (kind = ctf_type_kind(ctfp, rtype)) == CTF_ERR || in dt_print_member()
693 if (ctfp == NULL || ctf_type_kind(ctfp, id) == CTF_ERR) in dtrace_print()
H A Ddt_open.c585 { "int", NULL, CTF_ERR, 0x7fffffffULL },
586 { "unsigned int", NULL, CTF_ERR, 0xffffffffULL },
587 { "long", NULL, CTF_ERR, 0x7fffffffULL },
588 { "unsigned long", NULL, CTF_ERR, 0xffffffffULL },
589 { "long long", NULL, CTF_ERR, 0x7fffffffffffffffULL },
590 { "unsigned long long", NULL, CTF_ERR, 0xffffffffffffffffULL }
598 { "int", NULL, CTF_ERR, 0x7fffffffULL },
599 { "unsigned int", NULL, CTF_ERR, 0xffffffffULL },
600 { "long", NULL, CTF_ERR, 0x7fffffffffffffffULL },
601 { "unsigned long", NULL, CTF_ERR, 0xffffffffffffffffULL },
[all …]
H A Ddt_xlator.c128 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()
H A Ddt_ident.c268 isp->dis_args[i].dn_type = CTF_ERR; in dt_idcook_func()
365 if (xnp->dn_type == CTF_ERR) { in dt_idcook_args()
370 if (nnp->dn_type == CTF_ERR) { in dt_idcook_args()
470 if (idp->di_type == CTF_ERR) { in dt_idcook_type()
492 if (idp->di_ctfp != NULL && idp->di_type != CTF_ERR) in dt_idcook_thaw()
920 idp->di_type = CTF_ERR; in dt_ident_create()
H A Ddt_parser.c274 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()
286 (type = ctf_add_type(dmp->dm_ctfp, ctfp, type)) == CTF_ERR) { in dt_type_pointer()
293 if (ptr == CTF_ERR || ctf_update(dmp->dm_ctfp) == CTF_ERR) { in dt_type_pointer()
362 if (ctf_type_encoding(lfp, lbase, &le) == CTF_ERR) { in dt_type_promote()
367 if (ctf_type_encoding(rfp, rbase, &re) == CTF_ERR) { in dt_type_promote()
519 dnp->dn_type = CTF_ERR; in dt_node_xalloc()
990 (base = ctf_type_reference(fp, base)) != CTF_ERR && in dt_node_is_strcompat()
991 (base = ctf_type_resolve(fp, base)) != CTF_ERR && in dt_node_is_strcompat()
996 (base = ctf_type_resolve(fp, r.ctr_contents)) != CTF_ERR && in dt_node_is_strcompat()
[all …]
H A Ddt_provider.c332 dtt.dtt_type = CTF_ERR; in dt_probe_discover()
339 if (dtt.dtt_type != CTF_ERR && (adp->dtargd_xlate[0] == '\0' || in dt_probe_discover()
352 dtt.dtt_type = CTF_ERR; in dt_probe_discover()
646 if (dtt.dtt_type == CTF_ERR || in dt_probe_tag()
647 ctf_update(dtt.dtt_ctfp) == CTF_ERR) { in dt_probe_tag()
H A Ddt_module.c846 if (ctf_import(dmp->dm_ctfp, pfp) == CTF_ERR) { in dt_module_getctf()
1450 p + 1)) == CTF_ERR) in dtrace_lookup_by_type()
1451 id = CTF_ERR; in dtrace_lookup_by_type()
1457 if (id != CTF_ERR) in dtrace_lookup_by_type()
1462 if (id != CTF_ERR) { in dtrace_lookup_by_type()
1488 tip->dtt_type = CTF_ERR; in dtrace_symbol_type()
1511 if (tip->dtt_type == CTF_ERR) { in dtrace_symbol_type()
/titanic_44/usr/src/lib/abi/apptrace/common/
H A Dapptraceutil.c148 if (ctf_type_encoding(ctfp, base, &e) == CTF_ERR) { in print_int()
232 if ((base = ctf_type_reference(ctfp, base)) == CTF_ERR) in print_ptr()
235 if ((base = ctf_type_resolve(ctfp, base)) == CTF_ERR) in print_ptr()
312 if ((base = ctf_type_resolve(ctfp, id)) == CTF_ERR || in elt_print()
313 (kind = ctf_type_kind(ctfp, base)) == CTF_ERR) in elt_print()
/titanic_44/usr/src/cmd/sgs/elfdump/common/
H A Dgen_struct_layout.c724 if ((stype = ctf_lookup_by_name(ctf, rtname)) == CTF_ERR) in do_start_sizeof()
726 if ((stype = ctf_type_resolve(ctf, stype)) == CTF_ERR) in do_start_sizeof()
748 if ((ftype = ctf_type_resolve(ctf, ftype)) == CTF_ERR) in do_scalar_field()
773 if ((ftype = ctf_type_resolve(ctf, ftype)) == CTF_ERR) in do_array_field()
798 if ((stype = ctf_lookup_by_name(ctf, tname)) == CTF_ERR) in do_array_type()
800 if ((stype = ctf_type_resolve(ctf, stype)) == CTF_ERR) in do_array_type()
845 if ((stype = ctf_lookup_by_name(ctf, tname)) == CTF_ERR) in get_field_info()
847 if ((stype = ctf_type_resolve(ctf, stype)) == CTF_ERR) in get_field_info()
/titanic_44/usr/src/cmd/dtrace/test/cmd/chkargs/
H A Dchkargs.c58 if (p.dtp_argv[i].dtt_type == CTF_ERR) { in probe()
/titanic_44/usr/src/lib/libsaveargs/tests/dump/
H A Ddump.c105 if (ctf_func_info(fp, symdx, &ss.ss_finfo) == CTF_ERR) { in walk_symtab()
/titanic_44/usr/src/uts/common/sys/
H A Dctf_api.h116 #define CTF_ERR (-1L) macro

12