Home
last modified time | relevance | path

Searched refs:kPageSize (Results 1 – 5 of 5) 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/iorap/src/compiler/
Dcompiler.cc937 int kPageSize = 4096; // TODO: don't hardcode the page size. in PerformCompilation() local
946 static_cast<int64_t>(event.index) * kPageSize) { in PerformCompilation()
947 entry->set_file_length(entry->file_length() + kPageSize); in PerformCompilation()
960 entry->set_file_offset(static_cast<int64_t>(event.index) * kPageSize); in PerformCompilation()
961 entry->set_file_length(kPageSize); in PerformCompilation()
/system/unwinding/libunwindstack/tests/fuzz/
DUnwinderComponentCreator.cpp117 static constexpr size_t kPageSize = 4096; variable
120 if (__builtin_add_overflow(address, kPageSize - 1, aligned_address)) { in AlignToPage()
123 *aligned_address &= ~(kPageSize - 1); in AlignToPage()
/system/libziparchive/
Dzip_writer.cc251 static constexpr auto kPageSize = 4096; in StartAlignedEntryWithTime() local
252 static constexpr char kSmallZeroPadding[kPageSize] = {}; in StartAlignedEntryWithTime()