| /third_party/ulib/musl/sanitizers/ |
| A D | asan-stubs.c | 32 __WEAK void __asan_set_shadow_##xx(uintptr_t addr, uintptr_t size) { \ 71 TRAP_STUB(void __asan_report_load_n(uintptr_t addr, size_t size)) 73 TRAP_STUB(void __asan_report_exp_load_n(uintptr_t addr, size_t size, 76 TRAP_STUB(void __asan_report_store_n(uintptr_t addr, size_t size)) 88 TRAP_STUB(uintptr_t __asan_stack_malloc_##class_id(uintptr_t size)) \ 103 TRAP_STUB(void __asan_alloca_poison(uintptr_t addr, uintptr_t size)) 104 TRAP_STUB(void __asan_allocas_unpoison(uintptr_t top, uintptr_t bottom)) 118 TRAP_STUB(void __asan_register_elf_globals(uintptr_t flag, 119 uintptr_t start, uintptr_t stop)) 120 TRAP_STUB(void __asan_unregister_elf_globals(uintptr_t flag, [all …]
|
| A D | __asan_early_init.c | 30 uintptr_t top = info.base + info.len; in __asan_early_init() 35 int bit = (sizeof(uintptr_t) * CHAR_BIT) - __builtin_clzl(top); in __asan_early_init() 36 if (top != (uintptr_t)1 << bit) in __asan_early_init() 37 top = (uintptr_t)1 << (bit + 1); in __asan_early_init() 49 uintptr_t shadow_addr; in __asan_early_init()
|
| /third_party/ulib/jemalloc/src/ |
| A D | extent_dss.c | 78 if ((uintptr_t)max_prev > (uintptr_t)max_cur) { in extent_dss_max_update() 137 gap_addr = (void *)(PAGE_CEILING((uintptr_t)max_cur)); in extent_alloc_dss() 138 ret = (void *)ALIGNMENT_CEILING((uintptr_t)gap_addr, in extent_alloc_dss() 140 gap_size = (uintptr_t)ret - (uintptr_t)gap_addr; in extent_alloc_dss() 146 dss_next = (void *)((uintptr_t)ret + size); in extent_alloc_dss() 147 if ((uintptr_t)ret < (uintptr_t)max_cur || in extent_alloc_dss() 148 (uintptr_t)dss_next < (uintptr_t)max_cur) in extent_alloc_dss() 209 return ((uintptr_t)addr >= (uintptr_t)dss_base && (uintptr_t)addr < in extent_in_dss_helper() 210 (uintptr_t)max); in extent_in_dss_helper() 228 if ((uintptr_t)addr_a < (uintptr_t)dss_base && (uintptr_t)addr_b < in extent_dss_mergeable() [all …]
|
| A D | pages.c | 36 static uintptr_t pages_base; 64 uintptr_t addr = (uintptr_t)start; in fuchsia_pages_map() 72 uintptr_t subvmar_base; in fuchsia_pages_map() 83 uintptr_t ptr = 0; in fuchsia_pages_map() 97 uintptr_t ptr = (uintptr_t)addr; in fuchsia_pages_free() 108 pages_unmap((void *)((uintptr_t)ret + size), trailsize); in fuchsia_pages_trim() 197 void *ret = (void *)((uintptr_t)addr + leadsize); in pages_trim() 221 pages_unmap((void *)((uintptr_t)ret + size), trailsize); in pages_trim()
|
| /third_party/ulib/jemalloc/include/jemalloc/internal/ |
| A D | rtree_inlines.h | 8 uintptr_t rtree_subkey(rtree_t *rtree, uintptr_t key, unsigned level); 55 uintptr_t key) in rtree_ctx_start_level() 85 return ((uintptr_t)node != (uintptr_t)0); in rtree_node_valid() 137 extent = (extent_t *)((uintptr_t)extent & ~((uintptr_t)0x1)); in rtree_elm_read() 338 assert(((uintptr_t)extent & (uintptr_t)0x1) == (uintptr_t)0x0); in rtree_write() 379 s = (void *)((uintptr_t)extent | (uintptr_t)0x1); in rtree_elm_acquire() 394 assert(((uintptr_t)elm->pun & (uintptr_t)0x1) == (uintptr_t)0x1); in rtree_elm_read_acquired() 396 assert(((uintptr_t)extent & (uintptr_t)0x1) == (uintptr_t)0x0); in rtree_elm_read_acquired() 408 assert(((uintptr_t)extent & (uintptr_t)0x1) == (uintptr_t)0x0); in rtree_elm_write_acquired() 409 assert(((uintptr_t)elm->pun & (uintptr_t)0x1) == (uintptr_t)0x1); in rtree_elm_write_acquired() [all …]
|
| A D | prof_inlines.h | 114 if (unlikely((uintptr_t)tdata <= (uintptr_t)PROF_TDATA_STATE_MAX)) in prof_sample_accum_update() 146 ret = (prof_tctx_t *)(uintptr_t)1U; in prof_alloc_prep() 164 if (unlikely((uintptr_t)tctx > (uintptr_t)1U)) in prof_malloc() 168 (prof_tctx_t *)(uintptr_t)1U); in prof_malloc() 180 assert(ptr != NULL || (uintptr_t)tctx <= (uintptr_t)1U); in prof_realloc() 193 tctx = (prof_tctx_t *)(uintptr_t)1U; in prof_realloc() 197 sampled = ((uintptr_t)tctx > (uintptr_t)1U); in prof_realloc() 198 old_sampled = ((uintptr_t)old_tctx > (uintptr_t)1U); in prof_realloc() 206 (prof_tctx_t *)(uintptr_t)1U); in prof_realloc() 217 (uintptr_t)1U); in prof_realloc() [all …]
|
| A D | tcache_types.h | 14 #define TCACHE_STATE_DISABLED ((tcache_t *)(uintptr_t)1) 15 #define TCACHE_STATE_REINCARNATED ((tcache_t *)(uintptr_t)2) 16 #define TCACHE_STATE_PURGATORY ((tcache_t *)(uintptr_t)3)
|
| A D | extent_inlines.h | 51 return (rtree_read(tsdn, &extents_rtree, rtree_ctx, (uintptr_t)ptr, in extent_lookup() 93 return ((void *)((uintptr_t)extent_base_get(extent) - PAGE)); in extent_before_get() 99 return ((void *)((uintptr_t)extent_base_get(extent) + in extent_last_get() 106 return ((void *)((uintptr_t)extent_base_get(extent) + in extent_past_get() 190 uintptr_t random_offset = ((uintptr_t)r) << (LG_PAGE - in extent_addr_randomize() 192 extent->e_addr = (void *)((uintptr_t)extent->e_addr + in extent_addr_randomize() 292 uintptr_t a_addr = (uintptr_t)extent_addr_get(a); in extent_ad_comp() 293 uintptr_t b_addr = (uintptr_t)extent_addr_get(b); in extent_ad_comp()
|
| A D | prof_types.h | 51 #define PROF_TDATA_STATE_REINCARNATED ((prof_tdata_t *)(uintptr_t)1) 52 #define PROF_TDATA_STATE_PURGATORY ((prof_tdata_t *)(uintptr_t)2)
|
| A D | pages_types.h | 12 ((void *)((uintptr_t)(a) & ~PAGE_MASK)) 22 ((void *)((uintptr_t)(a) & ~HUGEPAGE_MASK))
|
| /third_party/ulib/backtrace/include/backtrace/ |
| A D | backtrace.h | 92 typedef int backtrace_so_callback (const char *name, uintptr_t addr, void *data); 115 uintptr_t base); 126 typedef int (*backtrace_full_callback) (void *data, uintptr_t pc, 149 typedef int (*backtrace_simple_callback) (void *data, uintptr_t pc); 180 extern int backtrace_pcinfo (struct backtrace_state *state, uintptr_t pc, 191 typedef void (*backtrace_syminfo_callback) (void *data, uintptr_t pc, 193 uintptr_t symval, 194 uintptr_t symsize); 206 extern int backtrace_syminfo (struct backtrace_state *state, uintptr_t addr,
|
| /third_party/ulib/musl/src/string/ |
| A D | memmove.c | 18 if ((uintptr_t)s % WS == (uintptr_t)d % WS) { in memmove() 19 while ((uintptr_t)d % WS) { in memmove() 30 if ((uintptr_t)s % WS == (uintptr_t)d % WS) { in memmove() 31 while ((uintptr_t)(d + n) % WS) { in memmove()
|
| A D | memccpy.c | 21 ((uintptr_t)s & ALIGN) == ((uintptr_t)d & ALIGN)) { in memccpy() 22 for (; ((uintptr_t)s & ALIGN) && n && (*d = *s) != c; n--, s++, d++) in memccpy() 24 if ((uintptr_t)s & ALIGN) in memccpy()
|
| A D | stpcpy.c | 16 if ((uintptr_t)s % ALIGN == (uintptr_t)d % ALIGN) { in __stpcpy() 17 for (; (uintptr_t)s % ALIGN; s++, d++) in __stpcpy()
|
| A D | stpncpy.c | 16 ((uintptr_t)s & ALIGN) == ((uintptr_t)d & ALIGN)) { in __stpncpy() 17 for (; ((uintptr_t)s & ALIGN) && n && (*d = *s); n--, s++, d++) in __stpncpy()
|
| A D | strlcpy.c | 21 if (((uintptr_t)s & ALIGN) == ((uintptr_t)d & ALIGN)) { in strlcpy() 22 for (; ((uintptr_t)s & ALIGN) && n && (*d = *s); n--, s++, d++) in strlcpy()
|
| /third_party/ulib/musl/src/internal/ |
| A D | fdpic_crt.h | 3 __attribute__((__visibility__("hidden"))) void* __fdpic_fixup(void* map, uintptr_t* a, in __fdpic_fixup() 4 uintptr_t* z) { in __fdpic_fixup() 14 uintptr_t addr, p_vaddr, p_memsz; in __fdpic_fixup() 22 uintptr_t* r = (uintptr_t*)(*a + lm->segs[rseg].addr - lm->segs[rseg].p_vaddr); in __fdpic_fixup()
|
| /third_party/ulib/jemalloc/test/unit/ |
| A D | rtree.c | 42 for (i = 1; i <= (sizeof(uintptr_t) << 3); i++) { in TEST_BEGIN() 83 uintptr_t key = (uintptr_t)gen_rand64(sfmt); in thd_start() 150 for (i = 1; i <= (sizeof(uintptr_t) << 3); i++) { in TEST_BEGIN() 164 ~((uintptr_t)0), &extent_b), in TEST_BEGIN() 167 ~((uintptr_t)0), true), &extent_b, in TEST_BEGIN() 183 for (i = 1; i < (sizeof(uintptr_t) << 3); i++) { in TEST_BEGIN() 184 uintptr_t keys[] = {0, 1, in TEST_BEGIN() 185 (((uintptr_t)1) << (sizeof(uintptr_t)*8-i)) - 1}; in TEST_BEGIN() 208 (((uintptr_t)1) << (sizeof(uintptr_t)*8-i)), false), in TEST_BEGIN() 231 uintptr_t keys[NSET]; in TEST_BEGIN() [all …]
|
| A D | tsd.c | 58 data_t d = (data_t)(uintptr_t)arg; in malloc_tsd_externs() 72 assert_x_eq(*data_tsd_get(true), (data_t)(uintptr_t)arg, in malloc_tsd_externs() 81 thd_start((void *)(uintptr_t)0xa5f3e329); in TEST_BEGIN()
|
| /third_party/dev/ethernet/e1000/ |
| A D | e1000_osdep.h | 103 uintptr_t membase; 104 uintptr_t iobase; 105 uintptr_t flashbase; 113 #define e1000_writeb(v, a) writeb((v), (volatile void*)(uintptr_t)(a)) 114 #define e1000_writew(v, a) writew((v), (volatile void*)(uintptr_t)(a)) 115 #define e1000_writel(v, a) writel((v), (volatile void*)(uintptr_t)(a)) 116 #define e1000_writell(v, a) writell((v), (volatile void*)(uintptr_t)(a)) 118 #define e1000_readb(a) readb((const volatile void*)(uintptr_t)(a)) 119 #define e1000_readw(a) readw((const volatile void*)(uintptr_t)(a)) 120 #define e1000_readl(a) readl((const volatile void*)(uintptr_t)(a)) [all …]
|
| /third_party/ulib/musl/include/zircon/ |
| A D | sanitizer.h | 41 uintptr_t shadow_base; 42 uintptr_t shadow_limit; 43 uintptr_t memory_limit; 91 zx_status_t __sanitizer_change_code_protection(uintptr_t addr, size_t len,
|
| /third_party/ulib/musl/src/thread/ |
| A D | allocate.c | 62 uintptr_t tp = (uintptr_t)mem + PTHREAD_TP_OFFSET; in copy_tls() 78 mem -= (uintptr_t)mem & (libc.tls_align - 1); in copy_tls() 99 uintptr_t addr; in map_block() 196 (uintptr_t)tcb_region.iov_base, tcb_region.iov_len); in __allocate_thread() 205 (uintptr_t)td->safe_stack_region.iov_base, in __allocate_thread() 208 (uintptr_t)tcb_region.iov_base, tcb_region.iov_len); in __allocate_thread() 216 td->head.tp = (uintptr_t)pthread_to_tp(td); in __allocate_thread() 219 (uintptr_t)td->unsafe_stack.iov_base + td->unsafe_stack.iov_len; in __allocate_thread()
|
| /third_party/ulib/musl/src/mman/ |
| A D | munmap.c | 9 uintptr_t ptr = (uintptr_t)start; in __munmap()
|
| /third_party/ulib/musl/src/temp/ |
| A D | __randname.c | 14 r = ts.tv_nsec * 65537 ^ ((uintptr_t)&ts / 16 + (uintptr_t) template); in __randname()
|
| /third_party/ulib/backtrace/ |
| A D | btest.c | 88 uintptr_t *addrs; 99 uintptr_t val, size; 166 callback_one (void *vdata, uintptr_t pc ATTRIBUTE_UNUSED, in callback_one() 217 callback_two (void *vdata, uintptr_t pc) in callback_two() 252 const char *symname, uintptr_t symval, in callback_three() 253 uintptr_t symsize) in callback_three() 417 uintptr_t addrs[20]; in f23() 567 uintptr_t addrs[20]; in f33() 632 uintptr_t addr = (uintptr_t) &global; in test5() 666 else if (symdata.val != (uintptr_t) &global) in test5() [all …]
|