Home
last modified time | relevance | path

Searched refs:RoundUpTo (Results 1 – 25 of 50) sorted by relevance

12

/freebsd-12.1/contrib/compiler-rt/lib/hwasan/
H A Dhwasan_dynamic_shadow.cc50 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 Dhwasan_poisoning.cc33 uptr end = RoundUpTo(p + size, kShadowAlignment); in TagMemory()
H A Dhwasan_thread_list.h179 uptr ring_buffer_start = RoundUpTo(free_space_ + sizeof(Thread), align); in AllocThread()
/freebsd-12.1/contrib/compiler-rt/lib/scudo/
H A Dscudo_allocator_secondary.h59 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 Dscudo_allocator.h64 constexpr uptr RoundUpTo(uptr Size, uptr Boundary) { in RoundUpTo() function
70 return RoundUpTo(sizeof(PackedHeader), MinAlignment); in getHeaderSize()
H A Dscudo_allocator.cpp303 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 Dxray_allocator.h41 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 Dxray_utils.cc57 if (RoundUpTo(Offset, PageSize) != RoundUpTo(Offset + TotalBytes, PageSize)) { in WriteAll()
/freebsd-12.1/contrib/compiler-rt/lib/dfsan/
H A Ddfsan_interceptors.cc25 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 Dasan_linux.cc109 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 Dasan_premap_shadow.cc30 return RoundUpTo(GetMaxVirtualAddress() >> SHADOW_SCALE, granularity); in PremapShadowSize()
45 uptr shadow_start = RoundUpTo(map_start + left_padding, alignment); in PremapShadow()
H A Dasan_malloc_linux.cc44 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 Dasan_thread.cc82 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 Dasan_poisoning.cc195 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 Dasan_poisoning.h61 uptr page_beg = RoundUpTo(shadow_beg, page_size); in FastPoisonShadow()
H A Dasan_shadow_setup.cc51 RoundUpTo(MEM_TO_SHADOW(addr + size), GetPageSizeCached()) - 1; in ProtectGap()
H A Dasan_allocator.cc148 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 Dsanitizer_posix.cc46 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 Dsanitizer_fuchsia.cc162 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 Dsanitizer_allocator_primary64.h314 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 Dsanitizer_allocator_checks.h72 return RoundUpTo(size, page_size) < size; in CheckForPvallocOverflow()
H A Dsanitizer_allocator_secondary.h170 return RoundUpTo(GetHeader(p)->size, page_size_); in GetActuallyAllocatedSize()
310 return RoundUpTo(size, page_size_) + page_size_; in RoundUpMapSize()
H A Dsanitizer_linux_libcdep.cc259 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 Dsanitizer_posix_libcdep.cc62 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 Dmsan_thread.cc13 uptr size = RoundUpTo(sizeof(MsanThread), PageSize); in Create()
62 uptr size = RoundUpTo(sizeof(MsanThread), GetPageSizeCached()); in Destroy()

12