/freebsd-src/sys/cddl/contrib/opensolaris/uts/common/sys/ |
H A D | ctf_api.h | 60 typedef struct ctf_file ctf_file_t; typedef 153 extern ctf_file_t *ctf_bufopen(const ctf_sect_t *, const ctf_sect_t *, 155 extern ctf_file_t *ctf_fdopen(int, int *); 156 extern ctf_file_t *ctf_open(const char *, int *); 157 extern ctf_file_t *ctf_create(int *); 158 extern ctf_file_t *ctf_dup(ctf_file_t *); 159 extern void ctf_close(ctf_file_t *); 161 extern ctf_file_t *ctf_parent_file(ctf_file_t *); 162 extern const char *ctf_parent_name(ctf_file_t *); 164 extern int ctf_import(ctf_file_t *, ctf_file_t *); [all …]
|
/freebsd-src/cddl/contrib/opensolaris/common/ctf/ |
H A D | ctf_impl.h | 174 ctf_file_t *ctb_file; /* CTF container handle */ 304 extern void ctf_get_ctt_index(const ctf_file_t *fp, const void *v, 306 extern ssize_t ctf_get_ctt_size(const ctf_file_t *, const void *v, ssize_t *, 308 extern void ctf_get_ctt_info(const ctf_file_t *, const void *v, uint_t *kind, 311 extern void ctf_get_ctm_info(const ctf_file_t *fp, const void *v, size_t sz, 314 extern const void *ctf_lookup_by_id(ctf_file_t **, ctf_id_t); 315 extern const char *ctf_type_rname(ctf_file_t *, const void *); 318 extern int ctf_hash_insert(ctf_hash_t *, ctf_file_t *, uint_t, uint_t); 319 extern int ctf_hash_define(ctf_hash_t *, ctf_file_t *, uint_t, uint_t); 320 extern ctf_helem_t *ctf_hash_lookup(ctf_hash_t *, ctf_file_t *, [all …]
|
H A D | ctf_types.c | 31 ctf_get_ctt_index(const ctf_file_t *fp, const void *v, uint_t *indexp, in ctf_get_ctt_index() 60 ctf_get_ctt_info(const ctf_file_t *fp, const void *v, uint_t *kindp, in ctf_get_ctt_info() 89 ctf_get_ctt_size(const ctf_file_t *fp, const void *v, ssize_t *sizep, in ctf_get_ctt_size() 128 ctf_get_ctm_info(const ctf_file_t *fp, const void *v, size_t size, in ctf_get_ctm_info() 184 ctf_member_iter(ctf_file_t *fp, ctf_id_t type, ctf_member_f *func, void *arg) in ctf_member_iter() 186 ctf_file_t *ofp = fp; in ctf_member_iter() 225 ctf_enum_iter(ctf_file_t *fp, ctf_id_t type, ctf_enum_f *func, void *arg) in ctf_enum_iter() 227 ctf_file_t *ofp = fp; in ctf_enum_iter() 262 ctf_type_iter(ctf_file_t *fp, ctf_type_f *func, void *arg) in ctf_type_iter() 287 ctf_type_resolve(ctf_file_t *fp, ctf_id_t type) in ctf_type_resolve() [all …]
|
H A D | ctf_create.c | 52 ctf_file_t * 60 ctf_file_t *fp; in ctf_create() 90 ctf_copy_smembers(const ctf_file_t *fp, ctf_dtdef_t *dtd, uint_t soff, in ctf_copy_smembers() 131 ctf_copy_lmembers(const ctf_file_t *fp, ctf_dtdef_t *dtd, uint_t soff, in ctf_copy_lmembers() 221 ctf_ref_inc(ctf_file_t *fp, ctf_id_t tid) in ctf_ref_inc() 239 ctf_ref_dec(ctf_file_t *fp, ctf_id_t tid) in ctf_ref_dec() 273 ctf_update(ctf_file_t *fp) in ctf_update() 275 ctf_file_t ofp, *nfp; in ctf_update() 553 bcopy(fp, &ofp, sizeof (ctf_file_t)); in ctf_update() 554 bcopy(nfp, fp, sizeof (ctf_file_t)); in ctf_update() [all …]
|
H A D | ctf_util.c | 99 ctf_strraw(const ctf_file_t *fp, uint_t name) in ctf_strraw() 111 ctf_strptr(const ctf_file_t *fp, uint_t name) in ctf_strptr() 135 ctf_file_t * 148 ctf_set_errno(ctf_file_t *fp, int err) in ctf_set_errno()
|
H A D | ctf_labels.c | 32 extract_label_info(ctf_file_t *fp, const ctf_lblent_t **ctl, uint_t *num_labels) in extract_label_info() 55 ctf_label_topmost(ctf_file_t *fp) in ctf_label_topmost() 80 ctf_label_iter(ctf_file_t *fp, ctf_label_f *func, void *arg) in ctf_label_iter() 138 ctf_label_info(ctf_file_t *fp, const char *lname, ctf_lblinfo_t *linfo) in ctf_label_info()
|
H A D | ctf_open.c | 249 init_symtab(ctf_file_t *fp, const ctf_header_t *hp, in init_symtab() 340 init_types(ctf_file_t *fp, const ctf_header_t *cth) in init_types() 717 ctf_file_t * 723 ctf_file_t *fp; in ctf_bufopen() 836 if ((fp = ctf_alloc(sizeof (ctf_file_t))) == NULL) in ctf_bufopen() 839 bzero(fp, sizeof (ctf_file_t)); in ctf_bufopen() 957 ctf_file_t * 958 ctf_dup(ctf_file_t *ofp) in ctf_dup() 960 ctf_file_t *fp; in ctf_dup() 1043 ctf_close(ctf_file_t *fp) in ctf_close() [all …]
|
H A D | ctf_lookup.c | 81 ctf_lookup_by_name(ctf_file_t *fp, const char *name) in ctf_lookup_by_name() 182 ctf_lookup_by_symbol(ctf_file_t *fp, ulong_t symidx) in ctf_lookup_by_symbol() 219 ctf_lookup_by_id(ctf_file_t **fpp, ctf_id_t type) in ctf_lookup_by_id() 221 ctf_file_t *fp = *fpp; /* caller passes in starting CTF container */ in ctf_lookup_by_id() 250 ctf_func_info(ctf_file_t *fp, ulong_t symidx, ctf_funcinfo_t *fip) in ctf_func_info() 304 ctf_func_args(ctf_file_t *fp, ulong_t symidx, uint_t argc, ctf_id_t *argv) in ctf_func_args()
|
H A D | ctf_hash.c | 95 ctf_hash_insert(ctf_hash_t *hp, ctf_file_t *fp, uint_t type, uint_t name) in ctf_hash_insert() 132 ctf_hash_define(ctf_hash_t *hp, ctf_file_t *fp, uint_t type, uint_t name) in ctf_hash_define() 145 ctf_hash_lookup(ctf_hash_t *hp, ctf_file_t *fp, const char *key, size_t len) in ctf_hash_lookup()
|
H A D | ctf_error.c | 97 ctf_errno(ctf_file_t *fp) in ctf_errno()
|
/freebsd-src/cddl/contrib/opensolaris/lib/libdtrace/common/ |
H A D | dt_module.h | 45 extern dt_module_t *dt_module_lookup_by_ctf(dtrace_hdl_t *, ctf_file_t *); 52 extern ctf_file_t *dt_module_getctf(dtrace_hdl_t *, dt_module_t *); 58 const ctf_file_t *); 59 extern ctf_file_t *dt_module_getctflib(dtrace_hdl_t *, dt_module_t *,
|
H A D | dt_xlator.h | 49 ctf_file_t *dx_src_ctfp; /* CTF container for input type */ 52 ctf_file_t *dx_dst_ctfp; /* CTF container for output type */ 79 extern dt_ident_t *dt_xlator_ident(dt_xlator_t *, ctf_file_t *, ctf_id_t);
|
H A D | dt_decl.h | 48 ctf_file_t *dd_ctfp; /* CTF container for decl's type */ 81 ctf_file_t *ds_ctfp; /* CTF container for this scope */ 122 extern void dt_scope_push(ctf_file_t *, ctf_id_t);
|
H A D | dt_print.c | 102 ctf_file_t *pa_ctfp; /* CTF container */ 117 dt_print_type_name(ctf_file_t *ctfp, ctf_id_t id, char *buf, size_t buflen) in dt_print_type_name() 239 ctf_file_t *ctfp = pap->pa_ctfp; in dt_print_int() 301 ctf_file_t *ctfp = pap->pa_ctfp; in dt_print_float() 330 ctf_file_t *ctfp = pap->pa_ctfp; in dt_print_ptr() 381 ctf_file_t *ctfp = pap->pa_ctfp; in dt_print_array() 530 ctf_file_t *ctfp = pap->pa_ctfp; in dt_print_enum() 603 ctf_file_t *ctfp = pap->pa_ctfp; in dt_format_member() 647 ctf_file_t *ctfp = pap->pa_ctfp; in dt_print_member() 744 ctf_file_t *ctfp; in dt_print_prepare()
|
H A D | dt_parser.h | 51 ctf_file_t *dn_ctfp; /* CTF type container for node's type */ 202 ctf_file_t **, ctf_id_t *); 241 extern void dt_node_type_assign(dt_node_t *, ctf_file_t *, ctf_id_t, boolean_t); 269 extern const char *dt_type_name(ctf_file_t *, ctf_id_t, char *, size_t);
|
H A D | dt_printf.h | 60 ctf_file_t *pfc_cctfp; /* CTF container for "C" defn of type */ 62 ctf_file_t *pfc_dctfp; /* CTF container for "D" defn of type */
|
H A D | dt_ident.h | 80 ctf_file_t *di_ctfp; /* CTF container for the variable data type */ 172 extern void dt_ident_type_assign(dt_ident_t *, ctf_file_t *, ctf_id_t);
|
H A D | dt_impl.h | 88 ctf_file_t *did_ctfp; /* CTF container for this type reference */ 106 ctf_file_t *da_ctfp; /* CTF container for type */ 127 ctf_file_t *dm_ctfp; /* CTF container handle */ 151 ctf_file_t **dm_libctfp; /* process library ctf pointers */
|
H A D | dt_xlator.c | 260 ctf_file_t *src_ctfp = src->dn_ctfp; in dt_xlator_lookup() 264 ctf_file_t *dst_ctfp = dst->dn_ctfp; in dt_xlator_lookup() 363 dt_xlator_ident(dt_xlator_t *dxp, ctf_file_t *ctfp, ctf_id_t type) in dt_xlator_ident()
|
H A D | dt_parser.c | 271 ctf_file_t *ctfp = tip->dtt_ctfp; in dt_type_pointer() 312 dt_type_name(ctf_file_t *ctfp, ctf_id_t type, char *buf, size_t len) in dt_type_name() 336 dt_type_promote(dt_node_t *lp, dt_node_t *rp, ctf_file_t **ofp, ctf_id_t *otype) in dt_type_promote() 338 ctf_file_t *lfp = lp->dn_ctfp; in dt_type_promote() 341 ctf_file_t *rfp = rp->dn_ctfp; in dt_type_promote() 679 dt_node_type_assign(dt_node_t *dnp, ctf_file_t *fp, ctf_id_t type, in dt_node_type_assign() 842 ctf_file_t *fp = dnp->dn_ctfp; in dt_node_is_integer() 862 ctf_file_t *fp = dnp->dn_ctfp; in dt_node_is_float() 881 ctf_file_t *fp = dnp->dn_ctfp; in dt_node_is_scalar() 902 ctf_file_t *f in dt_node_is_arith() [all...] |
H A D | dt_module.c | 542 dt_module_lookup_by_ctf(dtrace_hdl_t *dtp, ctf_file_t *ctfp) in dt_module_lookup_by_ctf() 619 ctf_file_t *fp; in dt_module_load_proc_count() 633 ctf_file_t *fp; in dt_module_load_proc_build() 726 dmp->dm_libctfp = calloc(arg.dpa_count, sizeof (ctf_file_t *)); in dt_module_load_proc() 860 ctf_file_t * 865 ctf_file_t *pfp; in dt_module_getctf() 1098 dt_module_getlibid(dtrace_hdl_t *dtp, dt_module_t *dmp, const ctf_file_t *fp) in dt_module_getlibid() 1111 ctf_file_t * 1565 ctf_file_t *fp; in dtrace_lookup_by_type()
|
H A D | dt_cg.c | 70 static ctf_file_t * 71 dt_cg_membinfo(ctf_file_t *fp, ctf_id_t type, const char *s, ctf_membinfo_t *mp) in dt_cg_membinfo() 145 dt_cg_load(dt_node_t *dnp, ctf_file_t *ctfp, ctf_id_t type) in dt_cg_load() 191 ctf_file_t *ctfp = dnp->dn_ctfp; in dt_cg_ptrsize() 241 ctf_file_t *fp, const ctf_membinfo_t *mp) in dt_cg_field_get() 333 ctf_file_t *fp, *ofp; in dt_cg_field_set() 642 ctf_file_t *ctfp = dnp->dn_ctfp; in dt_cg_prearith_op() 699 ctf_file_t *ctfp = dnp->dn_ctfp; in dt_cg_postarith_op() 1515 ctf_file_t *ctfp = dnp->dn_ctfp; in dt_cg_node() 1516 ctf_file_t *octfp; in dt_cg_node()
|
/freebsd-src/sys/cddl/contrib/opensolaris/uts/common/ctf/ |
H A D | ctf_mod.c | 87 ctf_file_t * 94 ctf_file_t * 102 ctf_write(ctf_file_t *fp, int fd) in ctf_write() 119 ctf_file_t * 123 ctf_file_t *fp = NULL; in ctf_modopen()
|
/freebsd-src/cddl/contrib/opensolaris/lib/libctf/common/ |
H A D | ctf_lib.c | 215 ctf_file_t * 219 ctf_file_t *fp = NULL; in ctf_fdopen() 470 ctf_file_t * 473 ctf_file_t *fp; in ctf_open() 492 ctf_write(ctf_file_t *fp, int fd) in ctf_write()
|
/freebsd-src/cddl/lib/libdtrace/ |
H A D | libproc_compat.h | 50 #define Pname_to_ctf(p, obj) (ctf_file_t *)proc_name2ctf(p, obj)
|