Home
last modified time | relevance | path

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

12

/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/libcutils/
Dashmem_test.cpp71 constexpr size_t size = PAGE_SIZE; in TEST()
93 constexpr size_t size = PAGE_SIZE; in TEST()
137 constexpr size_t size = PAGE_SIZE * 4; in TEST()
138 constexpr size_t dataSize = PAGE_SIZE * 2; in TEST()
139 constexpr size_t holeSize = PAGE_SIZE; in TEST()
192 constexpr size_t size = PAGE_SIZE; in TEST()
220 constexpr size_t size = PAGE_SIZE; in TEST()
241 constexpr size_t size = PAGE_SIZE; in TEST()
/system/netd/tests/
Dnetd_test.cpp85 static char stack[PAGE_SIZE * 2]; in nsTest()
89 int tid = clone(newThread, &stack[PAGE_SIZE], flags | CLONE_VFORK, NULL); in nsTest()
/system/core/trusty/apploader/fuzz/
Dapp_fuzzer.cpp47 return (val + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1); in RoundPageUp()
110 uint64_t shm_len = size ? RoundPageUp(size) : PAGE_SIZE; in LLVMFuzzerTestOneInput()
/system/unwinding/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/libdebuggerd/
Dscudo.cpp51 uintptr_t fault_page = untagged_fault_addr_ & ~(PAGE_SIZE - 1); in ScudoCrashData()
53 uintptr_t memory_begin = fault_page - PAGE_SIZE * 16; in ScudoCrashData()
58 uintptr_t memory_end = fault_page + PAGE_SIZE * 16; in ScudoCrashData()
64 for (auto i = memory_begin; i != memory_end; i += PAGE_SIZE) { in ScudoCrashData()
65 process_memory->ReadFully(i, memory.get() + i - memory_begin, PAGE_SIZE); in ScudoCrashData()
/system/core/trusty/confirmationui/
DTrustyApp.cpp34 return (val + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1); in RoundPageUp()
/system/core/trusty/fuzz/include/trusty/fuzz/
Dutils.h24 #define TIPC_MAX_MSG_SIZE PAGE_SIZE
/system/core/debuggerd/handler/
Ddebuggerd_handler.cpp614 void* thread_stack_allocation = mmap(nullptr, PAGE_SIZE * (thread_stack_pages + 2), PROT_NONE, in debuggerd_init()
620 char* stack = static_cast<char*>(thread_stack_allocation) + PAGE_SIZE; in debuggerd_init()
621 if (mprotect(stack, PAGE_SIZE * thread_stack_pages, PROT_READ | PROT_WRITE) != 0) { in debuggerd_init()
626 stack = (stack + thread_stack_pages * PAGE_SIZE - 1); in debuggerd_init()
/system/core/trusty/utils/acvp/
Dtrusty_modulewrapper.cpp45 return (size + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1); in AlignUpToPage()
/system/libfmq/include/fmq/
DMessageQueueBase.h700 kAshmemSizePageAligned = (kMetaDataSize + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1); in MessageQueueBase()
704 kMetaDataSize + PAGE_SIZE - 1) & in MessageQueueBase()
705 ~(PAGE_SIZE - 1); in MessageQueueBase()
1273 int mapOffset = (grantors[grantorIdx].offset / PAGE_SIZE) * PAGE_SIZE; in mapGrantorDescr()
1293 int mapOffset = (grantors[grantorIdx].offset / PAGE_SIZE) * PAGE_SIZE; in unmapGrantorDescr()
/system/core/trusty/coverage/
Dcoverage.cpp47 return (val + (PAGE_SIZE - 1)) & ~(PAGE_SIZE - 1); in RoundPageUp()
/system/memory/libmemunreachable/
DPtracerThread.cpp71 stack_ = std::make_unique<Stack>(128*PAGE_SIZE); in PtracerThread()
/system/extras/mmap-perf/
DmmapPerf.cpp17 static const size_t pageSize = PAGE_SIZE;
/system/core/trusty/libtrusty/tipc-test/
Dtipc_test.c916 size_t buf_size = PAGE_SIZE * num_pages; in send_fd_test()
950 ret |= strcmp("Hello from Trusty!", (const char*)&buf[skip * PAGE_SIZE]) ? (-1) : 0; in send_fd_test()
955 munmap((char*)buf, PAGE_SIZE); in send_fd_test()
/system/extras/pagecache/
Dpagecache.py14 PAGE_SIZE = 4096 variable
55 return "%.2f" % round(num_pages * PAGE_SIZE / 1024.0 / 1024.0, 2)
/system/libfmq/fuzzer/
Dfmq_fuzzer.cpp43 static constexpr size_t kMaxNumElements = PAGE_SIZE * 10 / sizeof(payload_t) - kAlignment + 1;
/system/incremental_delivery/incfs/include/
Dincfs_inline.h275 INCFS_DEFAULT_PAGE_READ_BUFFER_PAGES * PAGE_SIZE / sizeof(ReadInfo); in waitForPageReads()
283 INCFS_DEFAULT_PAGE_READ_BUFFER_PAGES * PAGE_SIZE / sizeof(ReadInfoWithUid); in waitForPageReads()
/system/core/debuggerd/crasher/
Dcrasher.cpp149 mmap(nullptr, PAGE_SIZE, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); in leak()
/system/logging/liblog/
Dlogd_reader.cpp101 if (((size_t)ret == len) || (buf_size < PAGE_SIZE)) { in SendLogdControlMessage()
/system/memory/lmkd/
Dstatslog.cpp100 while (fgets(buf, PAGE_SIZE, fp) != NULL) { in memory_stat_from_cgroup()
Dlmkd.cpp614 static ssize_t buf_size = PAGE_SIZE; in reread_file()
851 mem_st.rss_in_bytes = rss_in_pages * PAGE_SIZE; in poll_kernel()
1097 char buf[PAGE_SIZE]; in cmd_procprio()
2144 char buf[PAGE_SIZE]; in kill_one_process()
3156 page_k = PAGE_SIZE; in init()
/system/core/debuggerd/
Ddebuggerd_test.cpp293 constexpr size_t read_length = PAGE_SIZE; in ConsumeFd()
298 result.resize(result.size() + PAGE_SIZE); in ConsumeFd()
303 result.resize(result.size() - PAGE_SIZE); in ConsumeFd()
307 result.resize(result.size() - PAGE_SIZE + rc); in ConsumeFd()
/system/logging/logd/
Dlogd_test.cpp56 if (((size_t)ret == len) || (len < PAGE_SIZE)) { in send_to_control()
/system/logging/liblog/tests/
Dliblog_benchmark.cpp895 if (((size_t)ret == len) || (len < PAGE_SIZE)) { in send_to_control()

12