Home
last modified time | relevance | path

Searched refs:pagemap (Results 1 – 4 of 4) sorted by relevance

/system/extras/libpagemap/
Dpm_map.c32 uint64_t *pagemap; in pm_map_usage_flags() local
41 error = pm_map_pagemap(map, &pagemap, &len); in pm_map_usage_flags()
50 if (!PM_PAGEMAP_PRESENT(pagemap[i]) && in pm_map_usage_flags()
51 !PM_PAGEMAP_SWAPPED(pagemap[i])) in pm_map_usage_flags()
54 if (!PM_PAGEMAP_SWAPPED(pagemap[i])) { in pm_map_usage_flags()
57 error = pm_kernel_flags(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_usage_flags()
65 error = pm_kernel_count(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_usage_flags()
74 pm_memusage_pswap_add_offset(&usage, PM_PAGEMAP_SWAP_OFFSET(pagemap[i])); in pm_map_usage_flags()
83 free(pagemap); in pm_map_usage_flags()
93 uint64_t *pagemap; in pm_map_workingset() local
[all …]
Dpagemap_test.cpp23 TEST(pagemap, maps) { in TEST() argument
/system/extras/ksmutils/
Dksminfo.c192 uint64_t *pagemap; in read_pages() local
231 error = pm_map_pagemap(maps[i], &pagemap, &map_len); in read_pages()
238 error = pm_kernel_flags(ker, PM_PAGEMAP_PFN(pagemap[j]), &flags); in read_pages()
241 pagemap[i]); in read_pages()
271 free(pagemap); in read_pages()
279 rc = pm_kernel_count(ker, PM_PAGEMAP_PFN(pagemap[j]), &kp->pages[kp->len].count); in read_pages()
282 free(pagemap); in read_pages()
307 free(pagemap); in read_pages()
323 free(pagemap); in read_pages()
/system/extras/procmem/
Dprocmem.c57 uint64_t *pagemap; size_t num_pages; in main() local
183 error = pm_map_pagemap(mi->map, &pagemap, &num_pages); in main()
194 mapentry = pagemap[j]; in main()