/system/extras/procmem/ |
D | procmem.c | 47 int pagesize; /* cached for speed */ in main() local 110 pagesize = pm_kernel_pagesize(ker); in main() 193 address = pm_map_start(mi->map) + j * ker->pagesize; in main() 250 mi->shared_clean * pagesize / 1024, in main() 251 mi->shared_dirty * pagesize / 1024, in main() 252 mi->private_clean * pagesize / 1024, in main() 253 mi->private_dirty * pagesize / 1024, in main() 262 mi->shared_clean * pagesize / 1024, in main() 263 mi->shared_dirty * pagesize / 1024, in main() 264 mi->private_clean * 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/extras/tests/pagingtest/ |
D | thrashing_test.c | 22 long pagesize; in thrashing_test() local 27 pagesize = sysconf(_SC_PAGE_SIZE); in thrashing_test() 33 filesize = num_pages * pagesize / (ARRAY_SIZE(fds) - 1); in thrashing_test() 55 for (k = ((filesize - 1) & ~(pagesize - 1)); k >= 0; k -= pagesize) { in thrashing_test()
|
D | pageinout_test.c | 21 long pagesize = sysconf(_SC_PAGE_SIZE); in pageinout_test() local 49 for (j = ((file_size - 1) & ~(pagesize - 1)); j >= 0; j -= pagesize) { in pageinout_test()
|
/system/core/libbacktrace/ |
D | GetPss.cpp | 67 int pagesize = getpagesize(); in GetPssBytes() local 74 for (size_t page = start/pagesize; page < end/pagesize; page++) { in GetPssBytes() 80 total_pss += (count >= 1) ? pagesize / count : 0; in GetPssBytes()
|
D | backtrace_test.cpp | 951 size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); in ThreadReadTest() local 953 if (posix_memalign(reinterpret_cast<void**>(&memory), pagesize, 2 * pagesize) != 0) { in ThreadReadTest() 957 if (mprotect(&memory[pagesize], pagesize, PROT_NONE) != 0) { in ThreadReadTest() 962 InitMemory(memory, pagesize); in ThreadReadTest() 975 if (mprotect(&memory[pagesize], pagesize, PROT_READ | PROT_WRITE) != 0) { in ThreadReadTest() 986 size_t pagesize = static_cast<size_t>(sysconf(_SC_PAGE_SIZE)); in RunReadTest() local 989 uint8_t* expected = new uint8_t[pagesize]; in RunReadTest() 990 InitMemory(expected, pagesize); in RunReadTest() 992 uint8_t* data = new uint8_t[2*pagesize]; in RunReadTest() 994 size_t bytes_read = backtrace->Read(read_addr, data, 2 * pagesize); in RunReadTest() [all …]
|
/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/extras/libpagemap/include/pagemap/ |
D | pagemap.h | 83 int pagesize; member 115 #define pm_kernel_pagesize(ker) ((ker)->pagesize)
|
/system/core/logd/ |
D | LogBuffer.cpp | 50 long pagesize = sysconf(_SC_PAGESIZE); in valid_size() local 51 if (pagesize <= 1) { in valid_size() 52 pagesize = PAGE_SIZE; in valid_size() 57 unsigned long maximum = pages * pagesize; in valid_size()
|