/system/unwinding/libunwindstack/tests/ |
D | MemoryFileTest.cpp | 68 size_t pagesize = getpagesize(); in TEST_F() local 70 for (size_t i = 0; i < pagesize; i++) { in TEST_F() 76 ASSERT_TRUE(memory_.Init(tf_->path, pagesize + 15)); in TEST_F() 84 size_t pagesize = getpagesize(); in TEST_F() local 86 for (size_t i = 0; i < 2 * pagesize; i++) { in TEST_F() 87 data += static_cast<char>((i / pagesize) + '0'); in TEST_F() 92 ASSERT_TRUE(memory_.Init(tf_->path, 2 * pagesize)); in TEST_F() 99 expected_str += static_cast<char>(((i + pagesize) % 10) + '0'); in TEST_F() 105 size_t pagesize = getpagesize(); in TEST_F() local 107 for (size_t i = 0; i < 2 * pagesize; i++) { in TEST_F() [all …]
|
D | MemoryRemoteTest.cpp | 111 int pagesize = getpagesize(); in TEST_F() local 112 void* src = mmap(nullptr, pagesize * 2, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE,-1, 0); in TEST_F() 113 memset(src, 0x4c, pagesize * 2); in TEST_F() 116 ASSERT_EQ(0, munmap(reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(src) + pagesize), in TEST_F() 117 pagesize)); in TEST_F() 123 std::vector<uint8_t> dst(pagesize); in TEST_F() 124 ASSERT_TRUE(remote.ReadFully(reinterpret_cast<uint64_t>(src), dst.data(), pagesize)); in TEST_F() 129 ASSERT_FALSE(remote.ReadFully(reinterpret_cast<uint64_t>(src) + pagesize, dst.data(), 1)); in TEST_F() 130 ASSERT_TRUE(remote.ReadFully(reinterpret_cast<uint64_t>(src) + pagesize - 1, dst.data(), 1)); in TEST_F() 131 ASSERT_FALSE(remote.ReadFully(reinterpret_cast<uint64_t>(src) + pagesize - 4, dst.data(), 8)); in TEST_F() [all …]
|
/system/extras/memory_replay/ |
D | Alloc.cpp | 44 int pagesize = getpagesize(); in MallocExecute() local 47 MakeAllocationResident(memory, entry.size, pagesize); in MallocExecute() 56 int pagesize = getpagesize(); in CallocExecute() local 59 MakeAllocationResident(memory, entry.u.n_elements * entry.size, pagesize); in CallocExecute() 73 int pagesize = getpagesize(); in ReallocExecute() local 76 MakeAllocationResident(memory, entry.size, pagesize); in ReallocExecute() 85 int pagesize = getpagesize(); in MemalignExecute() local 88 MakeAllocationResident(memory, entry.size, pagesize); in MemalignExecute()
|
D | Utils.h | 28 static __always_inline void MakeAllocationResident(void* ptr, size_t nbytes, int pagesize) { in MakeAllocationResident() argument 30 for (size_t i = 0; i < nbytes; i += pagesize) { in MakeAllocationResident()
|
D | Pointers.cpp | 30 size_t pagesize = getpagesize(); in Pointers() local 33 pointers_size_ = (max_allocs * 4 * sizeof(pointer_data) + pagesize - 1) & ~(pagesize - 1); in Pointers()
|
D | Threads.cpp | 51 size_t pagesize = getpagesize(); in Threads() local 52 data_size_ = (max_threads_ * sizeof(Thread) + pagesize - 1) & ~(pagesize - 1); in Threads()
|
D | TraceBenchmark.cpp | 153 int pagesize = getpagesize(); in RunTrace() local 167 MakeAllocationResident(ptr, entry.size, pagesize); in RunTrace() 182 MakeAllocationResident(ptr, entry.size, pagesize); in RunTrace() 197 MakeAllocationResident(ptr, entry.size, pagesize); in RunTrace() 218 MakeAllocationResident(ptr, entry.size, pagesize); in RunTrace()
|
/system/tools/mkbootimg/ |
D | mkbootimg.py | 99 num_kernel_pages = get_number_of_pages(filesize(args.kernel), args.pagesize) 101 args.pagesize) 102 num_second_pages = get_number_of_pages(filesize(args.second), args.pagesize) 103 dtbo_offset = args.pagesize * (num_header_pages + num_kernel_pages + 156 args.vendor_boot.write(pack('I', args.pagesize)) 189 pad_file(args.vendor_boot, args.pagesize) 220 args.output.write(pack('I', args.pagesize)) 270 pad_file(args.output, args.pagesize) 580 def add_boot_image_signature(args, pagesize): argument 613 pad_file(args.output, pagesize) [all …]
|
/system/extras/tests/pagingtest/ |
D | thrashing_test.c | 23 long pagesize; in thrashing_test() local 28 pagesize = sysconf(_SC_PAGE_SIZE); in thrashing_test() 34 filesize = num_pages * pagesize / (ARRAY_SIZE(fds) - 1); in thrashing_test() 62 for (k = 0; k < filesize; k += pagesize) { in thrashing_test()
|
D | pageinout_test.c | 22 long pagesize = sysconf(_SC_PAGE_SIZE); in pageinout_test() local 59 for (j = 0; j < file_size; j += pagesize) { in pageinout_test()
|
/system/extras/kexec_tools/ |
D | kexecload.c | 24 #define ROUND_TO_PAGE(address, pagesize) (((address) + (pagesize)-1) & (~((pagesize)-1))) argument
|
/system/memory/libmeminfo/ |
D | pageacct.cpp | 35 uint64_t pagesize(void) { in pagesize() function 36 static uint64_t pagesize = sysconf(_SC_PAGE_SIZE); in pagesize() local 37 return pagesize; in pagesize()
|
D | libmeminfo_test.cpp | 167 size_t pagesize = getpagesize(); in TEST() local 168 void* ptr = mmap(nullptr, pagesize * (kNumPages + 2), PROT_READ | PROT_WRITE, in TEST() 174 ASSERT_EQ(0, munmap(ptr, pagesize)); in TEST() 175 uintptr_t addr = reinterpret_cast<uintptr_t>(ptr) + pagesize; in TEST() 176 ASSERT_EQ(0, munmap(reinterpret_cast<void*>(addr + kNumPages * pagesize), pagesize)); in TEST() 205 data[pagesize * 5] = 1; in TEST() 206 data[pagesize * 11] = 1; in TEST() 220 ASSERT_EQ(0, munmap(reinterpret_cast<void*>(addr), kNumPages * pagesize)); in TEST()
|
/system/core/storaged/ |
D | storaged.cpp | 272 uint32_t pagesize = sysconf(_SC_PAGESIZE); in prepare_proto() local 276 ssize_t size = ROUND_UP(std::max(min_benchmark_size, proto->ByteSizeLong()), pagesize); in prepare_proto() 279 while (!IS_ALIGNED(proto->ByteSizeLong(), pagesize)) { in prepare_proto() 286 if (posix_memalign(reinterpret_cast<void**>(&data), pagesize, proto->ByteSizeLong())) { in prepare_proto()
|
/system/memory/lmkd/ |
D | lmkd.cpp | 583 static int pagesize; variable 661 static ssize_t buf_size = pagesize; in reread_file() 882 mem_st.rss_in_bytes = rss_in_pages * pagesize; in poll_kernel() 1233 char buf[pagesize]; in apply_proc_prio() 2600 char buf[pagesize]; in kill_one_process() 3865 pagesize = getpagesize(); in init() 3866 page_k = pagesize / 1024; in init()
|
/system/sepolicy/private/ |
D | property_contexts | 1035 ro.product.cpu.pagesize.max u:object_r:build_prop:s0 exact enum 4096 16384 65536
|