Home
last modified time | relevance | path

Searched refs:PageSize (Results 1 – 25 of 26) sorted by relevance

12

/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common.cc25 static uptr PageSize; in GetPageSizeCached() local
26 if (!PageSize) in GetPageSizeCached()
27 PageSize = GetPageSize(); in GetPageSizeCached()
28 return PageSize; in GetPageSizeCached()
85 uptr PageSize = GetPageSizeCached(); in ReadFileToBuffer() local
86 uptr kMinFileLen = PageSize; in ReadFileToBuffer()
101 while (read_len + PageSize <= size) { in ReadFileToBuffer()
102 uptr just_read = internal_read(fd, *buff + read_len, PageSize); in ReadFileToBuffer()
Dsanitizer_posix.cc139 uptr PageSize = GetPageSizeCached(); in MmapNoReserveOrDie() local
141 RoundUpTo(size, PageSize), in MmapNoReserveOrDie()
157 uptr PageSize = GetPageSizeCached(); in MmapFixedNoReserve() local
158 uptr p = internal_mmap((void*)(fixed_addr & ~(PageSize - 1)), in MmapFixedNoReserve()
159 RoundUpTo(size, PageSize), in MmapFixedNoReserve()
173 uptr PageSize = GetPageSizeCached(); in MmapFixedOrDie() local
174 uptr p = internal_mmap((void*)(fixed_addr & ~(PageSize - 1)), in MmapFixedOrDie()
175 RoundUpTo(size, PageSize), in MmapFixedOrDie()
/external/llvm/lib/Support/Unix/
DMemory.inc91 static const size_t PageSize = process::get_self()->page_size();
92 const size_t NumPages = (NumBytes+PageSize-1)/PageSize;
117 if (Start && Start % PageSize)
118 Start += PageSize - Start % PageSize;
120 void *Addr = ::mmap(reinterpret_cast<void*>(Start), PageSize*NumPages,
132 Result.Size = NumPages*PageSize;
184 size_t PageSize = process::get_self()->page_size();
185 size_t NumPages = (NumBytes+PageSize-1)/PageSize;
209 void *pa = ::mmap(start, PageSize*NumPages, PROT_READ|PROT_EXEC,
212 void *pa = ::mmap(start, PageSize*NumPages, PROT_READ|PROT_WRITE|PROT_EXEC,
[all …]
DProcess.inc106 self_process::self_process() : PageSize(getPageSize()) {
/external/compiler-rt/test/asan/TestCases/
Ddlclose-test.cc42 size_t PageSize = sysconf(_SC_PAGESIZE); in main() local
66 size_t page_beg = ((size_t)addr) & ~(PageSize - 1); in main()
67 void *res = mmap((void*)(page_beg), PageSize, in main()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_common_test.cc74 uptr PageSize = GetPageSizeCached(); in TEST() local
79 size * PageSize, alignment * PageSize, "MmapAlignedOrDieTest"); in TEST()
80 EXPECT_EQ(0U, res % (alignment * PageSize)); in TEST()
81 internal_memset((void*)res, 1, size * PageSize); in TEST()
82 UnmapOrDie((void*)res, size * PageSize); in TEST()
/external/compiler-rt/lib/asan/
Dasan_poisoning.h38 uptr PageSize = GetPageSizeCached(); in FastPoisonShadow() local
51 uptr page_beg = RoundUpTo(shadow_beg, PageSize); in FastPoisonShadow()
52 uptr page_end = RoundDownTo(shadow_end, PageSize); in FastPoisonShadow()
Dasan_thread.cc80 uptr PageSize = GetPageSizeCached(); in Create() local
81 uptr size = RoundUpTo(sizeof(AsanThread), PageSize); in Create()
Dasan_rtl.cc742 uptr PageSize = GetPageSizeCached(); in __asan_handle_no_return() local
744 uptr bottom = ((uptr)&local_stack - PageSize) & ~(PageSize-1); in __asan_handle_no_return()
Dasan_allocator2.cc631 uptr PageSize = GetPageSizeCached(); in asan_pvalloc() local
632 size = RoundUpTo(size, PageSize); in asan_pvalloc()
635 size = PageSize; in asan_pvalloc()
637 return Allocate(size, PageSize, stack, FROM_MALLOC, true); in asan_pvalloc()
Dasan_interceptors.cc238 uptr PageSize = GetPageSizeCached(); in DEFINE_REAL() local
239 uptr bottom = stack & ~(PageSize - 1); in DEFINE_REAL()
241 ssize = RoundUpTo(ssize, PageSize); in DEFINE_REAL()
/external/llvm/lib/Support/
DMemoryBuffer.cpp268 int PageSize, in shouldUseMmap() argument
278 if (MapSize < 4 * 4096 || MapSize < (unsigned)PageSize) in shouldUseMmap()
305 if ((FileSize & (PageSize -1)) == 0) in shouldUseMmap()
315 static int PageSize = sys::process::get_self()->page_size(); in getOpenFileImpl() local
341 PageSize, IsVolatileSize)) { in getOpenFileImpl()
/external/llvm/include/llvm/Support/
DProcess.h124 size_t page_size() const { return PageSize; }; in page_size()
133 size_t PageSize;
/external/compiler-rt/lib/msan/
Dmsan_thread.cc12 uptr PageSize = GetPageSizeCached(); in Create() local
13 uptr size = RoundUpTo(sizeof(MsanThread), PageSize); in Create()
Dmsan_interceptors.cc189 uptr PageSize = GetPageSizeCached(); in INTERCEPTOR() local
190 size = RoundUpTo(size, PageSize); in INTERCEPTOR()
193 size = PageSize; in INTERCEPTOR()
195 void *ptr = MsanReallocate(&stack, 0, size, PageSize, false); in INTERCEPTOR()
1297 uptr PageSize = GetPageSizeCached(); in PoisonShadow() local
1304 uptr page_beg = RoundUpTo(shadow_beg, PageSize); in PoisonShadow()
1305 uptr page_end = RoundDownTo(shadow_end, PageSize); in PoisonShadow()
/external/compiler-rt/lib/lsan/
Dlsan_interceptors.cc152 uptr PageSize = GetPageSizeCached(); in INTERCEPTOR() local
153 size = RoundUpTo(size, PageSize); in INTERCEPTOR()
156 size = PageSize; in INTERCEPTOR()
/external/lldb/tools/debugserver/source/MacOSX/
DMachVMMemory.cpp33 MachVMMemory::PageSize(task_t task) in PageSize() function in MachVMMemory
66 const nub_size_t page_size = PageSize(task); in MaxBytesLeftInPage()
210 stolenPages = stolen / PageSize (task); in GetStolenPages()
301 vm_size_t pagesize = PageSize (task); in GetRegionSizes()
348 vm_size_t pagesize = PageSize (task); in GetMemorySizes()
DMachVMMemory.h29 nub_size_t PageSize(task_t task);
DMachTask.h95 nub_size_t PageSize ();
DMachTask.cpp427 pagesize = PageSize(); in GetProfileData()
1034 if (function_addresses_buffer[*count-1] < PageSize()) in EnumerateMallocFrames()
1040 MachTask::PageSize () in PageSize() function in MachTask
1042 return m_vm_memory.PageSize (m_task); in PageSize()
/external/llvm/unittests/Support/
DMemoryTest.cpp24 PageSize = sys::process::get_self()->page_size(); in MappedMemoryTest()
56 size_t PageSize; member in __anon5e8935b70111::MappedMemoryTest
266 MemoryBlock Near((void*)(3*PageSize), 16); in TEST_P()
314 MemoryBlock Near((void*)(4*PageSize), 0); in TEST_P()
340 MemoryBlock Near((void*)(2*PageSize+5), 0); in TEST_P()
/external/chromium_org/tools/telemetry/telemetry/core/platform/
Dwin_platform_backend.py47 return performance_info.CommitTotal * performance_info.PageSize / 1024
52 return performance_info.PhysicalTotal * performance_info.PageSize / 1024
/external/chromium_org/win8/metro_driver/
Dprint_document_source.cc186 D2D1_SIZE_F page_size = D2D1::SizeF(page_desc.PageSize.Width, in MakeDocument()
187 page_desc.PageSize.Height); in MakeDocument()
241 width_ = page_desc.PageSize.Width; in Paginate()
242 height_ = page_desc.PageSize.Height; in Paginate()
/external/chromium_org/third_party/WebKit/Source/core/css/parser/
DCSSPropertyParser.h282 PageSize, enumerator
/external/llvm/lib/Support/Windows/
DProcess.inc101 self_process::self_process() : PageSize(getPageSize()) {

12