/illumos-gate/usr/src/uts/common/sys/ |
H A D | ctf_api.h | 61 typedef long ctf_id_t; typedef 149 ctf_id_t ctm_type; /* type of struct or union member */ 154 ctf_id_t ctr_contents; /* type of array contents */ 155 ctf_id_t ctr_index; /* type of array index */ 160 ctf_id_t ctc_return; /* function return type */ 166 ctf_id_t ctb_typeidx; /* last type associated with the label */ 202 typedef int ctf_visit_f(const char *, ctf_id_t, ulong_t, int, void *); 203 typedef int ctf_member_f(const char *, ctf_id_t, ulong_t, void *); 205 typedef int ctf_type_f(ctf_id_t, boolean_t, void *); 208 typedef int ctf_object_f(const char *, ctf_id_t, ulong_t, void *); [all …]
|
/illumos-gate/usr/src/lib/libctf/common/ |
H A D | ctf_diff.c | 57 ctf_id_t cdo_id; 63 ctf_id_t cdg_iid; 64 ctf_id_t cdg_oid; 73 ctf_id_t *cds_forward; 74 ctf_id_t *cds_reverse; 103 static int ctf_diff_type(ctf_diff_t *, ctf_file_t *, ctf_id_t, ctf_file_t *, 104 ctf_id_t); 107 ctf_diff_name(ctf_file_t *ifp, ctf_id_t iid, ctf_file_t *ofp, ctf_id_t oid) in ctf_diff_name() 135 ctf_diff_number(ctf_file_t *ifp, ctf_id_t iid, ctf_file_t *ofp, ctf_id_t oid) in ctf_diff_number() 161 ctf_diff_typedef(ctf_diff_t *cds, ctf_file_t *ifp, ctf_id_t iid, in ctf_diff_typedef() [all …]
|
H A D | ctf_merge.c | 66 ctf_id_t cmo_tid; /* Type ID */ 75 ctf_id_t cmf_rtid; /* Type ID */ 78 ctf_id_t cmf_args[]; /* Types of arguments */ 108 static int ctf_merge_add_type(ctf_merge_types_t *, ctf_id_t); 110 static ctf_id_t 111 ctf_merge_gettype(ctf_merge_types_t *cmp, ctf_id_t id) in ctf_merge_gettype() 127 ctf_merge_diffcb(ctf_file_t *ifp, ctf_id_t iid, boolean_t same, ctf_file_t *ofp, in ctf_merge_diffcb() 128 ctf_id_t oid, void *arg) in ctf_merge_diffcb() 179 ctf_merge_add_number(ctf_merge_types_t *cmp, ctf_id_t id) in ctf_merge_add_number() 208 ctf_merge_add_array(ctf_merge_types_t *cmp, ctf_id_t id) in ctf_merge_add_array() [all …]
|
H A D | libctf.h | 64 typedef void (*ctf_diff_type_f)(ctf_file_t *, ctf_id_t, boolean_t, ctf_file_t *, 65 ctf_id_t, void *); 68 typedef void (*ctf_diff_obj_f)(ctf_file_t *, ulong_t, ctf_id_t, boolean_t, 69 ctf_file_t *, ulong_t, ctf_id_t, void *);
|
H A D | ctf_dwarf.c | 228 ctf_id_t cdm_id; 235 ctf_id_t cdv_type; 243 ctf_id_t *cdf_argv; 249 ctf_id_t cdb_base; 251 ctf_id_t cdb_id; 283 ctf_id_t cu_voidtid; /* void pointer */ 284 ctf_id_t cu_longtid; /* id for a 'long' */ 290 static int ctf_dwarf_convert_type(ctf_cu_t *, Dwarf_Die, ctf_id_t *, int); 295 ctf_id_t *); 356 static ctf_id_t [all …]
|
/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_impl.h | 130 ctf_id_t cd_type; /* type identifier */ 150 ctf_id_t dmd_type; /* type of this member (for sou) */ 159 ctf_id_t dtd_type; /* type identifier for this definition */ 166 ctf_id_t *dtu_argv; /* function */ 173 ctf_id_t dsd_tid; /* type for obj, 0 if function */ 175 ctf_id_t *dsd_argc; /* function argv */ 181 ctf_id_t dld_type; /* type ID associated with the label */ 186 ctf_id_t ctb_type; /* CTF type identifier */ 265 extern const ctf_type_t *ctf_lookup_by_id(ctf_file_t **, ctf_id_t); 288 extern ctf_dtdef_t *ctf_dtd_lookup(ctf_file_t *, ctf_id_t); [all …]
|
H A D | ctf_types.c | 76 ctf_member_iter(ctf_file_t *fp, ctf_id_t type, ctf_member_f *func, void *arg) in ctf_member_iter() 127 ctf_enum_iter(ctf_file_t *fp, ctf_id_t type, ctf_enum_f *func, void *arg) in ctf_enum_iter() 166 ctf_id_t id, max = fp->ctf_typemax; in ctf_type_iter() 187 ctf_id_t 188 ctf_type_resolve(ctf_file_t *fp, ctf_id_t type) in ctf_type_resolve() 190 ctf_id_t prev = type, otype = type; in ctf_type_resolve() 247 const char *vname, ctf_id_t id, int want_func_args) in ctf_format_func() 251 ctf_id_t args[20]; in ctf_format_func() 298 ctf_type_qlname(ctf_file_t *fp, ctf_id_t type, char *buf, size_t len, in ctf_type_qlname() 454 ctf_type_lname(ctf_file_t *fp, ctf_id_t type, char *buf, size_t len) in ctf_type_lname() [all …]
|
H A D | ctf_create.c | 236 ctf_ref_inc(ctf_file_t *fp, ctf_id_t tid) in ctf_ref_inc() 254 ctf_ref_dec(ctf_file_t *fp, ctf_id_t tid) in ctf_ref_dec() 780 ctf_free(dtd->dtd_u.dtu_argv, sizeof (ctf_id_t) * in ctf_dtd_delete() 809 ctf_dtd_lookup(ctf_file_t *fp, ctf_id_t type) in ctf_dtd_lookup() 867 sizeof (ctf_id_t) * dsd->dsd_nargs); in ctf_dsd_delete() 953 static ctf_id_t 957 ctf_id_t type; in ctf_add_generic() 997 ctf_id_t 1002 ctf_id_t type; in ctf_add_encoded() 1024 ctf_id_t [all …]
|
H A D | ctf_lookup.c | 80 ctf_id_t 88 ctf_id_t type = 0; in ctf_lookup_by_name() 89 ctf_id_t ntype, ptype; in ctf_lookup_by_name() 181 ctf_id_t 185 ctf_id_t type; in ctf_lookup_by_symbol() 219 ctf_lookup_by_id(ctf_file_t **fpp, ctf_id_t type) in ctf_lookup_by_id() 298 ctf_func_args(ctf_file_t *fp, ulong_t symidx, uint_t argc, ctf_id_t *argv) in ctf_func_args() 325 ctf_dyn_lookup_by_id(ctf_file_t *fp, ctf_id_t id) in ctf_dyn_lookup_by_id() 341 ctf_dyn_array_info(ctf_file_t *infp, ctf_id_t id, ctf_arinfo_t *arinfop) in ctf_dyn_array_info()
|
/illumos-gate/usr/src/lib/abi/apptrace/common/ |
H A D | apptraceutil.c | 40 typedef void printarg_f(ctf_id_t, ulong_t, printarg_t *); 42 static int elt_print(const char *, ctf_id_t, ulong_t, int, void *); 45 type_name(ctf_file_t *ctfp, ctf_id_t type, char *buf, size_t len) in type_name() 54 print_value(ctf_file_t *ctfp, ctf_id_t type, ulong_t value) in print_value() 56 ctf_id_t rtype = ctf_type_resolve(ctfp, type); in print_value() 139 print_int(ctf_id_t base, ulong_t off, printarg_t *pap) in print_int() 191 print_float(ctf_id_t base, ulong_t off, printarg_t *pap) in print_float() 221 print_ptr(ctf_id_t base, ulong_t off, printarg_t *pap) in print_ptr() 247 print_array(ctf_id_t base, ulong_t off, printarg_t *pap) in print_array() 257 print_sou(ctf_id_t base, ulong_t off, printarg_t *pap) in print_sou() [all …]
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_xlator.h | 48 ctf_id_t dx_src_type; /* CTF reference for input type */ 49 ctf_id_t dx_src_base; /* CTF reference for input base */ 51 ctf_id_t dx_dst_type; /* CTF reference for output type */ 52 ctf_id_t dx_dst_base; /* CTF reference for output base */ 77 extern dt_ident_t *dt_xlator_ident(dt_xlator_t *, ctf_file_t *, ctf_id_t);
|
H A D | dt_print.c | 108 static int dt_print_member(const char *, ctf_id_t, ulong_t, int, void *); 115 dt_print_type_name(ctf_file_t *ctfp, ctf_id_t id, char *buf, size_t buflen) in dt_print_type_name() 252 dt_print_int(ctf_id_t base, ulong_t off, dt_printarg_t *pap) in dt_print_int() 302 dt_print_float(ctf_id_t base, ulong_t off, dt_printarg_t *pap) in dt_print_float() 333 dt_print_ptr(ctf_id_t base, ulong_t off, dt_printarg_t *pap) in dt_print_ptr() 339 ctf_id_t bid = ctf_type_reference(ctfp, base); in dt_print_ptr() 385 dt_print_array(ctf_id_t base, ulong_t off, dt_printarg_t *pap) in dt_print_array() 396 ctf_id_t rtype; in dt_print_array() 484 dt_print_structlike(ctf_id_t id, ulong_t off, dt_printarg_t *pap) in dt_print_structlike() 495 dt_print_enum(ctf_id_t base, ulong_t off, dt_printarg_t *pap) in dt_print_enum() [all …]
|
H A D | dt_impl.h | 81 ctf_id_t did_type; /* CTF type reference for this type */ 97 ctf_id_t da_type; /* type of argument */ 240 ctf_id_t dt_type_func; /* cached CTF identifier for function type */ 241 ctf_id_t dt_type_fptr; /* cached CTF identifier for function pointer */ 242 ctf_id_t dt_type_str; /* cached CTF identifier for string type */ 243 ctf_id_t dt_type_dyn; /* cached CTF identifier for <DYN> type */ 244 ctf_id_t dt_type_stack; /* cached CTF identifier for stack type */ 245 ctf_id_t dt_type_symaddr; /* cached CTF identifier for _symaddr type */ 246 ctf_id_t dt_type_usymaddr; /* cached CTF ident. for _usymaddr type */
|
H A D | dt_decl.h | 49 ctf_id_t dd_type; /* CTF identifier for decl's type */ 82 ctf_id_t ds_type; /* CTF id of enclosing type */ 122 extern void dt_scope_push(ctf_file_t *, ctf_id_t);
|
H A D | dt_parser.h | 53 ctf_id_t dn_type; /* CTF type reference for node's type */ 204 ctf_file_t **, ctf_id_t *); 243 extern void dt_node_type_assign(dt_node_t *, ctf_file_t *, ctf_id_t, boolean_t); 244 extern void dt_node_type_assign_bitfield(dt_node_t *, ctf_file_t *, ctf_id_t, 273 extern const char *dt_type_name(ctf_file_t *, ctf_id_t, char *, size_t);
|
H A D | dt_xlator.c | 48 dt_xlator_create_member(const char *name, ctf_id_t type, ulong_t off, void *arg) in dt_xlator_create_member() 261 ctf_id_t src_type = src->dn_type; in dt_xlator_lookup() 262 ctf_id_t src_base = ctf_type_resolve(src_ctfp, src_type); in dt_xlator_lookup() 265 ctf_id_t dst_type = dst->dn_type; in dt_xlator_lookup() 266 ctf_id_t dst_base = ctf_type_resolve(dst_ctfp, dst_type); in dt_xlator_lookup() 361 dt_xlator_ident(dt_xlator_t *dxp, ctf_file_t *ctfp, ctf_id_t type) in dt_xlator_ident()
|
H A D | dt_printf.h | 58 ctf_id_t pfc_ctype; /* CTF type ID for "C" defn of type */ 60 ctf_id_t pfc_dtype; /* CTF type ID for "D" defn of type */
|
/illumos-gate/usr/src/test/util-tests/tests/ctf/ |
H A D | check-common.c | 27 ctf_id_t clc_id; 38 ctftest_lookup_type_cb(ctf_id_t id, boolean_t root, void *arg) in ctftest_lookup_type_cb() 59 static ctf_id_t 73 ctftest_lookup_object_cb(const char *obj, ctf_id_t type, ulong_t idx, void *arg) in ctftest_lookup_object_cb() 85 static ctf_id_t 143 ctf_id_t id; in ctftest_check_numbers() 209 ctftest_check_symbol_cb(const char *obj, ctf_id_t type, ulong_t idx, void *arg) in ctftest_check_symbol_cb() 217 ctf_id_t id; in ctftest_check_symbol_cb() 260 ctf_id_t base; in ctftest_check_descent() 273 ctf_id_t tid; in ctftest_check_descent() [all …]
|
/illumos-gate/usr/src/tools/ctf/stabs/common/ |
H A D | forth.c | 127 fth_null_header(ctf_id_t tid) in fth_null_header() 153 find_member_cb(const char *memname, ctf_id_t tid, ulong_t off, void *arg) in find_member_cb() 164 static ctf_id_t 165 find_member(ctf_id_t tid, char *memname) in find_member() 179 ctf_id_t ltid = 0, tid; in fth_section_init()
|
H A D | genassym.c | 159 ctf_id_t curtype; in ga_process_name() 211 static int ga_member_find(ctf_id_t, ga_member_cb_data_t *); 214 ga_member_cb(const char *name, ctf_id_t type, ulong_t off, void *arg) in ga_member_cb() 269 ga_member_find(ctf_id_t curtype, ga_member_cb_data_t *md) in ga_member_find() 288 ga_process_member(ctf_id_t curtype, char *line) in ga_process_member()
|
H A D | fth_struct.c | 114 static ctf_id_t fth_str_curtid; 125 ctf_id_t fsm_tid; 177 fth_struct_header(ctf_id_t tid) in fth_struct_header() 318 fth_print_array(char *memname, ctf_id_t tid, ulong_t off, ssize_t sz, in fth_print_array() 357 ctf_id_t tid; in fth_print_member() 422 fth_struct_members_cb(const char *memname, ctf_id_t tid, ulong_t off, void *arg) in fth_struct_members_cb()
|
H A D | fth_enum.c | 39 static ctf_id_t fth_enum_curtid; 43 fth_enum_header(ctf_id_t tid) in fth_enum_header()
|
H A D | ctfstabs.c | 158 ctf_id_t 162 ctf_id_t id; in find_type() 216 ctf_id_t lid; in get_model()
|
/illumos-gate/usr/src/cmd/ctfdump/ |
H A D | ctfdump.c | 77 ctf_id_t ci_id; 87 static ctf_id_t *g_fargc; 176 ctfdump_objects_cb(const char *name, ctf_id_t id, ulong_t symidx, void *arg) in ctfdump_objects_cb() 204 g_fargc = realloc(g_fargc, sizeof (ctf_id_t) * nargs); in ctfdump_fargs_grow() 485 ctfdump_member_cb(const char *member, ctf_id_t type, ulong_t off, void *arg) in ctfdump_member_cb() 514 ctfdump_types_cb(ctf_id_t id, boolean_t root, void *arg) in ctfdump_types_cb() 518 ctf_id_t ref; in ctfdump_types_cb() 713 ctfsrc_refname(ctf_id_t id, char *buf, size_t bufsize) in ctfsrc_refname() 715 ctf_id_t ref; in ctfsrc_refname() 726 ctfsrc_member_cb(const char *member, ctf_id_t type, ulong_t off, void *arg) in ctfsrc_member_cb() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_ctf.c | 47 ctf_id_t tn_id; /* CTF type ID from match */ 199 set_ctf_id(mdb_ctf_id_t *p, ctf_file_t *fp, ctf_id_t id) in set_ctf_id() 217 ctf_id_t id; in obj_lookup() 242 name_to_type(mdb_tgt_t *t, const char *cname, ctf_id_t *idp) in name_to_type() 246 ctf_id_t id = CTF_ERR; in name_to_type() 415 ctf_id_t id; in mdb_ctf_module_lookup() 483 ctf_id_t cargv[32]; in mdb_ctf_func_args() 529 ctf_id_t id; in mdb_ctf_type_resolve() 607 ctf_id_t id; in mdb_ctf_type_reference() 637 type_cb(const char *name, ctf_id_t type, ulong_t off, int depth, void *arg) in type_cb() [all …]
|