/external/compiler-rt/lib/asan/tests/ |
D | asan_noinst_test.cc | 71 __asan::asan_free(ptr, &stack1, __asan::FROM_MALLOC); in MallocStress() 80 char *ptr = (char*)__asan::asan_memalign(alignment, size, in MallocStress() 81 &stack2, __asan::FROM_MALLOC); in MallocStress() 82 EXPECT_EQ(size, __asan::asan_malloc_usable_size(ptr, 0, 0)); in MallocStress() 90 __asan::asan_free(vec[i], &stack3, __asan::FROM_MALLOC); in MallocStress() 115 uptr shadow = __asan::MemToShadow(ptr + i); in PrintShadow() 141 void *p = __asan::asan_malloc(size, &stack); in TEST() 142 __asan::asan_free(p, &stack, __asan::FROM_MALLOC); in TEST() 146 void *p1 = __asan::asan_malloc(size, &stack); in TEST() 147 __asan::asan_free(p1, &stack, __asan::FROM_MALLOC); in TEST() [all …]
|
/external/llvm-project/compiler-rt/lib/asan/tests/ |
D | asan_noinst_test.cpp | 72 __asan::asan_free(ptr, &stack1, __asan::FROM_MALLOC); in MallocStress() 81 char *ptr = (char*)__asan::asan_memalign(alignment, size, in MallocStress() 82 &stack2, __asan::FROM_MALLOC); in MallocStress() 83 EXPECT_EQ(size, __asan::asan_malloc_usable_size(ptr, 0, 0)); in MallocStress() 91 __asan::asan_free(vec[i], &stack3, __asan::FROM_MALLOC); in MallocStress() 116 uptr shadow = __asan::MemToShadow(ptr + i); in PrintShadow() 142 void *p = __asan::asan_malloc(size, &stack); in TEST() 143 __asan::asan_free(p, &stack, __asan::FROM_MALLOC); in TEST() 147 void *p1 = __asan::asan_malloc(size, &stack); in TEST() 148 __asan::asan_free(p1, &stack, __asan::FROM_MALLOC); in TEST() [all …]
|
/external/llvm-project/compiler-rt/lib/asan/ |
D | asan_thread.cpp | 25 namespace __asan { namespace 470 __asan::AsanThread *GetAsanThreadByOsIDLocked(tid_t os_id) { in GetAsanThreadByOsIDLocked() 471 __asan::AsanThreadContext *context = static_cast<__asan::AsanThreadContext *>( in GetAsanThreadByOsIDLocked() 472 __asan::asanThreadRegistry().FindThreadContextByOsIDLocked(os_id)); in GetAsanThreadByOsIDLocked() 483 __asan::AsanThread *t = __asan::GetAsanThreadByOsIDLocked(os_id); in GetThreadRangesLocked() 500 __asan::AsanThread *t = __asan::GetAsanThreadByOsIDLocked(os_id); in ForEachExtraStackRange() 506 __asan::asanThreadRegistry().Lock(); in LockThreadRegistry() 510 __asan::asanThreadRegistry().Unlock(); in UnlockThreadRegistry() 514 __asan::asanThreadRegistry().CheckLocked(); in GetThreadRegistryLocked() 515 return &__asan::asanThreadRegistry(); in GetThreadRegistryLocked() [all …]
|
D | asan_rtems.cpp | 29 namespace __asan { namespace 236 __asan::EarlyInit(); in __sanitizer_early_init() 243 return __asan::BeforeThreadCreateHook( in __sanitizer_before_thread_create_hook() 250 __asan::ThreadCreateHook(handle, status != 0); in __sanitizer_thread_create_hook() 254 __asan::ThreadStartHook(handle, self); in __sanitizer_thread_start_hook() 258 __asan::ThreadExitHook(handle, self); in __sanitizer_thread_exit_hook() 262 __asan::HandleExit(); in __sanitizer_exit()
|
D | asan_allocator.cpp | 34 namespace __asan { namespace 1101 __asan::get_allocator().ForceLock(); in LockAllocator() 1105 __asan::get_allocator().ForceUnlock(); in UnlockAllocator() 1109 *begin = (uptr)&__asan::get_allocator(); in GetAllocatorGlobalRange() 1110 *end = *begin + sizeof(__asan::get_allocator()); in GetAllocatorGlobalRange() 1115 __asan::AsanChunk *m = __asan::instance.GetAsanChunkByAddrFastLocked(addr); in PointsIntoChunk() 1117 __asan::CHUNK_ALLOCATED) in PointsIntoChunk() 1128 __asan::AsanChunk *m = __asan::instance.GetAsanChunkByAddrFastLocked(chunk); in GetUserBegin() 1133 metadata_ = chunk ? reinterpret_cast<void *>(chunk - __asan::kChunkHeaderSize) in LsanMetadata() 1140 __asan::AsanChunk *m = reinterpret_cast<__asan::AsanChunk *>(metadata_); in allocated() [all …]
|
D | asan_stack.cpp | 17 namespace __asan { namespace 58 using namespace __asan; in UnwindImpl() 85 using namespace __asan; in __sanitizer_print_stack_trace()
|
D | asan_fuchsia.cpp | 27 namespace __asan { namespace 220 return __asan::BeforeThreadCreateHook( in __sanitizer_before_thread_create_hook() 226 __asan::ThreadCreateHook(hook, error != thrd_success); in __sanitizer_thread_create_hook() 230 __asan::ThreadStartHook(hook, reinterpret_cast<uptr>(self)); in __sanitizer_thread_start_hook() 234 __asan::ThreadExitHook(hook, reinterpret_cast<uptr>(self)); in __sanitizer_thread_exit_hook()
|
D | asan_malloc_local.h | 22 (!__asan::asan_inited || __asan::asan_init_is_running); in EarlyMalloc()
|
D | asan_poisoning.cpp | 21 namespace __asan { namespace 89 using namespace __asan; 172 return __asan::AddressIsPoisoned((uptr)addr); in __asan_address_is_poisoned() 195 if (!__asan::AddressIsPoisoned(beg) && in __asan_region_is_poisoned() 196 !__asan::AddressIsPoisoned(end - 1) && in __asan_region_is_poisoned() 204 if (__asan::AddressIsPoisoned(beg)) in __asan_region_is_poisoned() 214 if (UNLIKELY(__asan::AddressIsPoisoned(__p) || \ 215 __asan::AddressIsPoisoned(__p + __size - 1))) { \
|
D | asan_premap_shadow.cpp | 21 namespace __asan { namespace 54 if (!premapped_shadow) premapped_shadow = __asan::PremapShadow(); in __asan_premap_shadow()
|
D | asan_malloc_mac.cpp | 23 using namespace __asan; 60 #define COMMON_MALLOC_NAMESPACE __asan
|
D | asan_mapping.h | 271 namespace __asan { 324 namespace __asan { 375 namespace __asan {
|
D | asan_memory_profile.cpp | 23 namespace __asan { namespace 126 __sanitizer::StopTheWorld(__asan::MemoryProfileCB, Arg); in __sanitizer_print_memory_profile()
|
D | asan_allocator.h | 24 namespace __asan { 164 typedef __asan::SizeClassMap SizeClassMap; 180 typedef __asan::SizeClassMap SizeClassMap;
|
D | asan_malloc_linux.cpp | 30 using namespace __asan; 282 namespace __asan { namespace 300 namespace __asan { namespace
|
D | asan_activation.h | 17 namespace __asan {
|
/external/compiler-rt/lib/asan/ |
D | asan_thread.cc | 26 namespace __asan { namespace 388 __asan::AsanThread *GetAsanThreadByOsIDLocked(uptr os_id) { in GetAsanThreadByOsIDLocked() 389 __asan::AsanThreadContext *context = static_cast<__asan::AsanThreadContext *>( in GetAsanThreadByOsIDLocked() 390 __asan::asanThreadRegistry().FindThreadContextByOsIDLocked(os_id)); in GetAsanThreadByOsIDLocked() 401 __asan::AsanThread *t = __asan::GetAsanThreadByOsIDLocked(os_id); in GetThreadRangesLocked() 416 __asan::AsanThread *t = __asan::GetAsanThreadByOsIDLocked(os_id); in ForEachExtraStackRange() 422 __asan::asanThreadRegistry().Lock(); in LockThreadRegistry() 426 __asan::asanThreadRegistry().Unlock(); in UnlockThreadRegistry() 430 __asan::EnsureMainThreadIDIsCorrect(); in EnsureMainThreadIDIsCorrect() 435 using namespace __asan; // NOLINT
|
D | asan_allocator.cc | 32 namespace __asan { namespace 804 __asan::get_allocator().ForceLock(); in LockAllocator() 808 __asan::get_allocator().ForceUnlock(); in UnlockAllocator() 812 *begin = (uptr)&__asan::get_allocator(); in GetAllocatorGlobalRange() 813 *end = *begin + sizeof(__asan::get_allocator()); in GetAllocatorGlobalRange() 818 __asan::AsanChunk *m = __asan::instance.GetAsanChunkByAddrFastLocked(addr); in PointsIntoChunk() 821 if (m->chunk_state != __asan::CHUNK_ALLOCATED) in PointsIntoChunk() 832 __asan::AsanChunk *m = __asan::instance.GetAsanChunkByAddrFastLocked(chunk); in GetUserBegin() 838 metadata_ = reinterpret_cast<void *>(chunk - __asan::kChunkHeaderSize); in LsanMetadata() 842 __asan::AsanChunk *m = reinterpret_cast<__asan::AsanChunk *>(metadata_); in allocated() [all …]
|
D | asan_stack.cc | 18 namespace __asan { namespace 37 using namespace __asan; in __sanitizer_print_stack_trace()
|
D | asan_poisoning.cc | 22 namespace __asan { namespace 99 using namespace __asan; // NOLINT 182 return __asan::AddressIsPoisoned((uptr)addr); in __asan_address_is_poisoned() 198 if (!__asan::AddressIsPoisoned(beg) && in __asan_region_is_poisoned() 199 !__asan::AddressIsPoisoned(end - 1) && in __asan_region_is_poisoned() 207 if (__asan::AddressIsPoisoned(beg)) in __asan_region_is_poisoned() 217 if (UNLIKELY(__asan::AddressIsPoisoned(__p) || \ 218 __asan::AddressIsPoisoned(__p + __size - 1))) { \
|
D | asan_malloc_mac.cc | 23 using namespace __asan; 57 #define COMMON_MALLOC_NAMESPACE __asan
|
D | asan_malloc_linux.cc | 27 using namespace __asan; // NOLINT 185 namespace __asan { namespace 203 namespace __asan { namespace
|
D | asan_memory_profile.cc | 24 namespace __asan { namespace 96 __sanitizer::StopTheWorld(__asan::MemoryProfileCB, (void*)top_percent); in __sanitizer_print_memory_profile()
|
D | asan_win.cc | 31 using namespace __asan; // NOLINT 127 if (__asan::GetCurrentThread()) in EnsureWorkerThreadRegistered() 151 namespace __asan { namespace
|
D | asan_activation.h | 18 namespace __asan {
|