Home
last modified time | relevance | path

Searched refs:kPageSize (Results 1 – 3 of 3) sorted by relevance

/system/extras/zram-perf/
Dzram-perf.cpp14 static const size_t kPageSize = sysconf(_SC_PAGESIZE); variable
21 for (int i = 0; i < kPageSize / sizeof(start); i++) { in fillPageRand()
34 for (int i = 0; i < kPageSize / sizeof(val); i += kPatternSize) { in fillPageCompressible()
74 AlignedAlloc page(kPageSize, kPageSize); in fillWithCompressible()
75 for (uint64_t offset = 0; offset < devSize; offset += kPageSize) { in fillWithCompressible()
77 ssize_t ret = write(m_fd, page.ptr(), kPageSize); in fillWithCompressible()
78 if (ret != kPageSize) { in fillWithCompressible()
87 AlignedAlloc page(kPageSize, kPageSize); in benchSequentialRead()
91 for (uint64_t offset = 0; offset < devSize; offset += kPageSize) { in benchSequentialRead()
94 ssize_t ret = read(m_fd, page.ptr(), kPageSize); in benchSequentialRead()
[all …]
/system/memory/libmemunreachable/
DAllocator.cpp57 static constexpr size_t kPageSize = 4096; variable
59 static constexpr size_t kUsableChunkSize = kChunkSize - kPageSize;
64 static constexpr unsigned int kUsablePagesPerChunk = kUsableChunkSize / kPageSize;
123 size = (size + kPageSize - 1) & ~(kPageSize - 1); in MapAligned()
126 size_t map_size = size + align - kPageSize; in MapAligned()
211 static_assert(sizeof(Chunk) <= kPageSize, "header must fit in page");
259 unsigned int page = n * allocation_size_ / kPageSize; in Alloc()
294 if (frees_since_purge_++ * allocation_size_ > 16 * kPageSize) { in Free()
308 void* mem = MapAligned(kPageSize, kPageSize); in operator new()
318 munmap(ptr, kPageSize); in operator delete()
[all …]
/system/libziparchive/
Dzip_writer.cc251 static constexpr auto kPageSize = 4096; in StartAlignedEntryWithTime() local
252 static constexpr char kSmallZeroPadding[kPageSize] = {}; in StartAlignedEntryWithTime()