Home
last modified time | relevance | path

Searched refs:PAGE_SIZE (Results 1 – 18 of 18) sorted by relevance

/system/core/trusty/keymaster/include/trusty_keymaster/ipc/
Dtrusty_keymaster_ipc.h25 const uint32_t TRUSTY_KEYMASTER_RECV_BUF_SIZE = 2 * PAGE_SIZE;
27 (PAGE_SIZE - sizeof(struct keymaster_message) - 16 /* tipc header */);
/system/core/debuggerd/libdebuggerd/
Dscudo.cpp48 uintptr_t fault_page = untagged_fault_addr_ & ~(PAGE_SIZE - 1); in ScudoCrashData()
50 uintptr_t memory_begin = fault_page - PAGE_SIZE * 16; in ScudoCrashData()
55 uintptr_t memory_end = fault_page + PAGE_SIZE * 16; in ScudoCrashData()
61 for (auto i = memory_begin; i != memory_end; i += PAGE_SIZE) { in ScudoCrashData()
62 process_memory->ReadFully(i, memory.get() + i - memory_begin, PAGE_SIZE); in ScudoCrashData()
/system/core/libcutils/
Dashmem_test.cpp66 constexpr size_t size = PAGE_SIZE; in TEST()
88 constexpr size_t size = PAGE_SIZE; in TEST()
132 constexpr size_t size = PAGE_SIZE * 4; in TEST()
133 constexpr size_t dataSize = PAGE_SIZE * 2; in TEST()
134 constexpr size_t holeSize = PAGE_SIZE; in TEST()
187 constexpr size_t size = PAGE_SIZE; in TEST()
215 constexpr size_t size = PAGE_SIZE; in TEST()
236 constexpr size_t size = PAGE_SIZE; in TEST()
/system/core/libbacktrace/
Dbacktrace_benchmarks.cpp86 void* memory = mmap(nullptr, PAGE_SIZE, flags, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in CreateMap()
91 memset(memory, 0x1, PAGE_SIZE); in CreateMap()
93 if (prctl(PR_SET_VMA, PR_SET_VMA_ANON_NAME, memory, PAGE_SIZE, "test_map") == -1) { in CreateMap()
/system/core/debuggerd/handler/
Ddebuggerd_handler.cpp616 void* thread_stack_allocation = mmap(nullptr, PAGE_SIZE * (thread_stack_pages + 2), PROT_NONE, in debuggerd_init()
622 char* stack = static_cast<char*>(thread_stack_allocation) + PAGE_SIZE; in debuggerd_init()
623 if (mprotect(stack, PAGE_SIZE * thread_stack_pages, PROT_READ | PROT_WRITE) != 0) { in debuggerd_init()
628 stack = (stack + thread_stack_pages * PAGE_SIZE - 1); in debuggerd_init()
/system/memory/lmkd/
Dstatslog.cpp145 while (fgets(buf, PAGE_SIZE, fp) != NULL) { in memory_stat_from_cgroup()
184 mem_st->rss_in_bytes = (rss_in_pages * PAGE_SIZE); in memory_stat_from_procfs()
Dlmkd.cpp605 static ssize_t buf_size = PAGE_SIZE; in reread_file()
799 mem_st.rss_in_bytes = rss_in_pages * PAGE_SIZE; in poll_kernel()
935 char buf[PAGE_SIZE]; in proc_get_tgid()
2979 page_k = PAGE_SIZE; in init()
/system/netd/tests/
Dnetd_test.cpp69 static char stack[PAGE_SIZE * 2]; in nsTest()
73 int tid = clone(newThread, &stack[PAGE_SIZE], flags | CLONE_VFORK, NULL); in nsTest()
/system/libfmq/include/fmq/
DMessageQueueBase.h651 (Descriptor::alignToWordBoundary(kQueueSizeBytes) + kMetaDataSize + PAGE_SIZE - 1) & in MessageQueueBase()
652 ~(PAGE_SIZE - 1); in MessageQueueBase()
1182 int mapOffset = (grantors[grantorIdx].offset / PAGE_SIZE) * PAGE_SIZE; in mapGrantorDescr()
1203 int mapOffset = (grantors[grantorIdx].offset / PAGE_SIZE) * PAGE_SIZE; in unmapGrantorDescr()
/system/extras/mmap-perf/
DmmapPerf.cpp17 static const size_t pageSize = PAGE_SIZE;
/system/extras/pagecache/
Dpagecache.py14 PAGE_SIZE = 4096 variable
55 return "%.2f" % round(num_pages * PAGE_SIZE / 1024.0 / 1024.0, 2)
/system/core/debuggerd/
Ddebuggerd_test.cpp275 constexpr size_t read_length = PAGE_SIZE; in ConsumeFd()
280 result.resize(result.size() + PAGE_SIZE); in ConsumeFd()
285 result.resize(result.size() - PAGE_SIZE); in ConsumeFd()
289 result.resize(result.size() - PAGE_SIZE + rc); in ConsumeFd()
/system/core/debuggerd/crasher/
Dcrasher.cpp145 mmap(nullptr, PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in leak()
/system/core/liblog/
Dlogd_reader.cpp88 if (((size_t)ret == len) || (buf_size < PAGE_SIZE)) { in SendLogdControlMessage()
/system/core/adb/daemon/
Dusb.cpp61 static constexpr size_t kUsbReadSize = 4 * PAGE_SIZE;
64 static constexpr size_t kUsbWriteSize = 4 * PAGE_SIZE;
/system/incremental_delivery/incfs/include/
Dincfs_inline.h250 INCFS_DEFAULT_PAGE_READ_BUFFER_PAGES * PAGE_SIZE / sizeof(ReadInfo); in waitForPageReads()
/system/core/logd/
Dlogd_test.cpp52 if (((size_t)ret == len) || (len < PAGE_SIZE)) { in send_to_control()
/system/core/liblog/tests/
Dliblog_benchmark.cpp919 if (((size_t)ret == len) || (len < PAGE_SIZE)) { in send_to_control()