Searched refs:ker (Results 1 - 7 of 7) sorted by path

/system/extras/libpagemap/include/pagemap/
H A Dpagemap.h55 pm_kernel_t *ker; member in struct:pm_process
81 #define pm_kernel_pagesize(ker) ((ker)->pagesize)
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/libpagemap/
H A Dpm_kernel.c29 pm_kernel_t *ker; local
35 ker = calloc(1, sizeof(*ker));
36 if (!ker)
39 ker->kpagecount_fd = open("/proc/kpagecount", O_RDONLY);
40 if (ker->kpagecount_fd < 0) {
42 free(ker);
46 ker->kpageflags_fd = open("/proc/kpageflags", O_RDONLY);
47 if (ker->kpageflags_fd < 0) {
49 close(ker
62 pm_kernel_pids(pm_kernel_t *ker, pid_t **pids_out, size_t *len) argument
116 pm_kernel_count(pm_kernel_t *ker, unsigned long pfn, uint64_t *count_out) argument
132 pm_kernel_flags(pm_kernel_t *ker, unsigned long pfn, uint64_t *flags_out) argument
148 pm_kernel_destroy(pm_kernel_t *ker) argument
[all...]
H A Dpm_map.c50 error = pm_kernel_count(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]),
54 usage.vss += map->proc->ker->pagesize;
55 usage.rss += (count >= 1) ? (map->proc->ker->pagesize) : (0);
56 usage.pss += (count >= 1) ? (map->proc->ker->pagesize / count) : (0);
57 usage.uss += (count == 1) ? (map->proc->ker->pagesize) : (0);
86 error = pm_kernel_flags(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]),
93 error = pm_kernel_count(map->proc->ker, PM_PAGEMAP_PFN(pagemap[i]),
97 ws.vss += map->proc->ker->pagesize;
99 ws.rss += (count >= 1) ? (map->proc->ker->pagesize) : (0);
100 ws.pss += (count >= 1) ? (map->proc->ker
[all...]
H A Dpm_process.c32 int pm_process_create(pm_kernel_t *ker, pid_t pid, pm_process_t **proc_out) { argument
37 if (!ker || !proc_out)
44 proc->ker = ker;
105 firstpage = low / proc->ker->pagesize;
106 numpages = (high - low) / proc->ker->pagesize;
/system/extras/librank/
H A Dlibrank.c171 pm_kernel_t *ker; local
218 error = pm_kernel_create(&ker);
225 error = pm_kernel_pids(ker, &pids, &num_procs);
232 error = pm_process_create(ker, pids[i], &proc);
/system/extras/procmem/
H A Dprocmem.c45 pm_kernel_t *ker; local
102 error = pm_kernel_create(&ker);
109 pagesize = pm_kernel_pagesize(ker);
111 error = pm_process_create(ker, pid, &proc);
192 address = pm_map_start(mi->map) + j * ker->pagesize;
197 error = pm_kernel_count(ker, PM_PAGEMAP_PFN(mapentry), &count);
203 error = pm_kernel_flags(ker, PM_PAGEMAP_PFN(mapentry), &flags);
/system/extras/procrank/
H A Dprocrank.c118 pm_kernel_t *ker; local
155 error = pm_kernel_create(&ker);
162 error = pm_kernel_pids(ker, &pids, &num_procs);
182 error = pm_process_create(ker, pids[i], &proc);

Completed in 71 milliseconds