Home | History | Annotate | Download | only in showmap

Lines Matching defs:pid

163 static mapinfo *load_maps(int pid, int sort_by_address, int coalesce_by_name)
172 snprintf(fn, sizeof(fn), "/proc/%d/smaps", pid);
175 fprintf(stderr, "cannot open /proc/%d/smaps: %s\n", pid, strerror(errno));
204 fprintf(stderr, "could not read /proc/%d/smaps\n", pid);
244 static int show_map(int pid)
257 milist = load_maps(pid, addresses, !verbose && !addresses);
322 int pid;
345 pid = strtol(arg, &argend, 10);
348 if (show_map(pid)) {
359 "showmap [-t] [-v] [-c] <pid>\n"