/system/extras/libpagemap/ |
pm_kernel.c | 29 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->kpagecount_fd) [all...] |
/system/extras/procmem/ |
procmem.c | 45 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/libpagemap/include/pagemap/ |
pagemap.h | 55 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/librank/ |
librank.c | 171 pm_kernel_t *ker; local 217 error = pm_kernel_create(&ker); 224 error = pm_kernel_pids(ker, &pids, &num_procs); 231 error = pm_process_create(ker, pids[i], &proc);
|
/system/extras/procrank/ |
procrank.c | 112 pm_kernel_t *ker; local 148 error = pm_kernel_create(&ker); 155 error = pm_kernel_pids(ker, &pids, &num_procs); 175 error = pm_process_create(ker, pids[i], &proc);
|