Lines Matching refs:pagemap
32 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
102 error = pm_map_pagemap(map, &pagemap, &len); in pm_map_workingset()
108 error = pm_kernel_flags(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_workingset()
115 error = pm_kernel_count(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_workingset()
120 if( PM_PAGEMAP_SWAPPED(pagemap[i]) ) continue; in pm_map_workingset()
131 free(pagemap); in pm_map_workingset()