| /freebsd-12.1/contrib/compiler-rt/lib/hwasan/ |
| H A D | hwasan_dynamic_shadow.cc | 50 RoundUpTo(shadow_size_bytes, granularity); in MapDynamicShadow() 56 const uptr shadow_start = RoundUpTo(map_start + left_padding, alignment); in MapDynamicShadow() 78 return RoundUpTo(GetMaxVirtualAddress() >> kShadowScale, in PremapShadowSize() 98 const uptr shadow_size = RoundUpTo(shadow_size_bytes, granularity); in FindPremappedShadowStart()
|
| H A D | hwasan_poisoning.cc | 33 uptr end = RoundUpTo(p + size, kShadowAlignment); in TagMemory()
|
| H A D | hwasan_thread_list.h | 179 uptr ring_buffer_start = RoundUpTo(free_space_ + sizeof(Thread), align); in AllocThread()
|
| /freebsd-12.1/contrib/compiler-rt/lib/scudo/ |
| H A D | scudo_allocator_secondary.h | 59 return RoundUpTo(sizeof(Header), MinAlignment); in getHeaderSize() 83 ReservedSize = RoundUpTo(ReservedSize, PageSize); in Allocate() 100 uptr CommittedEnd = RoundUpTo(UserEnd, PageSize); in Allocate() 107 UserBeg = RoundUpTo(UserBeg, Alignment); in Allocate() 116 CommittedEnd = RoundUpTo(UserEnd, PageSize); in Allocate()
|
| H A D | scudo_allocator.h | 64 constexpr uptr RoundUpTo(uptr Size, uptr Boundary) { in RoundUpTo() function 70 return RoundUpTo(sizeof(PackedHeader), MinAlignment); in getHeaderSize()
|
| H A D | scudo_allocator.cpp | 303 const uptr NeededSize = RoundUpTo(Size ? Size : 1, MinAlignment) + in allocate() 357 const uptr AlignedUserPtr = RoundUpTo(UserPtr, Alignment); in allocate() 683 Size = Size ? RoundUpTo(Size, PageSize) : PageSize; in scudoPvalloc()
|
| /freebsd-12.1/contrib/compiler-rt/lib/xray/ |
| H A D | xray_allocator.h | 41 uptr RoundedSize = RoundUpTo(sizeof(T), GetPageSizeCached()); in allocate() 81 uptr RoundedSize = RoundUpTo(sizeof(T), GetPageSizeCached()); in deallocate() 92 uptr RoundedSize = RoundUpTo(S * sizeof(T), GetPageSizeCached()); in allocateBuffer() 130 uptr RoundedSize = RoundUpTo(S * sizeof(T), GetPageSizeCached()); in deallocateBuffer() 227 : MaxMemory(RoundUpTo(M, kCacheLineSize)), in Allocator()
|
| H A D | xray_utils.cc | 57 if (RoundUpTo(Offset, PageSize) != RoundUpTo(Offset + TotalBytes, PageSize)) { in WriteAll()
|
| /freebsd-12.1/contrib/compiler-rt/lib/dfsan/ |
| H A D | dfsan_interceptors.cc | 25 dfsan_set_label(0, res, RoundUpTo(length, GetPageSize())); in INTERCEPTOR() 33 dfsan_set_label(0, res, RoundUpTo(length, GetPageSize())); in INTERCEPTOR()
|
| /freebsd-12.1/contrib/compiler-rt/lib/asan/ |
| H A D | asan_linux.cc | 109 uptr shadow_size = RoundUpTo(kHighShadowEnd, granularity); in FindPremappedShadowStart() 125 uptr shadow_size = RoundUpTo(kHighShadowEnd, granularity); in FindDynamicShadowStart() 131 uptr shadow_start = RoundUpTo(map_start + left_padding, alignment); in FindDynamicShadowStart()
|
| H A D | asan_premap_shadow.cc | 30 return RoundUpTo(GetMaxVirtualAddress() >> SHADOW_SCALE, granularity); in PremapShadowSize() 45 uptr shadow_start = RoundUpTo(map_start + left_padding, alignment); in PremapShadow()
|
| H A D | asan_malloc_linux.cc | 44 uptr size_in_words = RoundUpTo(size_in_bytes, kWordSize) / kWordSize; in AllocateFromLocalPool() 73 uptr aligned_addr = RoundUpTo(addr, alignment); in PosixMemalignFromLocalPool() 74 uptr aligned_size = RoundUpTo(size_in_bytes, kWordSize); in PosixMemalignFromLocalPool()
|
| H A D | asan_thread.cc | 82 uptr size = RoundUpTo(sizeof(AsanThread), PageSize); in Create() 113 uptr size = RoundUpTo(sizeof(AsanThread), GetPageSizeCached()); in Destroy() 313 uptr tls_end_aligned = RoundUpTo(tls_end_, SHADOW_GRANULARITY); in ClearShadowForThreadStackAndTLS()
|
| H A D | asan_poisoning.cc | 195 uptr aligned_b = RoundUpTo(beg, SHADOW_GRANULARITY); in __asan_region_is_poisoned() 377 uptr c = RoundUpTo(Max(old_mid, new_mid), granularity); in __sanitizer_annotate_contiguous_container() 395 uptr b2 = RoundUpTo(new_mid, granularity); in __sanitizer_annotate_contiguous_container()
|
| H A D | asan_poisoning.h | 61 uptr page_beg = RoundUpTo(shadow_beg, page_size); in FastPoisonShadow()
|
| H A D | asan_shadow_setup.cc | 51 RoundUpTo(MEM_TO_SHADOW(addr + size), GetPageSizeCached()) - 1; in ProtectGap()
|
| H A D | asan_allocator.cc | 148 RoundUpTo(m->UsedSize(), SHADOW_GRANULARITY), in Recycle() 427 uptr rounded_size = RoundUpTo(Max(size, kChunkHeader2Size), alignment); in Allocate() 480 user_beg = RoundUpTo(user_beg, alignment); in Allocate() 589 RoundUpTo(m->UsedSize(), SHADOW_GRANULARITY), in QuarantineChunk() 911 size = size ? RoundUpTo(size, PageSize) : PageSize; in asan_pvalloc()
|
| /freebsd-12.1/contrib/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_posix.cc | 46 size = RoundUpTo(size, GetPageSizeCached()); in MmapOrDie() 69 size = RoundUpTo(size, GetPageSizeCached()); in MmapOrDieOnFatalError() 109 RoundUpTo(size, PageSize), in MmapNoReserveOrDie() 123 RoundUpTo(size, PageSize), in MmapFixedImpl() 205 *buff_size = RoundUpTo(fsize, GetPageSizeCached()); in MapFileToMemory()
|
| H A D | sanitizer_fuchsia.cc | 162 size = RoundUpTo(size, PAGE_SIZE); in DoAnonymousMmapOrDie() 208 init_size = RoundUpTo(init_size, PAGE_SIZE); in Init() 230 map_size = RoundUpTo(map_size, PAGE_SIZE); in DoMmapFixedOrDie() 268 size = RoundUpTo(size, PAGE_SIZE); in UnmapOrDieVmar() 336 addr = RoundUpTo(map_addr, alignment); in MmapAlignedOrDieOnFatalError() 405 size_t map_size = RoundUpTo(max_len, PAGE_SIZE); in ReadFileToBuffer()
|
| H A D | sanitizer_allocator_primary64.h | 314 return RoundUpTo(sizeof(RegionInfo) * kNumClassesRounded, in AdditionalSize() 351 (RoundUpTo(n, 1ULL << packing_ratio_log) >> packing_ratio_log) * in PackedCounterArray() 660 uptr new_mapped_free_array = RoundUpTo(needed_space, kFreeArrayMapSize); in EnsureFreeArraySpace() 712 RoundUpTo(total_user_bytes - region->mapped_user, kUserMapSize); in PopulateFreeArray() 729 RoundUpTo(total_meta_bytes - region->mapped_meta, kMetaMapSize) : 0; in PopulateFreeArray() 847 RoundUpTo(region->allocated_user, page_size) / page_size, in MaybeReleaseToOS()
|
| H A D | sanitizer_allocator_checks.h | 72 return RoundUpTo(size, page_size) < size; in CheckForPvallocOverflow()
|
| H A D | sanitizer_allocator_secondary.h | 170 return RoundUpTo(GetHeader(p)->size, page_size_); in GetActuallyAllocatedSize() 310 return RoundUpTo(size, page_size_) + page_size_; in RoundUpMapSize()
|
| H A D | sanitizer_linux_libcdep.cc | 259 g_tls_size = RoundUpTo(tls_size, tls_align); in InitTlsSize() 339 RoundUpTo(ThreadDescriptorSize() + kTcbHead, kTlsAlign); in TlsPreTcbSize() 499 return RoundUpTo(g_tls_size + TlsPreTcbSize(), 16); in GetTlsSize()
|
| H A D | sanitizer_posix_libcdep.cc | 62 uptr beg_aligned = RoundUpTo(beg, page_size); in ReleaseMemoryPagesToOS() 340 RoundUpTo(size, PageSize), PROT_READ | PROT_WRITE, in MmapFixedNoReserve()
|
| /freebsd-12.1/contrib/compiler-rt/lib/msan/ |
| H A D | msan_thread.cc | 13 uptr size = RoundUpTo(sizeof(MsanThread), PageSize); in Create() 62 uptr size = RoundUpTo(sizeof(MsanThread), GetPageSizeCached()); in Destroy()
|