Searched refs:PageSize (Results 1 - 25 of 42) sorted by relevance

12

/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/MachO/
H A DMachOWriter.h26 uint64_t PageSize; member in class:llvm::objcopy::macho::MachOWriter
53 MachOWriter(Object &O, bool Is64Bit, bool IsLittleEndian, uint64_t PageSize, argument
56 PageSize(PageSize), B(B), LayoutBuilder(O, Is64Bit, PageSize) {}
H A DMachOLayoutBuilder.h22 uint64_t PageSize; member in class:llvm::objcopy::macho::MachOLayoutBuilder
37 MachOLayoutBuilder(Object &O, bool Is64Bit, uint64_t PageSize) argument
38 : O(O), Is64Bit(Is64Bit), PageSize(PageSize) {}
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/profile/
H A DInstrProfilingBuffer.c53 unsigned PageSize) {
54 uint64_t OffsetModPage = Offset % PageSize;
56 return PageSize - OffsetModPage;
74 unsigned PageSize = getpagesize(); local
78 sizeof(__llvm_profile_header) + DataSizeInBytes, PageSize);
80 calculateBytesNeededToPageAlign(CountersSizeInBytes, PageSize);
82 calculateBytesNeededToPageAlign(NamesSize, PageSize);
52 calculateBytesNeededToPageAlign(uint64_t Offset, unsigned PageSize) argument
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/
H A Dscudo_allocator_secondary.h81 const uptr PageSize = GetPageSizeCached(); local
82 ReservedSize = RoundUpTo(ReservedSize, PageSize);
84 ReservedSize += 2 * PageSize;
91 DCHECK(IsAligned(ReservedBeg, PageSize));
96 uptr CommittedBeg = ReservedBeg + PageSize;
99 uptr CommittedEnd = RoundUpTo(UserEnd, PageSize);
107 CommittedBeg = RoundDownTo(UserBeg - HeadersSize, PageSize);
108 const uptr NewReservedBeg = CommittedBeg - PageSize;
115 CommittedEnd = RoundUpTo(UserEnd, PageSize);
117 const uptr NewReservedEnd = CommittedEnd + PageSize;
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Drelease.h155 const uptr PageSize = getPageSizeCached(); local
161 if (BlockSize <= PageSize) {
162 if (PageSize % BlockSize == 0) {
164 FullPagesBlockCountMax = PageSize / BlockSize;
166 } else if (BlockSize % (PageSize % BlockSize) == 0) {
170 FullPagesBlockCountMax = PageSize / BlockSize + 1;
175 FullPagesBlockCountMax = PageSize / BlockSize + 2;
179 if (BlockSize % PageSize == 0) {
195 const uptr PageSizeLog = getLog2(PageSize);
196 const uptr End = Base + AllocatedPagesCount * PageSize;
[all...]
H A Dsecondary.h122 const uptr PageSize = getPageSizeCached(); local
124 roundUpTo(Size + LargeBlock::getHeaderSize(), PageSize);
126 if (MaxFreeListSize && AlignmentHint < PageSize) {
133 if (FreeBlockSize > RoundedSize + 4 * PageSize)
151 const uptr MapSize = RoundedSize + 2 * PageSize;
157 uptr CommitBase = MapBase + PageSize;
162 if (UNLIKELY(AlignmentHint >= PageSize)) {
166 CommitBase = roundUpTo(MapBase + PageSize + 1, AlignmentHint) - PageSize;
167 const uptr NewMapBase = CommitBase - PageSize;
[all...]
H A Dwrappers_c_checks.h60 // multiple of PageSize.
61 inline bool checkForPvallocOverflow(uptr Size, uptr PageSize) { argument
62 return roundUpTo(Size, PageSize) < Size;
H A Dprimary64.h69 const uptr PageSize = getPageSizeCached(); local
74 getRegionBaseByClassId(I) + (getRandomModN(&Seed, 16) + 1) * PageSize;
84 (getSizeByClassId(I) >= (PageSize / 32));
366 const uptr PageSize = getPageSizeCached(); local
372 if (BytesInFreeList < PageSize)
377 PageSize) {
394 roundUpTo(Region->AllocatedUser, PageSize) / PageSize,
H A Dprimary32.h70 const uptr PageSize = getPageSizeCached(); local
77 (getSizeByClassId(I) >= (PageSize / 32));
365 const uptr PageSize = getPageSizeCached(); local
371 if (BytesInFreeList < PageSize)
375 PageSize) {
398 RegionSize / PageSize, BlockSize, &Recorder);
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_interface.cpp102 std::size_t PageSize) XRAY_NEVER_INSTRUMENT
107 MProtectLen = RoundUpTo(MProtectLen, PageSize);
277 const size_t PageSize = flags()->xray_page_size_override > 0 variable
280 if ((PageSize == 0) || ((PageSize & (PageSize - 1)) != 0)) {
281 Report("System page size is not a power of two: %lld\n", PageSize);
286 reinterpret_cast<void *>(MinSled.Address & ~(PageSize - 1));
289 MProtectHelper Protector(PageAlignedAddr, MProtectLen, PageSize);
327 const size_t PageSize variable
[all...]
H A Dxray_utils.cpp53 const size_t PageSize = flags()->xray_page_size_override > 0 variable
56 if (RoundUpTo(Offset, PageSize) != RoundUpTo(Offset + TotalBytes, PageSize)) {
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DProcess.h57 if (auto PageSize = getPageSize())
58 return *PageSize;
60 consumeError(PageSize.takeError());
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/
H A DOrcABISupport.cpp150 static const unsigned PageSize = sys::Process::getPageSizeEstimate(); local
151 unsigned NumPages = ((MinStubs * StubSize) + (PageSize - 1)) / PageSize;
152 unsigned NumStubs = (NumPages * PageSize) / StubSize;
157 2 * NumPages * PageSize, nullptr,
164 sys::MemoryBlock StubsBlock(StubsMem.base(), NumPages * PageSize);
166 NumPages * PageSize, local
167 NumPages * PageSize); local
171 uint64_t PtrOffsetField = static_cast<uint64_t>(NumPages * PageSize)
232 static const unsigned PageSize local
248 NumPages * PageSize, local
249 NumPages * PageSize); local
500 static const unsigned PageSize = sys::Process::getPageSizeEstimate(); local
516 NumPages * PageSize, local
517 NumPages * PageSize); local
686 static const unsigned PageSize = sys::Process::getPageSizeEstimate(); local
702 NumPages * PageSize, local
703 NumPages * PageSize); local
932 static const unsigned PageSize = sys::Process::getPageSizeEstimate(); local
948 NumPages * PageSize, local
949 NumPages * PageSize); local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/Unix/
H A DMemory.inc116 static const size_t PageSize = Process::getPageSizeEstimate();
117 const size_t NumPages = (NumBytes+PageSize-1)/PageSize;
119 if (Start && Start % PageSize)
120 Start += PageSize - Start % PageSize;
123 void *Addr = ::mmap(reinterpret_cast<void *>(Start), PageSize*NumPages, Protect,
146 Result.AllocatedSize = PageSize*NumPages;
175 static const Align PageSize = Align(Process::getPageSizeEstimate());
183 uintptr_t Start = alignAddr((const uint8_t *)M.Address - PageSize
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_thread.cpp12 uptr PageSize = GetPageSizeCached(); local
13 uptr size = RoundUpTo(sizeof(MsanThread), PageSize);
H A Dmsan_poisoning.cpp122 uptr PageSize = GetPageSizeCached(); local
129 uptr page_beg = RoundUpTo(shadow_beg, PageSize);
130 uptr page_end = RoundDownTo(shadow_end, PageSize);
H A Dmsan_allocator.cpp284 uptr PageSize = GetPageSizeCached(); local
285 if (UNLIKELY(CheckForPvallocOverflow(size, PageSize))) {
292 size = size ? RoundUpTo(size, PageSize) : PageSize;
293 return SetErrnoOnNull(MsanAllocate(stack, size, PageSize, false));
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/gwp_asan/
H A Dguarded_pool_allocator.cpp132 PageSize = getPlatformPageSize();
143 PageSize * (1 + MaxSimultaneousAllocations) +
252 size_t GuardedPoolAllocator::maximumAllocationSize() const { return PageSize; }
261 return ByteOffsetFromPoolStart / (maximumAllocationSize() + PageSize);
265 return GuardedPagePool + (PageSize * (1 + N)) + (maximumAllocationSize() * N);
270 return Ptr & ~(static_cast<uintptr_t>(PageSize) - 1);
275 size_t PageOffsetFromPoolStart = (Ptr - GuardedPagePool) / PageSize;
276 size_t PagesPerSlot = maximumAllocationSize() / PageSize;
326 if (Ptr <= GuardedPagePool + PageSize)
328 if (Ptr > GuardedPagePoolEnd - PageSize)
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DSectionMemoryManager.cpp175 static const size_t PageSize = sys::Process::getPageSizeEstimate(); local
178 (PageSize - ((uintptr_t)M.base() % PageSize)) % PageSize;
182 TrimmedSize -= TrimmedSize % PageSize;
187 assert(((uintptr_t)Trimmed.base() % PageSize) == 0);
188 assert((Trimmed.allocatedSize() % PageSize) == 0);
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/fuzzer/
H A DFuzzerUtil.h92 inline size_t PageSize() { return 4096; } function in namespace:fuzzer
95 size_t Mask = PageSize() - 1;
101 size_t Mask = PageSize() - 1;
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_procmaps_bsd.cpp82 size_t PageSize = GetPageSize(); local
84 MmapedSize = ((MmapedSize - 1) / PageSize + 1) * PageSize;
H A Dsanitizer_file.cpp102 uptr PageSize = GetPageSizeCached();
103 uptr kMinFileLen = Min(PageSize, max_len);
145 uptr PageSize = GetPageSizeCached();
152 buff->resize(Min(Max(PageSize, read_len * 2), max_len));
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_allocator.cpp216 uptr PageSize = GetPageSizeCached(); local
217 if (UNLIKELY(CheckForPvallocOverflow(size, PageSize))) {
224 size = size ? RoundUpTo(size, PageSize) : PageSize;
225 return SetErrnoOnNull(Allocate(stack, size, PageSize, kAlwaysClearMemory));
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_allocator.cpp322 uptr PageSize = GetPageSizeCached(); local
323 if (UNLIKELY(CheckForPvallocOverflow(size, PageSize))) {
330 size = size ? RoundUpTo(size, PageSize) : PageSize;
331 return SetErrnoOnNull(HwasanAllocate(stack, size, PageSize, false));
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_mman.cpp302 uptr PageSize = GetPageSizeCached(); local
303 if (UNLIKELY(CheckForPvallocOverflow(sz, PageSize))) {
311 sz = sz ? RoundUpTo(sz, PageSize) : PageSize;
312 return SetErrnoOnNull(user_alloc_internal(thr, pc, sz, PageSize));

Completed in 230 milliseconds

12