/system/core/libunwindstack/tests/ |
D | MemoryFileTest.cpp | 63 size_t pagesize = getpagesize(); in TEST_F() local 65 for (size_t i = 0; i < pagesize; i++) { in TEST_F() 71 ASSERT_TRUE(memory_.Init(tf_->path, pagesize + 15)); in TEST_F() 79 size_t pagesize = getpagesize(); in TEST_F() local 81 for (size_t i = 0; i < 2 * pagesize; i++) { in TEST_F() 82 data += static_cast<char>((i / pagesize) + '0'); in TEST_F() 87 ASSERT_TRUE(memory_.Init(tf_->path, 2 * pagesize)); in TEST_F() 94 expected_str += static_cast<char>(((i + pagesize) % 10) + '0'); in TEST_F() 100 size_t pagesize = getpagesize(); in TEST_F() local 102 for (size_t i = 0; i < 2 * pagesize; i++) { in TEST_F() [all …]
|
D | MemoryRemoteTest.cpp | 95 int pagesize = getpagesize(); in TEST_F() local 96 void* src = mmap(nullptr, pagesize * 2, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE,-1, 0); in TEST_F() 97 memset(src, 0x4c, pagesize * 2); in TEST_F() 100 ASSERT_EQ(0, munmap(reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(src) + pagesize), in TEST_F() 101 pagesize)); in TEST_F() 114 std::vector<uint8_t> dst(pagesize); in TEST_F() 115 ASSERT_TRUE(remote.Read(reinterpret_cast<uint64_t>(src), dst.data(), pagesize)); in TEST_F() 120 ASSERT_FALSE(remote.Read(reinterpret_cast<uint64_t>(src) + pagesize, dst.data(), 1)); in TEST_F() 121 ASSERT_TRUE(remote.Read(reinterpret_cast<uint64_t>(src) + pagesize - 1, dst.data(), 1)); in TEST_F() 122 ASSERT_FALSE(remote.Read(reinterpret_cast<uint64_t>(src) + pagesize - 4, dst.data(), 8)); in TEST_F() [all …]
|
/system/extras/procmem/ |
D | procmem.c | 47 int pagesize; /* cached for speed */ in main() local 110 pagesize = pm_kernel_pagesize(ker); in main() 249 mi->shared_clean * pagesize / 1024, in main() 250 mi->shared_dirty * pagesize / 1024, in main() 251 mi->private_clean * pagesize / 1024, in main() 252 mi->private_dirty * pagesize / 1024, in main() 261 mi->shared_clean * pagesize / 1024, in main() 262 mi->shared_dirty * pagesize / 1024, in main() 263 mi->private_clean * pagesize / 1024, in main() 264 mi->private_dirty * pagesize / 1024, in main() [all …]
|
/system/extras/libpagemap/ |
D | pm_map.c | 48 usage.vss += map->proc->ker->pagesize; in pm_map_usage_flags() 69 usage.rss += (count >= 1) ? map->proc->ker->pagesize : (0); in pm_map_usage_flags() 70 usage.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0); in pm_map_usage_flags() 71 usage.uss += (count == 1) ? (map->proc->ker->pagesize) : (0); in pm_map_usage_flags() 73 usage.swap += map->proc->ker->pagesize; in pm_map_usage_flags() 119 ws.vss += map->proc->ker->pagesize; in pm_map_workingset() 121 ws.rss += (count >= 1) ? (map->proc->ker->pagesize) : (0); in pm_map_workingset() 122 ws.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0); in pm_map_workingset() 123 ws.uss += (count == 1) ? (map->proc->ker->pagesize) : (0); in pm_map_workingset()
|
D | pm_memusage.c | 112 int pagesize = getpagesize(); in pm_memusage_pswap_get_usage() local 120 su->proportional += pagesize / mu->p_swap->offset_array[elem->offset]; in pm_memusage_pswap_get_usage() 121 su->unique += mu->p_swap->offset_array[elem->offset] == 1 ? pagesize : 0; in pm_memusage_pswap_get_usage()
|
D | pm_process.c | 125 firstpage = low / proc->ker->pagesize; in pm_process_pagemap_range() 126 numpages = (high - low) / proc->ker->pagesize; in pm_process_pagemap_range()
|
D | pm_kernel.c | 54 ker->pagesize = getpagesize(); in pm_kernel_create()
|
/system/core/libbacktrace/ |
D | GetPss.cpp | 67 int pagesize = getpagesize(); in GetPssBytes() local 74 for (off_t page = static_cast<off_t>(start/pagesize); in GetPssBytes() 75 page < static_cast<off_t>(end/pagesize); page++) { in GetPssBytes() 81 total_pss += (count >= 1) ? pagesize / count : 0; in GetPssBytes()
|
D | backtrace_test.cpp | 939 size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); in ThreadReadTest() local 941 if (posix_memalign(reinterpret_cast<void**>(&memory), pagesize, 2 * pagesize) != 0) { in ThreadReadTest() 945 if (mprotect(&memory[pagesize], pagesize, PROT_NONE) != 0) { in ThreadReadTest() 950 InitMemory(memory, pagesize); in ThreadReadTest() 963 if (mprotect(&memory[pagesize], pagesize, PROT_READ | PROT_WRITE) != 0) { in ThreadReadTest() 974 size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); in RunReadTest() local 977 uint8_t* expected = new uint8_t[pagesize]; in RunReadTest() 978 InitMemory(expected, pagesize); in RunReadTest() 980 uint8_t* data = new uint8_t[2*pagesize]; in RunReadTest() 982 size_t bytes_read = backtrace->Read(read_addr, data, 2 * pagesize); in RunReadTest() [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/memory_replay/ |
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 | 50 size_t pagesize = getpagesize(); in Threads() local 51 data_size_ = (max_threads_ * sizeof(Thread) + pagesize - 1) & ~(pagesize - 1); in Threads()
|
/system/extras/kexec_tools/ |
D | kexecload.c | 24 #define ROUND_TO_PAGE(address,pagesize) (((address) + (pagesize) - 1) & (~((pagesize) - 1))) argument
|
/system/core/mkbootimg/ |
D | mkbootimg | 59 args.pagesize, # flash page size we assume 73 pad_file(args.output, args.pagesize) 159 write_padded_file(args.output, args.kernel, args.pagesize) 160 write_padded_file(args.output, args.ramdisk, args.pagesize) 161 write_padded_file(args.output, args.second, args.pagesize)
|
/system/core/liblog/ |
D | properties.c | 492 static long pages, pagesize; in __android_logger_valid_buffer_size() local 506 if (!pagesize) { in __android_logger_valid_buffer_size() 507 pagesize = sysconf(_SC_PAGESIZE); in __android_logger_valid_buffer_size() 508 if (pagesize <= 1) { in __android_logger_valid_buffer_size() 509 pagesize = PAGE_SIZE; in __android_logger_valid_buffer_size() 515 maximum = pages * pagesize; in __android_logger_valid_buffer_size()
|
/system/extras/libpagemap/include/pagemap/ |
D | pagemap.h | 85 int pagesize; member 117 #define pm_kernel_pagesize(ker) ((ker)->pagesize)
|