Home
last modified time | relevance | path

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

123

/openbsd-src/gnu/llvm/compiler-rt/lib/xray/
H A Dxray_allocator.h40 uptr RoundedSize = RoundUpTo(sizeof(T), GetPageSizeCached()); in allocate()
80 uptr RoundedSize = RoundUpTo(sizeof(T), GetPageSizeCached()); in deallocate()
91 uptr RoundedSize = RoundUpTo(S * sizeof(T), GetPageSizeCached()); in allocateBuffer()
129 uptr RoundedSize = RoundUpTo(S * sizeof(T), GetPageSizeCached()); in deallocateBuffer()
226 : MaxMemory(RoundUpTo(M, kCacheLineSize)), in Allocator()
H A Dxray_utils.cpp57 if (RoundUpTo(Offset, PageSize) != RoundUpTo(Offset + TotalBytes, PageSize)) { in WriteAll()
/openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix.cpp47 size = RoundUpTo(size, GetPageSizeCached()); in MmapOrDie()
69 size = RoundUpTo(size, GetPageSizeCached()); in MmapOrDieOnFatalError()
94 map_size = RoundUpTo(map_size, GetPageSizeCached()); in MmapAlignedOrDieOnFatalError()
105 end = RoundUpTo(end, GetPageSizeCached()); in MmapAlignedOrDieOnFatalError()
114 size = RoundUpTo(size, GetPageSizeCached()); in MmapNoReserveOrDie()
126 size = RoundUpTo(size, GetPageSizeCached()); in MmapFixedImpl()
208 *buff_size = RoundUpTo(fsize, GetPageSizeCached()); in MapFileToMemory()
H A Dsanitizer_fuchsia.cpp134 size = RoundUpTo(size, GetPageSize()); in DoAnonymousMmapOrDie()
180 init_size = RoundUpTo(init_size, GetPageSize()); in Init()
201 map_size = RoundUpTo(map_size, GetPageSize()); in DoMmapFixedOrDie()
241 size = RoundUpTo(size, GetPageSize()); in UnmapOrDieVmar()
318 addr = RoundUpTo(map_addr, alignment); in MmapAlignedOrDieOnFatalError()
357 uptr beg_aligned = RoundUpTo(beg, GetPageSize()); in ReleaseMemoryPagesToOS()
H A Dsanitizer_linux_libcdep.cpp326 RoundUpTo(ThreadDescriptorSize() + kTcbHead, kTlsAlign); in TlsPreTcbSize()
537 const uptr tp = RoundUpTo(*addr + *size, align); in GetTls()
552 *addr = tp - RoundUpTo(*size, align); in GetTls()
681 off += sizeof(*nhdr) + RoundUpTo(nhdr->n_namesz, 4) + in AddModuleSegments()
682 RoundUpTo(nhdr->n_descsz, 4); in AddModuleSegments()
997 const uptr shadow_size = RoundUpTo(shadow_size_bytes, granularity); in MapDynamicShadow()
1003 const uptr shadow_start = RoundUpTo(map_start + left_padding, alignment); in MapDynamicShadow()
1047 shadow_size = RoundUpTo(shadow_size, granularity); in MapDynamicShadowAndAliases()
1060 const uptr right_start = RoundUpTo(map_start + left_padding, alignment); in MapDynamicShadowAndAliases()
H A Dsanitizer_allocator.cpp146 size = RoundUpTo(size, low_level_alloc_min_alignment); in Allocate()
148 uptr size_to_allocate = RoundUpTo(size, GetPageSizeCached()); in Allocate()
H A Dsanitizer_allocator_checks.h71 return RoundUpTo(size, page_size) < size; in CheckForPvallocOverflow()
H A Dsanitizer_allocator_primary64.h392 return RoundUpTo(sizeof(RegionInfo) * kNumClassesRounded, in AdditionalSize()
429 RoundUpTo(n, 1ULL << packing_ratio_log) >> packing_ratio_log); in PackedCounterArray()
742 uptr new_mapped_free_array = RoundUpTo(needed_space, kFreeArrayMapSize); in EnsureFreeArraySpace()
795 RoundUpTo(total_user_bytes - region->mapped_user, kUserMapSize); in PopulateFreeArray()
813 RoundUpTo(total_meta_bytes - region->mapped_meta, kMetaMapSize) : 0; in PopulateFreeArray()
887 RoundUpTo(region->allocated_user, page_size) / page_size, memory_mapper, in MaybeReleaseToOS()
H A Dsanitizer_stoptheworld_linux_libcdep.cpp571 uptr size_up = RoundUpTo(size, 8 / uptr_sz); in GetRegistersAndSP()
594 buffer->resize(size_up + RoundUpTo(regset_io.iov_len, uptr_sz) / uptr_sz); in GetRegistersAndSP()
607 buffer->resize(RoundUpTo(sizeof(regs_struct), uptr_sz) / uptr_sz); in GetRegistersAndSP()
/openbsd-src/gnu/llvm/compiler-rt/lib/memprof/
H A Dmemprof_rawprofile.cpp205 const u64 NumSegmentBytes = RoundUpTo(SegmentSizeBytes(Layout), 8); in SerializeToRawProfile()
212 const u64 NumMIBInfoBytes = RoundUpTo( in SerializeToRawProfile()
215 const u64 NumStackBytes = RoundUpTo(StackSizeBytes(StackIds), 8); in SerializeToRawProfile()
220 const u64 TotalSizeBytes = RoundUpTo( in SerializeToRawProfile()
H A Dmemprof_thread.cpp78 uptr size = RoundUpTo(sizeof(MemprofThread), PageSize); in Create()
102 uptr size = RoundUpTo(sizeof(MemprofThread), GetPageSizeCached()); in Destroy()
H A Dmemprof_shadow_setup.cpp27 RoundUpTo(MEM_TO_SHADOW(addr + size), GetPageSizeCached()) - 1; in ProtectGap()
H A Dmemprof_allocator.cpp230 uptr page_beg = RoundUpTo(shadow_beg, page_size); in ClearShadow()
361 uptr rounded_size = RoundUpTo(size, alignment); in Allocate()
399 user_beg = RoundUpTo(user_beg, alignment); in Allocate()
641 size = size ? RoundUpTo(size, PageSize) : PageSize; in memprof_pvalloc()
/openbsd-src/gnu/llvm/compiler-rt/lib/hwasan/
H A Dhwasan_globals.cpp65 const char *desc = name + RoundUpTo(nhdr->n_namesz, 4); in HwasanGlobalsFor()
70 note = desc + RoundUpTo(nhdr->n_descsz, 4); in HwasanGlobalsFor()
H A Dhwasan_dynamic_shadow.cpp41 return RoundUpTo(GetMaxVirtualAddress() >> kShadowScale, in PremapShadowSize()
62 const uptr shadow_size = RoundUpTo(shadow_size_bytes, granularity); in FindPremappedShadowStart()
H A Dhwasan_poisoning.cpp24 uptr end = RoundUpTo(p + size, kShadowAlignment); in TagMemory()
/openbsd-src/gnu/llvm/compiler-rt/lib/xray/tests/unit/
H A Dallocator_test.cpp52 GetPageSizeCached() / RoundUpTo(sizeof(OddSizedData), kCacheLineSize); in TEST()
71 GetPageSizeCached() / RoundUpTo(sizeof(OddSizedData), kCacheLineSize); in TEST()
/openbsd-src/gnu/llvm/compiler-rt/lib/dfsan/
H A Ddfsan_interceptors.cpp141 dfsan_set_label(0, res, RoundUpTo(length, GetPageSizeCached())); in INTERCEPTOR()
155 dfsan_set_label(0, res, RoundUpTo(length, GetPageSizeCached())); in INTERCEPTOR()
166 dfsan_set_label(0, addr, RoundUpTo(length, GetPageSizeCached())); in INTERCEPTOR()
H A Ddfsan_thread.cpp13 uptr size = RoundUpTo(sizeof(DFsanThread), PageSize); in Create()
62 uptr size = RoundUpTo(sizeof(DFsanThread), GetPageSizeCached()); in Destroy()
/openbsd-src/gnu/llvm/compiler-rt/lib/asan/
H A Dasan_poisoning.cpp186 uptr aligned_b = RoundUpTo(beg, ASAN_SHADOW_GRANULARITY); in __asan_region_is_poisoned()
395 uptr beg_up = RoundUpTo(storage_beg, granularity); in FixUnalignedStorage()
442 uptr c = RoundUpTo(Max(old_end, new_end), granularity); in __sanitizer_annotate_contiguous_container()
460 uptr b2 = RoundUpTo(new_end, granularity); in __sanitizer_annotate_contiguous_container()
520 uptr b = RoundUpTo(old_end, granularity); in __sanitizer_annotate_double_ended_contiguous_container()
568 uptr a2 = RoundUpTo(new_end, granularity); in __sanitizer_annotate_double_ended_contiguous_container()
570 uptr c2 = RoundUpTo(old_end, granularity); in __sanitizer_annotate_double_ended_contiguous_container()
H A Dasan_premap_shadow.cpp29 return RoundUpTo(GetMaxVirtualAddress() >> ASAN_SHADOW_SCALE, granularity); in PremapShadowSize()
H A Dasan_shadow_setup.cpp30 RoundUpTo(MEM_TO_SHADOW(addr + size), GetPageSizeCached()) - 1; in ProtectGap()
H A Dasan_poisoning.h58 uptr page_beg = RoundUpTo(shadow_beg, page_size); in FastPoisonShadow()
/openbsd-src/gnu/llvm/compiler-rt/lib/msan/
H A Dmsan_thread.cpp13 uptr size = RoundUpTo(sizeof(MsanThread), PageSize); in Create()
63 uptr size = RoundUpTo(sizeof(MsanThread), GetPageSizeCached()); in Destroy()
/openbsd-src/gnu/llvm/compiler-rt/lib/safestack/
H A Dsafestack_util.h31 inline size_t RoundUpTo(size_t size, size_t boundary) { in RoundUpTo() function

123