/bionic/libc/malloc_debug/ |
D | MapData.h | 41 MapEntry(uintptr_t start, uintptr_t end, uintptr_t offset, const char* name, size_t name_len) in MapEntry() 44 MapEntry(uintptr_t pc) : start(pc), end(pc) {} in MapEntry() 46 uintptr_t start; 47 uintptr_t end; 48 uintptr_t offset; 49 uintptr_t load_base; 67 const MapEntry* find(uintptr_t pc, uintptr_t* rel_pc = nullptr);
|
D | DebugData.h | 56 uintptr_t value = reinterpret_cast<uintptr_t>(header); in GetPointer() 61 uintptr_t value = reinterpret_cast<uintptr_t>(pointer); in GetHeader() 66 uintptr_t value = reinterpret_cast<uintptr_t>(header); in GetAllocBacktrace() 71 uintptr_t value = reinterpret_cast<uintptr_t>(header); in GetFrontGuard() 76 uintptr_t value = reinterpret_cast<uintptr_t>(GetPointer(header)); in GetRearGuard()
|
D | backtrace.h | 39 size_t backtrace_get(uintptr_t* frames, size_t frame_count); 40 void backtrace_log(const uintptr_t* frames, size_t frame_count); 41 std::string backtrace_string(const uintptr_t* frames, size_t frame_count);
|
D | backtrace.cpp | 57 uintptr_t ip = _Unwind_GetIP(context); in find_current_map() 74 uintptr_t* frames; 78 stack_crawl_state_t(uintptr_t* frames, size_t frame_count) in stack_crawl_state_t() 85 uintptr_t ip = _Unwind_GetIP(context); in trace_function() 128 size_t backtrace_get(uintptr_t* frames, size_t frame_count) { in backtrace_get() 134 std::string backtrace_string(const uintptr_t* frames, size_t frame_count) { in backtrace_string() 138 uintptr_t offset = 0; in backtrace_string() 143 offset = reinterpret_cast<uintptr_t>(info.dli_saddr); in backtrace_string() 149 uintptr_t rel_pc = offset; in backtrace_string() 175 void backtrace_log(const uintptr_t* frames, size_t frame_count) { in backtrace_log()
|
D | MapData.cpp | 44 uintptr_t start; in parse_line() 45 uintptr_t end; in parse_line() 46 uintptr_t offset; in parse_line() 70 static inline bool get_val(MapEntry* entry, uintptr_t addr, T* store) { in get_val() 85 uintptr_t addr = entry->start; in read_loadbase() 146 const MapEntry* MapData::find(uintptr_t pc, uintptr_t* rel_pc) { in find()
|
D | malloc_debug.cpp | 70 ssize_t debug_malloc_backtrace(void* pointer, uintptr_t* frames, size_t frame_count); 80 int debug_iterate(uintptr_t base, size_t size, 81 void (*callback)(uintptr_t base, size_t size, void* arg), void* arg); 129 std::vector<uintptr_t> frames(64); in LogTagError() 149 reinterpret_cast<uintptr_t>(header) - reinterpret_cast<uintptr_t>(orig_pointer); in InitHeader() 424 uintptr_t value = reinterpret_cast<uintptr_t>(pointer) + g_debug->pointer_offset(); in debug_memalign() 532 memset(reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(new_pointer) + prev_size), in debug_realloc() 601 int debug_iterate(uintptr_t base, size_t size, in debug_iterate() 602 void (*callback)(uintptr_t base, size_t size, void* arg), void* arg) { in debug_iterate() 611 [](uintptr_t base, size_t size, void* arg) { in debug_iterate() [all …]
|
D | GuardData.cpp | 57 int pointer_idx = reinterpret_cast<uintptr_t>(data) - reinterpret_cast<uintptr_t>(pointer); in LogFailure() 66 std::vector<uintptr_t> frames(64); in LogFailure()
|
/bionic/libc/malloc_debug/tests/ |
D | backtrace_fake.cpp | 27 static std::deque<std::vector<uintptr_t>> g_fake_backtrace; 33 void backtrace_fake_add(const std::vector<uintptr_t>& ips) { in backtrace_fake_add() 43 size_t backtrace_get(uintptr_t* frames, size_t frame_num) { in backtrace_get() 50 memcpy(frames, g_fake_backtrace[0].data(), sizeof(uintptr_t) * total_frames); in backtrace_get() 55 void backtrace_log(const uintptr_t* frames, size_t frame_count) { in backtrace_log()
|
D | malloc_debug_unit_tests.cpp | 77 …offset += BIONIC_ALIGN(sizeof(BacktraceHeader) + sizeof(uintptr_t) * backtrace_frames, MINIMUM_ALI… in get_tag_offset() 327 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(pointer) & alignment_mask); in TEST_F() 374 backtrace_fake_add(std::vector<uintptr_t> {0x1, 0x2, 0x3}); in TEST_F() 420 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(pointer) & alignment_mask) in TEST_F() 455 backtrace_fake_add(std::vector<uintptr_t> {0x100, 0x200, 0x300}); in TEST_F() 481 backtrace_fake_add(std::vector<uintptr_t> {0x100, 0x200, 0x300}); in TEST_F() 513 backtrace_fake_add(std::vector<uintptr_t> {0xa, 0xb, 0xc}); in TEST_F() 515 backtrace_fake_add(std::vector<uintptr_t> {0xaa, 0xbb, 0xcc}); in TEST_F() 517 backtrace_fake_add(std::vector<uintptr_t> {0xaaa, 0xbbb, 0xccc}); in TEST_F() 599 backtrace_fake_add(std::vector<uintptr_t> {0x1000, 0x2000, 0x3000}); in TEST_F() [all …]
|
D | backtrace_fake.h | 25 void backtrace_fake_add(const std::vector<uintptr_t>& ips);
|
/bionic/linker/tests/ |
D | linker_memory_allocator_test.cpp | 99 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(reallocated_ptr) % 16); in TEST() 111 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(reallocated_ptr) % 16); in TEST() 130 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr1) % 16); in TEST() 132 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr2) % 16); in TEST() 134 ASSERT_EQ(reinterpret_cast<uintptr_t>(ptr1)+16, reinterpret_cast<uintptr_t>(ptr2)); in TEST() 151 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr1) % 16); in TEST() 153 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr2) % 16); in TEST() 156 reinterpret_cast<uintptr_t>(ptr1)/kPageSize != reinterpret_cast<uintptr_t>(ptr2)/kPageSize); in TEST() 170 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr1) % 16); in TEST() 172 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr2) % 16); in TEST() [all …]
|
D | linker_block_allocator_test.cpp | 56 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr1) % 16); in TEST() 58 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr2) % 16); in TEST() 76 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr1) % 16); in TEST() 78 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr2) % 16); in TEST() 89 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr1) % 16); in TEST() 91 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(ptr2) % 16); in TEST()
|
/bionic/libc/bionic/ |
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 | 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 | jemalloc.h | 29 int je_iterate(uintptr_t, size_t, void (*)(uintptr_t, size_t, void*), void*);
|
D | pthread_attr.cpp | 109 if (reinterpret_cast<uintptr_t>(stack_base) & (PAGE_SIZE - 1)) { in pthread_attr_setstack() 117 static uintptr_t __get_main_stack_startstack() { in __get_main_stack_startstack() 134 uintptr_t startstack = 0; in __get_main_stack_startstack() 161 uintptr_t startstack = __get_main_stack_startstack(); in __pthread_attr_getstack_main_thread() 170 uintptr_t lo, hi; in __pthread_attr_getstack_main_thread()
|
D | clone.cpp | 65 uintptr_t child_stack_addr = reinterpret_cast<uintptr_t>(child_stack); in clone()
|
/bionic/tests/ |
D | sys_prctl_test.cpp | 44 uintptr_t last_end = 0; in TEST() 50 uintptr_t start; in TEST() 51 uintptr_t end; in TEST()
|
D | thread_local_test.cpp | 190 uintptr_t index; 199 static_assert(sizeof(uintptr_t) == sizeof(gcc_pointer), in TEST() 201 static_assert(sizeof(uintptr_t) == sizeof(void*), in TEST() 243 uintptr_t align = (1 << n); in TEST() 244 uintptr_t address= reinterpret_cast<uintptr_t>(p); in TEST()
|
/bionic/libc/private/ |
D | KernelArgumentBlock.h | 36 uintptr_t* args = reinterpret_cast<uintptr_t*>(raw_args); in KernelArgumentBlock()
|
D | bionic_malloc_dispatch.h | 45 typedef int (*MallocIterate)(uintptr_t, size_t, void (*)(uintptr_t, size_t, void*), void*);
|
D | bionic_ssp.h | 38 extern uintptr_t __stack_chk_guard;
|
/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 | 60 #define ALIGNBYTES (sizeof(uintptr_t) - 1) 61 #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()
|