Searched refs:p_swap (Results 1 – 5 of 5) sorted by relevance
42 mu->p_swap = NULL; in pm_memusage_zero()46 void pm_memusage_pswap_init_handle(pm_memusage_t *mu, pm_proportional_swap_t *p_swap) { in pm_memusage_pswap_init_handle() argument47 mu->p_swap = p_swap; in pm_memusage_pswap_init_handle()61 pm_proportional_swap_t *p_swap = NULL; in pm_memusage_pswap_create() local63 p_swap = malloc(sizeof(pm_proportional_swap_t)); in pm_memusage_pswap_create()64 if (p_swap == NULL) { in pm_memusage_pswap_create()67 p_swap->array_size = swap_size / getpagesize(); in pm_memusage_pswap_create()68 p_swap->offset_array = calloc(p_swap->array_size, sizeof(pm_pswap_refcount_t)); in pm_memusage_pswap_create()69 if (p_swap->offset_array == NULL) { in pm_memusage_pswap_create()71 free(p_swap); in pm_memusage_pswap_create()[all …]
84 pm_memusage_pswap_init_handle(&usage, usage_out->p_swap); in pm_process_usage_flags()87 pm_memusage_pswap_init_handle(&map_usage, usage_out->p_swap); in pm_process_usage_flags()192 pm_memusage_pswap_init_handle(&ws, ws_out->p_swap); in pm_process_workingset()195 pm_memusage_pswap_init_handle(&map_ws, ws_out->p_swap); in pm_process_workingset()
45 pm_memusage_pswap_init_handle(&usage, usage_out->p_swap); in pm_map_usage_flags()
47 pm_proportional_swap_t *p_swap; member64 void pm_memusage_pswap_init_handle(pm_memusage_t *mu, pm_proportional_swap_t *p_swap);71 void pm_memusage_pswap_destroy(pm_proportional_swap_t *p_swap);
203 pm_proportional_swap_t *p_swap; in main() local230 p_swap = pm_memusage_pswap_create(mem[MEMINFO_SWAP_TOTAL] * 1024); in main()259 pm_memusage_pswap_init_handle(&procs[i]->usage, p_swap); in main()398 pm_memusage_pswap_destroy(p_swap); in main()