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()
49 if (!PM_PAGEMAP_PRESENT(pagemap[i])) in pm_map_usage_flags()
52 if (!PM_PAGEMAP_SWAPPED(pagemap[i])) { in pm_map_usage_flags()
55 error = pm_kernel_flags(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_usage_flags()
63 error = pm_kernel_count(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_usage_flags()
80 free(pagemap); in pm_map_usage_flags()
90 uint64_t *pagemap; in pm_map_workingset() local
99 error = pm_map_pagemap(map, &pagemap, &len); in pm_map_workingset()
105 error = pm_kernel_flags(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_workingset()
112 error = pm_kernel_count(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_workingset()
117 if( PM_PAGEMAP_SWAPPED(pagemap[i]) ) continue; in pm_map_workingset()
128 free(pagemap); in pm_map_workingset()