Searched defs:maps (Results 1 - 7 of 7) sorted by relevance
/system/core/libbacktrace/ |
H A D | GetPss.cpp | 47 FILE* maps = fopen("/proc/self/maps", "r"); local 48 if (maps == nullptr) { 54 fclose(maps); 60 fclose(maps); 68 while (fgets(line, sizeof(line), maps)) { 87 fclose(maps);
|
/system/core/toolbox/ |
H A D | lsof.c | 102 FILE *maps; local 108 strlcat(info->path, "maps", sizeof(info->path)); 110 maps = fopen(info->path, "r"); 111 if (!maps) 114 while (fscanf(maps, "%*x-%*x %*s %zx %s %ld %s\n", &offset, device, &inode, 116 // We don't care about non-file maps 125 fclose(maps);
|
/system/extras/libpagemap/ |
H A D | pm_process.c | 86 error = pm_map_usage_flags(proc->maps[i], &map_usage, flags_mask, 154 pm_map_t **maps; local 160 maps = malloc(proc->num_maps * sizeof(pm_map_t*)); 161 if (!maps) 164 memcpy(maps, proc->maps, proc->num_maps * sizeof(pm_map_t*)); 166 *maps_out = maps; 189 error = pm_map_workingset(proc->maps[i], &map_ws); 224 pm_map_destroy(proc->maps[i]); 226 free(proc->maps); 248 pm_map_t *map, **maps, **new_maps; local [all...] |
/system/extras/procmem/ |
H A D | procmem.c | 39 /* qsort compare function to compare maps by PSS */ 50 /* maps and such */ 51 pm_map_t **maps; size_t num_maps; local 128 /* get maps, and allocate our map_info array */ 129 error = pm_process_maps(proc, &maps, &num_maps); 131 fprintf(stderr, "error listing maps.\n"); 165 mi->map = maps[i]; 310 " -h Hide maps with no RSS.\n",
|
/system/extras/ksmutils/ |
H A D | ksminfo.c | 62 static int read_pages(struct ksm_pages *kp, pm_map_t **maps, size_t num_maps, uint8_t pr_flags); 75 pm_map_t **maps; local 160 error = pm_process_maps(proc, &maps, &num_maps); 168 if (read_pages(&kp, maps, num_maps, pr_flags) < 0) { 169 free(maps); 175 free(maps); 190 static int read_pages(struct ksm_pages *kp, pm_map_t **maps, size_t num_maps, uint8_t pr_flags) { argument 211 pid = pm_process_pid(maps[0]->proc); 212 ker = maps[0]->proc->ker; 232 error = pm_map_pagemap(maps[ [all...] |
/system/extras/libpagemap/include/pagemap/ |
H A D | pagemap.h | 63 pm_map_t **maps; member in struct:pm_process 168 /* Get the maps in the virtual address space of this process. 169 * Returns an array of pointers to pm_map_t through *maps. 170 * The array should be freed by the caller, but the maps should not be
|
/system/extras/librank/ |
H A D | librank.c | 210 pm_map_t **maps; local 342 error = pm_process_maps(proc, &maps, &num_maps); 344 fprintf(stderr, "Error listing maps for process %d.\n", proc->pid); 349 if (prefix && (strncmp(pm_map_name(maps[j]), prefix, prefix_len))) 352 if (perm && (pm_map_flags(maps[j]) & PM_MAP_PERMISSIONS) != perm) 355 li = get_library(pm_map_name(maps[j]), all); 361 error = pm_map_usage_flags(maps[j], &map_usage, flags_mask, 366 pm_map_name(maps[j]), proc->pid);
|
Completed in 146 milliseconds