Home
last modified time | relevance | path

Searched refs:ulong_t (Results 1 – 25 of 77) sorted by relevance

1234

/netbsd/src/external/cddl/osnet/dist/lib/libdtrace/common/
Ddt_regset.c43 dt_regset_create(ulong_t nregs) in dt_regset_create()
45 ulong_t n = BT_BITOUL(nregs); in dt_regset_create()
51 drp->dr_bitmap = calloc(n, sizeof (ulong_t)); in dt_regset_create()
73 bzero(drp->dr_bitmap, sizeof (ulong_t) * BT_BITOUL(drp->dr_size)); in dt_regset_reset()
98 ulong_t nbits = drp->dr_size - 1; in dt_regset_alloc()
99 ulong_t maxw = nbits >> BT_ULSHIFT; in dt_regset_alloc()
100 ulong_t wx; in dt_regset_alloc()
108 ulong_t maxb = (wx == maxw) ? nbits & BT_ULMASK : BT_NBIPUL - 1; in dt_regset_alloc()
109 ulong_t word = drp->dr_bitmap[wx]; in dt_regset_alloc()
110 ulong_t bit, bx; in dt_regset_alloc()
Ddt_strtab.h40 ulong_t str_buf; /* index of string data buffer */
48 ulong_t str_hashsz; /* size of hash bucket array */
51 ulong_t str_nbufs; /* size of buffer pointer array */
53 ulong_t str_nstrs; /* total number of strings in strtab */
66 extern ulong_t dt_strtab_hash(const char *, size_t *);
Ddt_strtab.c105 ulong_t i; in dt_strtab_destroy()
125 ulong_t
128 ulong_t g, h = 0; in dt_strtab_hash()
151 ulong_t b = hp->str_buf; in dt_strtab_compare()
178 ulong_t old_n = sp->str_nbufs; in dt_strtab_copyin()
180 ulong_t b = sp->str_nbufs - 1; in dt_strtab_copyin()
214 ulong_t h; in dt_strtab_index()
235 ulong_t h; in dt_strtab_insert()
281 ulong_t i; in dt_strtab_write()
Ddt_print.c107 static int dt_print_member(const char *, ctf_id_t, ulong_t, int, void *);
155 print_bitfield(dt_printarg_t *pap, ulong_t off, ctf_encoding_t *ep) in print_bitfield()
229 dt_print_int(ctf_id_t base, ulong_t off, dt_printarg_t *pap) in dt_print_int()
283 dt_print_float(ctf_id_t base, ulong_t off, dt_printarg_t *pap) in dt_print_float()
314 dt_print_ptr(ctf_id_t base, ulong_t off, dt_printarg_t *pap) in dt_print_ptr()
366 dt_print_array(ctf_id_t base, ulong_t off, dt_printarg_t *pap) in dt_print_array()
465 dt_print_structlike(ctf_id_t id, ulong_t off, dt_printarg_t *pap) in dt_print_structlike()
476 dt_print_enum(ctf_id_t base, ulong_t off, dt_printarg_t *pap) in dt_print_enum()
518 dt_print_tag(ctf_id_t base, ulong_t off, dt_printarg_t *pap) in dt_print_tag()
523 typedef void dt_printarg_f(ctf_id_t, ulong_t, dt_printarg_t *);
[all …]
Ddt_ident.h83 ulong_t di_gen; /* generation number (pass that created me) */
124 ulong_t dh_nelems; /* number of identifiers in hash table */
125 ulong_t dh_hashsz; /* number of entries in dh_buckets array */
148 extern ulong_t dt_idhash_size(const dt_idhash_t *);
153 const dt_idops_t *, void *, ulong_t);
166 dtrace_attribute_t, uint_t, const dt_idops_t *, void *, ulong_t);
Ddt_regset.h42 ulong_t dr_size; /* number of registers in set */
43 ulong_t *dr_bitmap; /* bitmap of active registers */
46 extern dt_regset_t *dt_regset_create(ulong_t);
Ddt_provider.h46 ulong_t *pv_xrefs; /* translator reference bitmap */
47 ulong_t pv_xrmax; /* number of valid bits in pv_xrefs */
48 ulong_t pv_gen; /* generation # that created me */
Ddt_impl.h241 ulong_t dt_gen; /* compiler generation number */
648 extern ulong_t dt_popc(ulong_t);
649 extern ulong_t dt_popcb(const ulong_t *, ulong_t);
Ddt_ident.c681 ulong_t i; in dt_idhash_destroy()
706 ulong_t i; in dt_idhash_update()
728 ulong_t h = dt_strtab_hash(name, &len) % dhp->dh_hashsz; in dt_idhash_lookup()
752 ulong_t
767 const dt_idops_t *ops, void *iarg, ulong_t gen) in dt_idhash_insert()
770 ulong_t h; in dt_idhash_insert()
796 ulong_t h; in dt_idhash_xinsert()
816 ulong_t h = dt_strtab_hash(key->di_name, &len) % dhp->dh_hashsz; in dt_idhash_delete()
854 ulong_t i, j, n; in dt_idhash_iter()
909 const dt_idops_t *ops, void *iarg, ulong_t gen) in dt_ident_create()
Ddt_proc.h86 ulong_t dbp_instr; /* saved instruction from breakpoint */
88 ulong_t dbp_hits; /* count of breakpoint hits for debug */
Ddt_subr.c846 ulong_t
847 dt_popc(ulong_t x) in dt_popc()
873 ulong_t
874 dt_popcb(const ulong_t *bp, ulong_t n) in dt_popcb()
876 ulong_t maxb = n & BT_ULMASK; in dt_popcb()
877 ulong_t maxw = n >> BT_ULSHIFT; in dt_popcb()
878 ulong_t w, popc = 0; in dt_popcb()
/netbsd/src/external/cddl/osnet/dist/uts/common/sys/
Dbitmap.h107 (BT_BITOUL(nbits) * sizeof (ulong_t))
149 extern index_t bt_availbit(ulong_t *bitmap, size_t nbits);
154 extern int bt_gethighbit(ulong_t *mapp, int wx);
155 extern int bt_range(ulong_t *bitmap, size_t *pos1, size_t *pos2,
162 extern int highbit(ulong_t);
164 extern int lowbit(ulong_t);
165 extern int bt_getlowbit(ulong_t *bitmap, size_t start, size_t stop);
166 extern void bt_copy(ulong_t *, ulong_t *, ulong_t);
171 extern int odd_parity(ulong_t);
Dctf_api.h70 ulong_t cts_type; /* section type (ELF SHT_... value) */
71 ulong_t cts_flags; /* section flags (ELF SHF_... value) */
95 ulong_t ctm_offset; /* offset of member in bits */
147 typedef int ctf_visit_f(const char *, ctf_id_t, ulong_t, int, void *);
148 typedef int ctf_member_f(const char *, ctf_id_t, ulong_t, void *);
175 extern int ctf_func_info(ctf_file_t *, ulong_t, ctf_funcinfo_t *);
176 extern int ctf_func_args(ctf_file_t *, ulong_t, uint_t, ctf_id_t *);
179 extern ctf_id_t ctf_lookup_by_symbol(ctf_file_t *, ulong_t);
Derrorq.h58 ulong_t, size_t, uint_t, uint_t);
61 ulong_t, size_t, uint_t, uint_t);
Dfasttrap_impl.h177 ulong_t fth_nent; /* power-of-2 num. of entries */
178 ulong_t fth_mask; /* fth_nent - 1 */
/netbsd/src/external/cddl/osnet/dist/tools/ctf/cvt/
Dstrtab.c74 ulong_t i; in strtab_destroy()
90 static ulong_t
93 ulong_t g, h = 0; in strtab_hash()
113 ulong_t b = hp->str_buf; in strtab_compare()
139 ulong_t b = sp->str_nbufs - 1; in strtab_copyin()
163 ulong_t h; in strtab_insert()
215 ulong_t i; in strtab_write()
238 ulong_t i; in strtab_print()
243 ulong_t b = hp->str_buf; in strtab_print()
246 (void) printf("[%lu] %lu \"", (ulong_t)hp->str_off, b); in strtab_print()
Dstrtab.h40 ulong_t str_buf; /* index of string data buffer */
48 ulong_t str_hashsz; /* size of hash bucket array */
51 ulong_t str_nbufs; /* size of buffer pointer array */
53 ulong_t str_nstrs; /* total number of strings in strtab */
/netbsd/src/external/cddl/osnet/dist/tools/ctf/dump/
Ddump.c80 ulong_t s_ndata; /* total number of data objects */
81 ulong_t s_nfunc; /* total number of functions */
82 ulong_t s_nargs; /* total number of function arguments */
83 ulong_t s_argmax; /* longest argument list */
84 ulong_t s_ntypes; /* total number of types */
85 ulong_t s_types[16]; /* number of types by kind */
86 ulong_t s_nsmem; /* total number of struct members */
87 ulong_t s_nsbytes; /* total size of all structs */
88 ulong_t s_smmax; /* largest struct in terms of members */
89 ulong_t s_sbmax; /* largest struct in terms of bytes */
[all …]
/netbsd/src/external/cddl/osnet/dist/common/ctf/
Dctf_impl.h154 ulong_t dmd_offset; /* offset of this member in bits (for sou) */
206 ulong_t ctf_nsyms; /* number of entries in symtab xlate table */
209 ulong_t ctf_typemax; /* maximum valid type ID number */
220 ulong_t ctf_dthashlen; /* size of dynamic type hash bucket array */
223 ulong_t ctf_dtnextid; /* next dynamic type id to assign */
224 ulong_t ctf_dtoldid; /* oldest id that has been committed */
312 ssize_t *incrementp, uint_t *typep, ulong_t *offsetp, const char **namep);
317 extern int ctf_hash_create(ctf_hash_t *, ulong_t);
Dctf_hash.c38 ctf_hash_create(ctf_hash_t *hp, ulong_t nelems) in ctf_hash_create()
78 static ulong_t
81 ulong_t g, h = 0; in ctf_hash_compute()
103 ulong_t h; in ctf_hash_insert()
155 ulong_t h = ctf_hash_compute(key, len) % hp->h_nbuckets; in ctf_hash_lookup()
Dctf_types.c132 ssize_t *incrementp, uint_t *typep, ulong_t *offsetp, const char **namep) in ctf_get_ctm_info()
135 ulong_t offset; in ctf_get_ctm_info()
151 offset = (ulong_t)CTF_LMEM_OFFSET(ctlm); in ctf_get_ctm_info()
167 offset = (ulong_t)CTF_LMEM_OFFSET(ctlm); in ctf_get_ctm_info()
211 ulong_t offset; in ctf_member_iter()
795 _ctf_member_info(ctf_file_t *fp, ctf_id_t type, const char *name, ulong_t off, in _ctf_member_info()
819 ulong_t offset; in _ctf_member_info()
977 const char *name, ulong_t offset, int depth) in ctf_type_rvisit()
1004 ulong_t offset1; in ctf_type_rvisit()
Dctf_lookup.c185 ctf_lookup_by_symbol(ctf_file_t *fp, ulong_t symidx) in ctf_lookup_by_symbol()
253 ctf_func_info(ctf_file_t *fp, ulong_t symidx, ctf_funcinfo_t *fip) in ctf_func_info()
307 ctf_func_args(ctf_file_t *fp, ulong_t symidx, uint_t argc, ctf_id_t *argv) in ctf_func_args()
/netbsd/src/usr.bin/fstat/
Dzfs_znode.h43 #define ulong_t unsigned long macro
55 ulong_t avl_numnodes;
/netbsd/src/external/cddl/osnet/dist/lib/libctf/common/
Dctf_lib.c57 int (*z_uncompress)(uchar_t *, ulong_t *, const uchar_t *, ulong_t);
106 …zlib.z_uncompress = (int (*)(uchar_t *, ulong_t *, const uchar_t *, ulong_t)) dlsym(zlib.z_dlp, "u… in ctf_zopen()
132 return (zlib.z_uncompress(dst, (ulong_t *)dstlen, src, srclen)); in z_uncompress()
/netbsd/src/external/cddl/osnet/dist/lib/libdtrace/arm/
Ddt_isadep.c130 fasttrap_probe_spec_t *ftp, const GElf_Sym *symp, ulong_t off) in dt_pid_create_offset_probe()
155 ulong_t i; in dt_pid_create_glob_offset_probes()

1234