Lines Matching defs:maps
83 error = pm_map_usage(proc->maps[i], &map_usage);
138 pm_map_t **maps;
144 maps = malloc(proc->num_maps * sizeof(pm_map_t*));
145 if (!maps)
148 memcpy(maps, proc->maps, proc->num_maps * sizeof(pm_map_t*));
150 *maps_out = maps;
173 error = pm_map_workingset(proc->maps[i], &map_ws);
205 free(proc->maps);
227 pm_map_t *map, **maps, **new_maps;
234 maps = calloc(INITIAL_MAPS, sizeof(pm_map_t*));
235 if (!maps)
239 error = snprintf(filename, MAX_FILENAME, "/proc/%d/maps", proc->pid);
249 new_maps = realloc(maps, 2 * maps_size * sizeof(pm_map_t*));
252 free(maps);
256 maps = new_maps;
260 maps[maps_count] = map = calloc(1, sizeof(*map));
271 pm_map_destroy(maps[maps_count]);
272 free(maps);
285 new_maps = realloc(maps, maps_count * sizeof(pm_map_t*));
288 free(maps);
292 proc->maps = new_maps;