Re: parsing /proc/<pid>/maps

Simon Kirby (sim@netnation.com)
Wed, 7 Oct 1998 23:26:35 -0700 (PDT)


On Wed, 7 Oct 1998, Larry McVoy wrote:

> I'm writing a perl script to put this in more readable format and I want to
> convert from dev/inum to file name. Is there a script out there that does
> that already? Thanks in advance.

2.1 has already done this for you for a while, just as it expands the
symlinks for filedescriptors and cwd/root/exe to their pathnames as well.

[sroot@peace:/proc/1]# cat maps
08048000-0804d000 r-xp 00000000 08:01 32825 /sbin/init
0804d000-0804e000 rw-p 00004000 08:01 32825 /sbin/init

...etc. :)

Simon-

| Simon Kirby | Systems Administration |
| mailto:sim@netnation.com | NetNation Communications |
| http://www.netnation.com/ | Tech: (604) 684-6892 |

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/