Searched defs:maps (Results 1 - 6 of 6) sorted by relevance

/system/core/toolbox/
H A Dlsof.c101 FILE *maps; local
110 strlcat(info->path, "maps", sizeof(info->path));
112 maps = fopen(info->path, "r");
113 if (!maps)
116 while (fscanf(maps, "%*x-%*x %*s %zx %5s %ld %s\n", &offset, device, &inode,
118 // We don't care about non-file maps
127 fclose(maps);
/system/extras/libpagemap/
H A Dpm_process.c85 error = pm_map_usage_flags(proc->maps[i], &map_usage, flags_mask,
146 pm_map_t **maps; local
152 maps = malloc(proc->num_maps * sizeof(pm_map_t*));
153 if (!maps)
156 memcpy(maps, proc->maps, proc->num_maps * sizeof(pm_map_t*));
158 *maps_out = maps;
181 error = pm_map_workingset(proc->maps[i], &map_ws);
213 free(proc->maps);
235 pm_map_t *map, **maps, **new_map local
[all...]
/system/extras/procmem/
H A Dprocmem.c38 /* qsort compare function to compare maps by PSS */
49 /* maps and such */
50 pm_map_t **maps; int num_maps; local
127 /* get maps, and allocate our map_info array */
128 error = pm_process_maps(proc, &maps, &num_maps);
130 fprintf(stderr, "error listing maps.\n");
164 mi->map = maps[i];
309 " -h Hide maps with no RSS.\n",
/system/extras/ksmutils/
H A Dksminfo.c61 static int read_pages(struct ksm_pages *kp, pm_map_t **maps, size_t num_maps, uint8_t pr_flags);
74 pm_map_t **maps; local
159 error = pm_process_maps(proc, &maps, &num_maps);
167 if (read_pages(&kp, maps, num_maps, pr_flags) < 0) {
168 free(maps);
174 free(maps);
189 static int read_pages(struct ksm_pages *kp, pm_map_t **maps, size_t num_maps, uint8_t pr_flags) { argument
210 pid = pm_process_pid(maps[0]->proc);
211 ker = maps[0]->proc->ker;
231 error = pm_map_pagemap(maps[
[all...]
/system/extras/libpagemap/include/pagemap/
H A Dpagemap.h60 pm_map_t **maps; member in struct:pm_process
165 /* Get the maps in the virtual address space of this process.
166 * Returns an array of pointers to pm_map_t through *maps.
167 * The array should be freed by the caller, but the maps should not be
/system/extras/librank/
H A Dlibrank.c210 pm_map_t **maps; local
341 error = pm_process_maps(proc, &maps, &num_maps);
343 fprintf(stderr, "Error listing maps for process %d.\n", proc->pid);
348 if (prefix && (strncmp(pm_map_name(maps[j]), prefix, prefix_len)))
351 if (perm && (pm_map_flags(maps[j]) & PM_MAP_PERMISSIONS) != perm)
354 li = get_library(pm_map_name(maps[j]), all);
360 error = pm_map_usage_flags(maps[j], &map_usage, flags_mask,
365 pm_map_name(maps[j]), proc->pid);

Completed in 80 milliseconds