Searched refs:ker (Results 1 – 7 of 7) sorted by relevance
/system/extras/libpagemap/ |
D | pm_kernel.c | 29 pm_kernel_t *ker; in pm_kernel_create() local 35 ker = calloc(1, sizeof(*ker)); in pm_kernel_create() 36 if (!ker) in pm_kernel_create() 39 ker->kpagecount_fd = open("/proc/kpagecount", O_RDONLY); in pm_kernel_create() 40 if (ker->kpagecount_fd < 0) { in pm_kernel_create() 42 free(ker); in pm_kernel_create() 46 ker->kpageflags_fd = open("/proc/kpageflags", O_RDONLY); in pm_kernel_create() 47 if (ker->kpageflags_fd < 0) { in pm_kernel_create() 49 close(ker->kpagecount_fd); in pm_kernel_create() 50 free(ker); in pm_kernel_create() [all …]
|
D | pm_map.c | 50 error = pm_kernel_count(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_usage() 54 usage.vss += map->proc->ker->pagesize; in pm_map_usage() 55 usage.rss += (count >= 1) ? (map->proc->ker->pagesize) : (0); in pm_map_usage() 56 usage.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0); in pm_map_usage() 57 usage.uss += (count == 1) ? (map->proc->ker->pagesize) : (0); in pm_map_usage() 86 error = pm_kernel_flags(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_workingset() 93 error = pm_kernel_count(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]), in pm_map_workingset() 97 ws.vss += map->proc->ker->pagesize; in pm_map_workingset() 99 ws.rss += (count >= 1) ? (map->proc->ker->pagesize) : (0); in pm_map_workingset() 100 ws.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0); in pm_map_workingset() [all …]
|
D | pm_process.c | 32 int pm_process_create(pm_kernel_t *ker, pid_t pid, pm_process_t **proc_out) { in pm_process_create() argument 37 if (!ker || !proc_out) in pm_process_create() 44 proc->ker = ker; in pm_process_create() 105 firstpage = low / proc->ker->pagesize; in pm_process_pagemap_range() 106 numpages = (high - low) / proc->ker->pagesize; in pm_process_pagemap_range()
|
/system/extras/libpagemap/include/pagemap/ |
D | pagemap.h | 55 pm_kernel_t *ker; member 81 #define pm_kernel_pagesize(ker) ((ker)->pagesize) argument 86 int pm_kernel_pids(pm_kernel_t *ker, pid_t **pids_out, size_t *len); 90 int pm_kernel_count(pm_kernel_t *ker, unsigned long pfn, uint64_t *count_out); 94 int pm_kernel_flags(pm_kernel_t *ker, unsigned long pfn, uint64_t *flags_out); 109 int pm_kernel_destroy(pm_kernel_t *ker); 116 int pm_process_create(pm_kernel_t *ker, pid_t pid, pm_process_t **proc_out);
|
/system/extras/procmem/ |
D | procmem.c | 45 pm_kernel_t *ker; in main() local 102 error = pm_kernel_create(&ker); in main() 109 pagesize = pm_kernel_pagesize(ker); in main() 111 error = pm_process_create(ker, pid, &proc); in main() 192 address = pm_map_start(mi->map) + j * ker->pagesize; in main() 197 error = pm_kernel_count(ker, PM_PAGEMAP_PFN(mapentry), &count); in main() 203 error = pm_kernel_flags(ker, PM_PAGEMAP_PFN(mapentry), &flags); in main()
|
/system/extras/procrank/ |
D | procrank.c | 118 pm_kernel_t *ker; in main() local 155 error = pm_kernel_create(&ker); in main() 162 error = pm_kernel_pids(ker, &pids, &num_procs); in main() 182 error = pm_process_create(ker, pids[i], &proc); in main()
|
/system/extras/librank/ |
D | librank.c | 171 pm_kernel_t *ker; in main() local 218 error = pm_kernel_create(&ker); in main() 225 error = pm_kernel_pids(ker, &pids, &num_procs); in main() 232 error = pm_process_create(ker, pids[i], &proc); in main()
|