Searched defs:PageSize (Results 1 - 19 of 19) sorted by relevance

/external/compiler-rt/test/asan/TestCases/Posix/
H A Ddlclose-test.cc49 size_t PageSize = sysconf(_SC_PAGESIZE); local
73 size_t page_beg = ((size_t)addr) & ~(PageSize - 1);
74 void *res = mmap((void*)(page_beg), PageSize,
/external/llvm/unittests/Support/
H A DMemoryTest.cpp24 PageSize = sys::Process::getPageSize();
56 size_t PageSize; member in class:__anon13232::MappedMemoryTest
266 MemoryBlock Near((void*)(3*PageSize), 16);
314 MemoryBlock Near((void*)(4*PageSize), 0);
340 MemoryBlock Near((void*)(2*PageSize+5), 0);
/external/compiler-rt/lib/msan/
H A Dmsan_thread.cc12 uptr PageSize = GetPageSizeCached(); local
13 uptr size = RoundUpTo(sizeof(MsanThread), PageSize);
H A Dmsan_poisoning.cc123 uptr PageSize = GetPageSizeCached(); local
130 uptr page_beg = RoundUpTo(shadow_beg, PageSize);
131 uptr page_end = RoundDownTo(shadow_end, PageSize);
H A Dmsan_interceptors.cc211 uptr PageSize = GetPageSizeCached(); local
212 size = RoundUpTo(size, PageSize);
215 size = PageSize;
217 void *ptr = MsanReallocate(&stack, nullptr, size, PageSize, false);
/external/llvm/include/llvm/ExecutionEngine/Orc/
H A DOrcTargetSupport.h29 static const unsigned PageSize = 4096; member in class:llvm::orc::OrcX86_64
/external/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_common_test.cc74 uptr PageSize = GetPageSizeCached(); local
79 size * PageSize, alignment * PageSize, "MmapAlignedOrDieTest");
80 EXPECT_EQ(0U, res % (alignment * PageSize));
81 internal_memset((void*)res, 1, size * PageSize);
82 UnmapOrDie((void*)res, size * PageSize);
/external/llvm/lib/ExecutionEngine/Orc/
H A DOrcTargetSupport.cpp125 unsigned PageSize = sys::Process::getPageSize(); local
126 unsigned NumPages = ((MinStubs * StubSize) + (PageSize - 1)) / PageSize;
127 unsigned NumStubs = (NumPages * PageSize) / StubSize;
133 sys::Memory::allocateMappedMemory(2 * NumPages * PageSize, nullptr,
142 sys::MemoryBlock StubsBlock(StubsMem.base(), NumPages * PageSize);
144 NumPages * PageSize, local
145 NumPages * PageSize); local
150 static_cast<uint64_t>(NumPages * PageSize - 6) << 16;
/external/llvm/lib/ExecutionEngine/
H A DSectionMemoryManager.cpp164 static const size_t PageSize = sys::Process::getPageSize(); local
167 (PageSize - ((uintptr_t)M.base() % PageSize)) % PageSize;
171 TrimmedSize -= TrimmedSize % PageSize;
175 assert(((uintptr_t)Trimmed.base() % PageSize) == 0);
176 assert((Trimmed.size() % PageSize) == 0);
/external/compiler-rt/lib/asan/
H A Dasan_rtl.cc586 uptr PageSize = GetPageSizeCached(); local
590 bottom = ((uptr)&local_stack - PageSize) & ~(PageSize - 1);
H A Dasan_thread.cc86 uptr PageSize = GetPageSizeCached(); local
87 uptr size = RoundUpTo(sizeof(AsanThread), PageSize);
H A Dasan_interceptors.cc312 uptr PageSize = GetPageSizeCached(); local
313 uptr bottom = stack & ~(PageSize - 1);
315 ssize = RoundUpTo(ssize, PageSize);
H A Dasan_allocator.cc740 uptr PageSize = GetPageSizeCached(); local
741 size = RoundUpTo(size, PageSize);
744 size = PageSize;
746 return instance.Allocate(size, PageSize, stack, FROM_MALLOC, true);
/external/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix.cc139 uptr PageSize = GetPageSizeCached(); local
141 RoundUpTo(size, PageSize),
153 uptr PageSize = GetPageSizeCached(); local
154 uptr p = internal_mmap((void*)(fixed_addr & ~(PageSize - 1)),
155 RoundUpTo(size, PageSize),
H A Dsanitizer_posix_libcdep.cc259 uptr PageSize = GetPageSizeCached(); local
260 uptr p = internal_mmap((void *)(fixed_addr & ~(PageSize - 1)),
261 RoundUpTo(size, PageSize), PROT_READ | PROT_WRITE,
H A Dsanitizer_common.cc29 static uptr PageSize; local
30 if (!PageSize)
31 PageSize = GetPageSize();
32 return PageSize;
188 uptr PageSize = GetPageSizeCached(); local
189 uptr kMinFileLen = PageSize;
203 while (*read_len + PageSize <= size) {
205 if (!ReadFromFile(fd, *buff + *read_len, PageSize, &just_read, errno_p)) {
237 // uptr PageSize = GetPageSizeCached();
/external/llvm/lib/Support/
H A DMemoryBuffer.cpp279 int PageSize,
289 if (MapSize < 4 * 4096 || MapSize < (unsigned)PageSize)
316 if ((FileSize & (PageSize -1)) == 0)
334 static int PageSize = sys::Process::getPageSize(); local
360 PageSize, IsVolatileSize)) {
274 shouldUseMmap(int FD, size_t FileSize, size_t MapSize, off_t Offset, bool RequiresNullTerminator, int PageSize, bool IsVolatileSize) argument
/external/lldb/tools/debugserver/source/MacOSX/
H A DMachVMMemory.cpp33 MachVMMemory::PageSize(task_t task) function in class:MachVMMemory
46 DNBLogThreadedIf(LOG_TASK, "MachVMMemory::PageSize task_info returned page size of 0x%x", (int) vm_info.page_size);
52 DNBLogThreadedIf(LOG_TASK, "MachVMMemory::PageSize task_info call failed to get page size, TASK_VM_INFO %d, TASK_VM_INFO_COUNT %d, kern return %d", TASK_VM_INFO, TASK_VM_INFO_COUNT, kr);
66 const nub_size_t page_size = PageSize(task);
210 stolenPages = stolen / PageSize (task);
301 vm_size_t pagesize = PageSize (task);
348 vm_size_t pagesize = PageSize (task);
H A DMachTask.cpp427 pagesize = PageSize();
1034 if (function_addresses_buffer[*count-1] < PageSize())
1040 MachTask::PageSize () function in class:MachTask
1042 return m_vm_memory.PageSize (m_task);

Completed in 159 milliseconds