Home
last modified time | relevance | path

Searched refs:uintptr_t (Results 1 – 25 of 71) sorted by relevance

123

/bionic/libc/malloc_debug/
DMapData.h41 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);
DDebugData.h56 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()
Dbacktrace.h39 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);
Dbacktrace.cpp57 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()
DMapData.cpp44 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()
Dmalloc_debug.cpp70 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 …]
DGuardData.cpp57 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/
Dbacktrace_fake.cpp27 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()
Dmalloc_debug_unit_tests.cpp77 …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 …]
Dbacktrace_fake.h25 void backtrace_fake_add(const std::vector<uintptr_t>& ips);
/bionic/linker/tests/
Dlinker_memory_allocator_test.cpp99 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 …]
Dlinker_block_allocator_test.cpp56 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/
Dbrk.cpp59 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()
Dpthread_key.cpp56 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()
Djemalloc.h29 int je_iterate(uintptr_t, size_t, void (*)(uintptr_t, size_t, void*), void*);
Dpthread_attr.cpp109 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()
Dclone.cpp65 uintptr_t child_stack_addr = reinterpret_cast<uintptr_t>(child_stack); in clone()
/bionic/tests/
Dsys_prctl_test.cpp44 uintptr_t last_end = 0; in TEST()
50 uintptr_t start; in TEST()
51 uintptr_t end; in TEST()
Dthread_local_test.cpp190 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/
DKernelArgumentBlock.h36 uintptr_t* args = reinterpret_cast<uintptr_t*>(raw_args); in KernelArgumentBlock()
Dbionic_malloc_dispatch.h45 typedef int (*MallocIterate)(uintptr_t, size_t, void (*)(uintptr_t, size_t, void*), void*);
Dbionic_ssp.h38 extern uintptr_t __stack_chk_guard;
/bionic/libc/arch-x86_64/bionic/
D__set_tls.c36 return __arch_prctl(ARCH_SET_FS, (uintptr_t) ptr); in __set_tls()
/bionic/libc/upstream-openbsd/android/include/
Dopenbsd-compat.h60 #define ALIGNBYTES (sizeof(uintptr_t) - 1)
61 #define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) &~ ALIGNBYTES)
/bionic/linker/arch/x86/
Dbegin.c37 void* raw_args = (void*) ((uintptr_t) __builtin_frame_address(0) + sizeof(void*)); in _start()

123