pmap.c : Can you please try another name for it?
Hello Rik,
there is a nice little toy called "pmap.c" around for several years, now. Should we consider?
/*
* pmap.c: implementation of something like Solaris' /usr/proc/bin/pmap
* for linux
*
* Author: Andy Isaacson <[email protected]>
* Fri Jun 18 1999
*
* Updated Mon Oct 25 1999
* - calculate total size of shared mappings
* - change output format to read "writable/private" rather than "writable" *
* Justification: the formatting available in /proc/<pid>/maps is less
* than optimal. It's hard to figure out the size of a mapping from
* that information (unless you can do 8-digit hex arithmetic in your
* head) and it's just generally not friendly. Hence this utility. *
* I hereby place this work in the public domain.
*
* Compile with something along the lines of
* gcc -O pmap.c -o pmap
*/
Regards,
Dieter
Signature · 11 lines
Dieter Nützel Graduate Student, Computer Science University of Hamburg Department of Computer Science Cognitive Systems Group Vogt-Kölln-Straße 30 D-22527 Hamburg, Germany email: [email protected] @home: [email protected]
Quoted 8 lines · Dieter =?iso-8859- writes:
Hello Rik,
there is a nice little toy called "
pmap.c" around for several years, now. Should we consider?/*
*pmap.c: implementation of something like Solaris'/usr/proc/bin/pmap
* for linux
I've been planning to implement that tool for procps. So, one way or another, it will be common on Linux systems. Where might I find the code you quoted from?
Quoted 4 lines · Dieter Nützel
* Justification: the formatting available in /proc/<pid>/maps is less
* than optimal. It's hard to figure out the size of a mapping from
* that information (unless you can do 8-digit hex arithmetic in your
* head) and it's just generally not friendly. Hence this utility.
you may want to check sourceforge for xmlprocfs too.
Quoted 8 lines · Albert D. Cahalan
Quoted 3 lines · Dieter =?iso-8859- writes:
/*
*pmap.c: implementation of something like Solaris'/usr/proc/bin/pmap
* for linuxI've been planning to implement that tool for procps. So, one way or another, it will be common on Linux systems. Where might I find the code you quoted from?
[Thanks for the CC, Dieter.]
My public domain pmap implementation has a new home at
http://web.hexapodia.org/~adi/pmap.c
-andy
Quoted 2 lines · Dieter Nützel
there is a nice little toy called "
pmap.c" around for several years, now. Should we consider?
Unix has this thing called "directories", which make it possible for you to have multiple files with the same name on your disk.
AFAIK the name "pmap" has been in use for the mapping of memory since before RCP-style networking has come into fashion and it never seems to have caused any confusion.
regards,
Rik
--
Linux MM bugzilla: http://linux-mm.org/bugzilla.shtml
Virtual memory is like a game you can't win; However, without VM there's truly nothing to lose...
http://www.surriel.com/