Home
last modified time | relevance | path

Searched refs:pagesize (Results 1 – 15 of 15) sorted by relevance

/system/extras/procmem/
Dprocmem.c47 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/
Dpm_map.c48 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()
Dpm_memusage.c112 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()
Dpm_process.c125 firstpage = low / proc->ker->pagesize; in pm_process_pagemap_range()
126 numpages = (high - low) / proc->ker->pagesize; in pm_process_pagemap_range()
Dpm_kernel.c54 ker->pagesize = getpagesize(); in pm_kernel_create()
/system/extras/tests/pagingtest/
Dthrashing_test.c22 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()
Dpageinout_test.c21 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/
DGetPss.cpp67 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()
Dbacktrace_test.cpp951 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/
DPointers.cpp30 size_t pagesize = getpagesize(); in Pointers() local
33 pointers_size_ = (max_allocs * 4 * sizeof(pointer_data) + pagesize - 1) & ~(pagesize - 1); in Pointers()
DThreads.cpp50 size_t pagesize = getpagesize(); in Threads() local
51 data_size_ = (max_threads_ * sizeof(Thread) + pagesize - 1) & ~(pagesize - 1); in Threads()
/system/extras/kexec_tools/
Dkexecload.c24 #define ROUND_TO_PAGE(address,pagesize) ((address + pagesize - 1) & (~(pagesize - 1))) argument
/system/core/mkbootimg/
Dmkbootimg59 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/
Dpagemap.h83 int pagesize; member
115 #define pm_kernel_pagesize(ker) ((ker)->pagesize)
/system/core/logd/
DLogBuffer.cpp50 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()