/freebsd-11-stable/contrib/llvm-project/llvm/tools/llvm-objcopy/MachO/ |
H A D | MachOWriter.h | 26 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 D | MachOLayoutBuilder.h | 22 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 D | InstrProfilingBuffer.c | 53 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 D | scudo_allocator_secondary.h | 81 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 D | release.h | 155 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 D | secondary.h | 122 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 D | wrappers_c_checks.h | 60 // multiple of PageSize. 61 inline bool checkForPvallocOverflow(uptr Size, uptr PageSize) { argument 62 return roundUpTo(Size, PageSize) < Size;
|
H A D | primary64.h | 69 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 D | primary32.h | 70 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 D | xray_interface.cpp | 102 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 D | xray_utils.cpp | 53 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 D | Process.h | 57 if (auto PageSize = getPageSize()) 58 return *PageSize; 60 consumeError(PageSize.takeError());
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
H A D | OrcABISupport.cpp | 150 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 D | Memory.inc | 116 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 D | msan_thread.cpp | 12 uptr PageSize = GetPageSizeCached(); local 13 uptr size = RoundUpTo(sizeof(MsanThread), PageSize);
|
H A D | msan_poisoning.cpp | 122 uptr PageSize = GetPageSizeCached(); local 129 uptr page_beg = RoundUpTo(shadow_beg, PageSize); 130 uptr page_end = RoundDownTo(shadow_end, PageSize);
|
H A D | msan_allocator.cpp | 284 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 D | guarded_pool_allocator.cpp | 132 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 D | SectionMemoryManager.cpp | 175 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 D | FuzzerUtil.h | 92 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 D | sanitizer_procmaps_bsd.cpp | 82 size_t PageSize = GetPageSize(); local 84 MmapedSize = ((MmapedSize - 1) / PageSize + 1) * PageSize;
|
H A D | sanitizer_file.cpp | 102 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 D | lsan_allocator.cpp | 216 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 D | hwasan_allocator.cpp | 322 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 D | tsan_mman.cpp | 302 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));
|