Home
last modified time | relevance | path

Searched refs:__asan (Results 1 – 25 of 42) sorted by relevance

12

/external/compiler-rt/lib/asan/tests/
Dasan_noinst_test.cc71 __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/compiler-rt/lib/asan/
Dasan_thread.cc26 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
Dasan_allocator.cc32 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 …]
Dasan_poisoning.cc22 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))) { \
Dasan_stack.cc18 namespace __asan { namespace
37 using namespace __asan; in __sanitizer_print_stack_trace()
Dasan_malloc_mac.cc23 using namespace __asan;
57 #define COMMON_MALLOC_NAMESPACE __asan
Dasan_malloc_linux.cc27 using namespace __asan; // NOLINT
185 namespace __asan { namespace
203 namespace __asan { namespace
Dasan_win.cc31 using namespace __asan; // NOLINT
127 if (__asan::GetCurrentThread()) in EnsureWorkerThreadRegistered()
151 namespace __asan { namespace
Dasan_memory_profile.cc24 namespace __asan { namespace
96 __sanitizer::StopTheWorld(__asan::MemoryProfileCB, (void*)top_percent); in __sanitizer_print_memory_profile()
Dasan_debugging.cc23 namespace __asan { namespace
113 using namespace __asan;
Dasan_stats.cc22 namespace __asan { namespace
137 using namespace __asan; // NOLINT
Dasan_activation.h18 namespace __asan {
Dasan_preinit.cc16 using namespace __asan;
Dasan_suppressions.h20 namespace __asan {
Dasan_mac.cc47 namespace __asan { namespace
173 using namespace __asan; // NOLINT
Dasan_malloc_win.cc28 using namespace __asan; // NOLINT
203 namespace __asan { namespace
Dasan_flags.h30 namespace __asan {
Dasan_scariness_score.h36 namespace __asan {
Dasan_stats.h20 namespace __asan {
Dasan_posix.cc34 namespace __asan { namespace
Dasan_interceptors.h110 namespace __asan {
Dasan_internal.h58 namespace __asan {
Dasan_fake_stack.cc19 namespace __asan { namespace
222 using namespace __asan;
Dasan_linux.cc69 namespace __asan { namespace
Dasan_suppressions.cc22 namespace __asan { namespace

12