Home
last modified time | relevance | path

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

/freebsd/cddl/contrib/opensolaris/common/ctf/
H A Dctf_create.c773 if ((type = ctf_add_generic(fp, flag, name, &dtd)) == CTF_ERR) in ctf_add_encoded()
774 return (CTF_ERR); /* errno is set for us */ in ctf_add_encoded()
789 if (ref == CTF_ERR || ref > LCTF_MAX_TYPE(fp)) in ctf_add_reftype()
792 if ((type = ctf_add_generic(fp, flag, NULL, &dtd)) == CTF_ERR) in ctf_add_reftype()
793 return (CTF_ERR); /* errno is set for us */ in ctf_add_reftype()
843 if ((type = ctf_add_generic(fp, flag, NULL, &dtd)) == CTF_ERR) in ctf_add_array()
844 return (CTF_ERR); /* errno is set for us */ in ctf_add_array()
925 if ((type = ctf_add_generic(fp, flag, NULL, &dtd)) == CTF_ERR) { in ctf_add_function()
927 return (CTF_ERR); /* errno is set for us */ in ctf_add_function()
958 else if ((type = ctf_add_generic(fp, flag, name, &dtd)) == CTF_ERR) in ctf_add_struct()
[all …]
H A Dctf_types.c192 if ((type = ctf_type_resolve(fp, type)) == CTF_ERR) in ctf_member_iter()
193 return (CTF_ERR); /* errno is set for us */ in ctf_member_iter()
196 return (CTF_ERR); /* errno is set for us */ in ctf_member_iter()
234 if ((type = ctf_type_resolve(fp, type)) == CTF_ERR) in ctf_enum_iter()
235 return (CTF_ERR); /* errno is set for us */ in ctf_enum_iter()
238 return (CTF_ERR); /* errno is set for us */ in ctf_enum_iter()
314 return (CTF_ERR); /* errno is set for us */ in ctf_type_resolve()
331 if (fp == NULL && type == CTF_ERR) in ctf_type_qlname()
489 if ((type = ctf_type_resolve(fp, type)) == CTF_ERR) in ctf_type_size()
518 if (ctf_array_info(fp, type, &ar) == CTF_ERR || in ctf_type_size()
[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.c117 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()
309 if (ctf_func_info(fp, symidx, &f) == CTF_ERR) in ctf_func_args()
310 return (CTF_ERR); /* errno is set for us */ in ctf_func_args()
H A Dctf_util.c151 return (CTF_ERR); in ctf_set_errno()
/freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_print.c245 if (ctf_type_encoding(ctfp, base, &e) == CTF_ERR) { in dt_print_int()
338 if (bid == CTF_ERR || ctf_type_kind(ctfp, bid) != CTF_K_FUNCTION) { in dt_print_ptr()
393 if (ctf_array_info(ctfp, base, &car) == CTF_ERR) { in dt_print_array()
399 (rtype = ctf_type_resolve(ctfp, car.ctr_contents)) == CTF_ERR || in dt_print_array()
400 (kind = ctf_type_kind(ctfp, rtype)) == CTF_ERR) { in dt_print_array()
409 ctf_type_encoding(ctfp, rtype, &e) != CTF_ERR && CTF_IS_CHAR(e)) { in dt_print_array()
609 if ((rtype = ctf_type_resolve(ctfp, id)) == CTF_ERR || in dt_format_member()
610 (kind = ctf_type_kind(ctfp, rtype)) == CTF_ERR || in dt_format_member()
662 if ((rtype = ctf_type_resolve(ctfp, id)) == CTF_ERR || in dt_print_member()
663 (kind = ctf_type_kind(ctfp, rtype)) == CTF_ERR || in dt_print_member()
[all …]
H A Ddt_decl.c88 ddp->dd_type = CTF_ERR; in dt_decl_alloc()
152 dsp->ds_type = CTF_ERR; in dt_decl_pop()
320 if (dnp->dn_type == CTF_ERR && !(flags & DT_DP_VARARGS)) { in dt_decl_prototype()
482 if (name != NULL && (type = ctf_lookup_by_name(ctfp, n)) != CTF_ERR && in dt_decl_sou()
491 if (type == CTF_ERR || ctf_update(ctfp) == CTF_ERR) { in dt_decl_sou()
588 ctf_type_encoding(dtt.dtt_ctfp, base, &cte) == CTF_ERR || in dt_decl_member()
606 if (dtt.dtt_type == CTF_ERR || in dt_decl_member()
607 ctf_update(dsp->ds_ctfp) == CTF_ERR) { in dt_decl_member()
630 if (dtt.dtt_type == CTF_ERR || in dt_decl_member()
631 ctf_update(dtt.dtt_ctfp) == CTF_ERR) { in dt_decl_member()
[all …]
H A Ddt_open.c684 { "int", NULL, CTF_ERR, 0x7fffffffULL },
685 { "unsigned int", NULL, CTF_ERR, 0xffffffffULL },
686 { "long", NULL, CTF_ERR, 0x7fffffffULL },
687 { "unsigned long", NULL, CTF_ERR, 0xffffffffULL },
688 { "long long", NULL, CTF_ERR, 0x7fffffffffffffffULL },
689 { "unsigned long long", NULL, CTF_ERR, 0xffffffffffffffffULL }
697 { "int", NULL, CTF_ERR, 0x7fffffffULL },
698 { "unsigned int", NULL, CTF_ERR, 0xffffffffULL },
699 { "long", NULL, CTF_ERR, 0x7fffffffffffffffULL },
700 { "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_parser.c279 if ((ptr = ctf_type_pointer(ctfp, type)) != CTF_ERR || in dt_type_pointer()
280 (ptr = ctf_type_pointer(ctfp, base)) != CTF_ERR) { in dt_type_pointer()
291 (type = ctf_add_type(dmp->dm_ctfp, ctfp, type)) == CTF_ERR) { in dt_type_pointer()
298 if (ptr == CTF_ERR || ctf_update(dmp->dm_ctfp) == CTF_ERR) { in dt_type_pointer()
367 if (ctf_type_encoding(lfp, lbase, &le) == CTF_ERR) { in dt_type_promote()
372 if (ctf_type_encoding(rfp, rbase, &re) == CTF_ERR) { in dt_type_promote()
524 dnp->dn_type = CTF_ERR; in dt_node_xalloc()
995 (base = ctf_type_reference(fp, base)) != CTF_ERR && in dt_node_is_strcompat()
996 (base = ctf_type_resolve(fp, base)) != CTF_ERR && in dt_node_is_strcompat()
1001 (base = ctf_type_resolve(fp, r.ctr_contents)) != CTF_ERR && in dt_node_is_strcompat()
[all …]
H A Ddt_ident.c280 isp->dis_args[i].dn_type = CTF_ERR; in dt_idcook_func()
377 if (xnp->dn_type == CTF_ERR) { in dt_idcook_args()
382 if (nnp->dn_type == CTF_ERR) { in dt_idcook_args()
482 if (idp->di_type == CTF_ERR) { in dt_idcook_type()
504 if (idp->di_ctfp != NULL && idp->di_type != CTF_ERR) in dt_idcook_thaw()
932 idp->di_type = CTF_ERR; in dt_ident_create()
H A Ddt_provider.c337 dtt.dtt_type = CTF_ERR; in dt_probe_discover()
344 if (dtt.dtt_type != CTF_ERR && (adp->dtargd_xlate[0] == '\0' || in dt_probe_discover()
357 dtt.dtt_type = CTF_ERR; in dt_probe_discover()
649 if (dtt.dtt_type == CTF_ERR || in dt_probe_tag()
650 ctf_update(dtt.dtt_ctfp) == CTF_ERR) { in dt_probe_tag()
H A Ddt_module.c911 if (ctf_import(dmp->dm_ctfp, pfp) == CTF_ERR) { in dt_module_getctf()
1630 p + 1)) == CTF_ERR) in dtrace_lookup_by_type()
1631 id = CTF_ERR; in dtrace_lookup_by_type()
1637 if (id != CTF_ERR) in dtrace_lookup_by_type()
1642 if (id != CTF_ERR) { in dtrace_lookup_by_type()
1668 tip->dtt_type = CTF_ERR; in dtrace_symbol_type()
1691 if (tip->dtt_type == CTF_ERR) { in dtrace_symbol_type()
H A Ddt_grammar.y249 { dt_scope_push(NULL, CTF_ERR); } DT_TOK_ASGN
849 array: DT_TOK_LBRAC { dt_scope_push(NULL, CTF_ERR); }
862 function: DT_TOK_LPAR { dt_scope_push(NULL, CTF_ERR); }
H A Ddt_options.c819 if (ctf_array_info(fp, type, &r) == CTF_ERR) { in dt_opt_strsize()
827 if (ctf_set_array(fp, type, &r) == CTF_ERR || in dt_opt_strsize()
828 ctf_update(fp) == CTF_ERR) { in dt_opt_strsize()
H A Ddt_pid.c946 if (ctf_func_info(fp, si.prs_id, &f) == CTF_ERR) { in dt_pid_get_types()
981 if (ctf_func_args(fp, si.prs_id, argc, argv) == CTF_ERR) in dt_pid_get_types()
H A Ddt_cg.c86 if (ctf_member_info(fp, type, s, mp) == CTF_ERR) in dt_cg_membinfo()
167 ctf_type_encoding(ctfp, type, &e) != CTF_ERR) in dt_cg_load()
418 ctf_type_encoding(dst->dn_ctfp, dst->dn_type, &e) != CTF_ERR) in dt_cg_store()
1063 mnp->dn_membname, &ctm) == CTF_ERR) { in dt_cg_asgn_op()
H A Ddt_printf.c124 (base = ctf_type_resolve(ctfp, r.ctr_contents)) != CTF_ERR && in pfcheck_str()
140 (base = ctf_type_resolve(ctfp, r.ctr_contents)) != CTF_ERR && in pfcheck_wstr()
751 dtt.dtt_type = CTF_ERR; in dt_pfdict_create()
H A Ddt_cc.c2576 ctf_write(dtp->dt_cdefs->dm_ctfp, dtp->dt_cdefs_fd) == CTF_ERR)) in dt_compile()
2581 ctf_write(dtp->dt_ddefs->dm_ctfp, dtp->dt_ddefs_fd) == CTF_ERR)) in dt_compile()
/freebsd/cddl/contrib/opensolaris/cmd/dtrace/test/cmd/chkargs/
H A Dchkargs.c58 if (p.dtp_argv[i].dtt_type == CTF_ERR) { in probe()
/freebsd/sys/cddl/contrib/opensolaris/uts/common/sys/
H A Dctf_api.h120 #define CTF_ERR (-1L) macro
/freebsd/sys/cddl/dev/fbt/
H A Dfbt.c1054 if (lc == NULL && type == CTF_ERR) in fbt_type_name()