/bionic/libc/bionic/ |
D | debug_mapinfo.h | 36 uintptr_t start; 37 uintptr_t end; 38 uintptr_t offset; 39 uintptr_t load_base; 46 __LIBC_HIDDEN__ const mapinfo_t* mapinfo_find(mapinfo_t* mi, uintptr_t pc, uintptr_t* rel_pc);
|
D | brk.cpp | 59 uintptr_t old_brk = reinterpret_cast<uintptr_t>(__bionic_brk); in sbrk() 60 if ((increment > 0 && static_cast<uintptr_t>(increment) > (UINTPTR_MAX - old_brk)) || in sbrk() 61 (increment < 0 && static_cast<uintptr_t>(-increment) > old_brk)) { in sbrk()
|
D | debug_stacktrace.cpp | 67 uintptr_t* frames; 72 stack_crawl_state_t(uintptr_t* frames, size_t max_depth) in stack_crawl_state_t() 80 uintptr_t ip = _Unwind_GetIP(context); in trace_function() 110 __LIBC_HIDDEN__ int get_backtrace(uintptr_t* frames, size_t max_depth) { in get_backtrace() 118 __LIBC_HIDDEN__ void log_backtrace(uintptr_t* frames, size_t frame_count) { in log_backtrace() 121 uintptr_t self_bt[16]; in log_backtrace() 131 uintptr_t offset = 0; in log_backtrace() 136 offset = reinterpret_cast<uintptr_t>(info.dli_saddr); in log_backtrace() 140 uintptr_t rel_pc = offset; in log_backtrace()
|
D | debug_stacktrace.h | 37 __LIBC_HIDDEN__ int get_backtrace(uintptr_t* stack_frames, size_t max_depth); 38 __LIBC_HIDDEN__ void log_backtrace(uintptr_t* stack_frames, size_t frame_count);
|
D | pthread_key.cpp | 56 static inline bool SeqOfKeyInUse(uintptr_t seq) { in SeqOfKeyInUse() 80 uintptr_t seq = atomic_load_explicit(&key_map[i].seq, memory_order_relaxed); in pthread_key_clean_all() 120 uintptr_t seq = atomic_load_explicit(&key_map[i].seq, memory_order_relaxed); in pthread_key_create() 123 atomic_store(&key_map[i].key_destructor, reinterpret_cast<uintptr_t>(key_destructor)); in pthread_key_create() 142 uintptr_t seq = atomic_load_explicit(&key_map[key].seq, memory_order_relaxed); in pthread_key_delete() 156 uintptr_t seq = atomic_load_explicit(&key_map[key].seq, memory_order_relaxed); in pthread_getspecific() 174 uintptr_t seq = atomic_load_explicit(&key_map[key].seq, memory_order_relaxed); in pthread_setspecific()
|
D | debug_mapinfo.cpp | 48 uintptr_t start; in parse_maps_line() 49 uintptr_t end; in parse_maps_line() 50 uintptr_t offset; in parse_maps_line() 116 static inline bool get_val(mapinfo_t* mi, uintptr_t addr, T* store) { in get_val() 131 uintptr_t addr = mi->start; in mapinfo_read_loadbase() 160 __LIBC_HIDDEN__ const mapinfo_t* mapinfo_find(mapinfo_t* mi, uintptr_t pc, uintptr_t* rel_pc) { in mapinfo_find()
|
D | malloc_debug_leak.cpp | 90 static uint32_t get_hash(uintptr_t* backtrace, size_t numEntries) { in get_hash() 103 uintptr_t* backtrace, size_t numEntries, size_t size) { in find_entry() 113 !memcmp(backtrace, entry->backtrace, numEntries * sizeof(uintptr_t))) { in find_entry() 123 static HashEntry* record_backtrace(uintptr_t* backtrace, size_t numEntries, size_t size) { in record_backtrace() 143 …atic_cast<HashEntry*>(g_malloc_dispatch->malloc(sizeof(HashEntry) + numEntries*sizeof(uintptr_t))); in record_backtrace() 154 memcpy(entry->backtrace, backtrace, numEntries * sizeof(uintptr_t)); in record_backtrace() 232 …memset(reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(newMem)+oldSize), CHK_FILL_FREE, newSiz… in fill_realloc() 306 uintptr_t backtrace[BACKTRACE_SIZE]; in leak_malloc() 404 return reinterpret_cast<uintptr_t>(header) + ret - reinterpret_cast<uintptr_t>(mem); in leak_malloc_usable_size() 466 uintptr_t ptr = reinterpret_cast<uintptr_t>(base); in leak_memalign()
|
D | clone.cpp | 65 uintptr_t child_stack_addr = reinterpret_cast<uintptr_t>(child_stack); in clone()
|
D | poll.cpp | 104 uintptr_t ss_addr; in pselect() 108 extra_data.ss_addr = reinterpret_cast<uintptr_t>(kernel_ss_ptr); in pselect()
|
D | libc_init_common.cpp | 65 uintptr_t __stack_chk_guard = 0; 116 __stack_chk_guard = *reinterpret_cast<uintptr_t*>(getauxval(AT_RANDOM)); in __libc_init_common() 344 const Dtor minus1 = reinterpret_cast<Dtor>(static_cast<uintptr_t>(-1)); in __libc_fini()
|
D | dl_iterate_phdr_static.cpp | 53 …exe_info.dlpi_phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<uintptr_t>(ehdr) + ehdr->e_pho… in dl_iterate_phdr()
|
D | malloc_debug_common.h | 66 uintptr_t backtrace[0];
|
D | malloc_debug_qemu.cpp | 402 static inline void notify_qemu(uint32_t code, uintptr_t val) { in notify_qemu() 404 *(volatile uintptr_t*)((uintptr_t)qtrace + ((code - 1024) << 2)) = val; in notify_qemu() 415 notify_qemu(TRACE_DEV_REG_PRINT_USER_STR, reinterpret_cast<uintptr_t>(str)); in notify_qemu_string() 440 notify_qemu(TRACE_DEV_REG_MALLOC, reinterpret_cast<uintptr_t>(desc)); in notify_qemu_malloc() 459 notify_qemu(TRACE_DEV_REG_FREE_PTR, reinterpret_cast<uintptr_t>(&free_desc)); in notify_qemu_free() 485 notify_qemu(TRACE_DEV_REG_QUERY_MALLOC, reinterpret_cast<uintptr_t>(&query)); in query_qemu_malloc_info()
|
/bionic/linker/tests/ |
D | linker_memory_allocator_test.cpp | 129 ASSERT_EQ(reinterpret_cast<uintptr_t>(ptr1)+16, reinterpret_cast<uintptr_t>(ptr2)); in TEST() 149 reinterpret_cast<uintptr_t>(ptr1)/kPageSize != reinterpret_cast<uintptr_t>(ptr2)/kPageSize); in TEST() 165 ASSERT_EQ(reinterpret_cast<uintptr_t>(ptr1) + 1024, reinterpret_cast<uintptr_t>(ptr2)); in TEST()
|
/bionic/libc/private/ |
D | bionic_ssp.h | 38 extern uintptr_t __stack_chk_guard;
|
D | KernelArgumentBlock.h | 36 uintptr_t* args = reinterpret_cast<uintptr_t*>(raw_args); in KernelArgumentBlock()
|
/bionic/libc/arch-x86_64/bionic/ |
D | __set_tls.c | 36 return __arch_prctl(ARCH_SET_FS, (uintptr_t) ptr); in __set_tls()
|
/bionic/libc/upstream-openbsd/android/include/ |
D | openbsd-compat.h | 59 #define ALIGNBYTES (sizeof(uintptr_t) - 1) 60 #define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) &~ ALIGNBYTES)
|
/bionic/linker/arch/x86/ |
D | begin.c | 37 void* raw_args = (void*) ((uintptr_t) __builtin_frame_address(0) + sizeof(void*)); in _start()
|
/bionic/tests/ |
D | utils.h | 25 uintptr_t addr_start; 26 uintptr_t addr_end;
|
D | unistd_test.cpp | 37 static void* page_align(uintptr_t addr) { in page_align() 38 uintptr_t mask = sysconf(_SC_PAGE_SIZE) - 1; in page_align() 46 void* new_break = reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(initial_break) + 1); in TEST() 50 new_break = page_align(reinterpret_cast<uintptr_t>(initial_break) + sysconf(_SC_PAGE_SIZE)); in TEST() 86 __bionic_brk = reinterpret_cast<void*>(static_cast<uintptr_t>(PTRDIFF_MAX) + 2); in TEST() 93 __bionic_brk = reinterpret_cast<void*>(static_cast<uintptr_t>(PTRDIFF_MAX)); in TEST() 98 __bionic_brk = reinterpret_cast<void*>(static_cast<uintptr_t>(PTRDIFF_MAX) - 1); in TEST() 114 uintptr_t cur_brk = reinterpret_cast<uintptr_t>(get_brk()); in TEST() 115 if (cur_brk < static_cast<uintptr_t>(-(SBRK_MIN+1))) { in TEST() 124 uintptr_t overflow_brk = static_cast<uintptr_t>(SBRK_MAX) + 2; in TEST() [all …]
|
/bionic/libc/arch-common/bionic/ |
D | crtbegin.c | 52 void* raw_args = (void*) ((uintptr_t) __builtin_frame_address(0) + sizeof(void*)); in _start()
|
/bionic/libc/arch-arm/generic/bionic/ |
D | strlen.c | 40 uintptr_t i; in strlen()
|
/bionic/libc/arch-x86/bionic/ |
D | __set_tls.c | 48 result->base_addr = (uintptr_t) base_addr; in __init_user_desc()
|
/bionic/libc/stdio/ |
D | findfp.c | 44 #define ALIGNBYTES (sizeof(uintptr_t) - 1) 45 #define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) &~ ALIGNBYTES)
|