/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_allocator_combined.h | 129 void *GetBlockBegin(const void *p) { in GetBlockBegin() function 131 return primary_.GetBlockBegin(p); in GetBlockBegin() 132 return secondary_.GetBlockBegin(p); in GetBlockBegin() 139 return primary_.GetBlockBegin(p); in GetBlockBeginFastLocked()
|
H A D | sanitizer_allocator_secondary.h | 165 return GetBlockBegin(p) != nullptr; in PointerIsMine() 182 void *GetBlockBegin(const void *ptr) const { in GetBlockBegin() function
|
H A D | sanitizer_allocator_primary32.h | 206 void *GetBlockBegin(const void *p) { in GetBlockBegin() function 264 // Too slow: CHECK_EQ((void *)chunk, GetBlockBegin((void *)chunk)); in ForEachChunk()
|
H A D | sanitizer_allocator_primary64.h | 260 void *GetBlockBegin(const void *p) { in GetBlockBegin() 382 // Too slow: CHECK_EQ((void *)chunk, GetBlockBegin((void *)chunk)); in ForEachChunk() 259 void *GetBlockBegin(const void *p) { GetBlockBegin() function
|
/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_debugging.cpp | 209 void *block_begin = a->GetBlockBegin((void *)addr); in __tsan_locate_address() 214 region_address = (uptr)allocator()->GetBlockBegin((void *)addr); in __tsan_locate_address() 249 void *block_begin = a->GetBlockBegin((void *)addr); in __tsan_get_alloc_stack()
|
H A D | tsan_external.cpp | 112 void *block_begin = a->GetBlockBegin((void *)addr); in __tsan_external_assign_tag()
|
H A D | tsan_mman.cpp | 371 void *beg = allocator()->GetBlockBegin(p); in user_alloc_begin() 468 return allocator()->GetBlockBegin(p) != 0; in __sanitizer_get_ownership()
|
H A D | tsan_rtl_report.cpp | 300 block_begin = (uptr)a->GetBlockBegin((void *)addr); in AddLocation()
|
/llvm-project/compiler-rt/lib/sanitizer_common/tests/ |
H A D | sanitizer_allocator_test.cpp | 251 CHECK_EQ(x, a->GetBlockBegin(x)); in TestSizeClassAllocator() 252 CHECK_EQ(x, a->GetBlockBegin(x + size - 1)); in TestSizeClassAllocator() 279 // Check that GetBlockBegin never crashes. in TestSizeClassAllocator() 283 Ident(a->GetBlockBegin(reinterpret_cast<void *>(x))); in TestSizeClassAllocator() 439 // Make sure we correctly compute GetBlockBegin() w/o overflow. in SizeClassAllocatorGetBlockBeginStress() 442 void *beg = a->GetBlockBegin(x); in SizeClassAllocatorGetBlockBeginStress() 671 CHECK_EQ(p, a.GetBlockBegin(p)); in TEST() 672 CHECK_EQ(p, a.GetBlockBegin(p + size - 1)); in TEST() 673 CHECK_EQ(p, a.GetBlockBegin(p + size / 2)); in TEST() 682 // Regression test for boundary condition in GetBlockBegin() in TEST() [all...] |
/llvm-project/compiler-rt/lib/hwasan/ |
H A D | hwasan_allocator.cpp | 407 void *block = allocator.GetBlockBegin(reinterpret_cast<void*>(address)); in FindHeapChunkByAddress() 420 const void *beg = allocator.GetBlockBegin(untagged_ptr); in AllocationBegin() 435 const void *beg = allocator.GetBlockBegin(untagged_ptr); in AllocationSize() 635 uptr chunk = reinterpret_cast<uptr>(__hwasan::allocator.GetBlockBegin(p)); in IgnoreObject()
|
/llvm-project/compiler-rt/lib/dfsan/ |
H A D | dfsan_allocator.cpp | 190 void *beg = allocator.GetBlockBegin(p); in AllocationBegin() 204 const void *beg = allocator.GetBlockBegin(p); in AllocationSize()
|
/llvm-project/compiler-rt/lib/lsan/ |
H A D | lsan_allocator.cpp | 154 void *beg = allocator.GetBlockBegin(p); in GetMallocBegin() 335 void *chunk = allocator.GetBlockBegin(p); in IgnoreObject()
|
/llvm-project/compiler-rt/lib/msan/ |
H A D | msan_allocator.cpp | 305 void *beg = allocator.GetBlockBegin(p); in AllocationBegin() 324 if (allocator.GetBlockBegin(p) != p) in AllocationSize()
|
/llvm-project/compiler-rt/lib/memprof/ |
H A D | memprof_allocator.cpp | 160 return get_allocator().GetBlockBegin(reinterpret_cast<void *>(this)); in AllocBeg() 588 // Assumes alloc_beg == allocator.GetBlockBegin(alloc_beg). in GetMemprofChunk() 608 void *alloc_beg = allocator.GetBlockBegin(reinterpret_cast<void *>(p)); in GetMemprofChunkByAddr()
|
/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_allocator.cpp | 225 void *p = get_allocator().GetBlockBegin(m); in Recycle() 812 // Assumes alloc_beg == allocator.GetBlockBegin(alloc_beg). in GetAsanChunk() 834 void *alloc_beg = allocator.GetBlockBegin(reinterpret_cast<void *>(p));
|