Hello! Currently `vminfo''s output looks like this:
#v+ $ vminfo $$ 0[0x1000] (prot=0) 0x1000[0x18000] (prot=RX, max_prot=RWX, mem_obj=52) 0x19000[0x1000] (prot=RW, max_prot=RWX, mem_obj=52) 0x1a000[0x1000] (prot=0, max_prot=RWX) 0x1b000[0xfff000] (prot=RWX, mem_obj=53) 0x101a000[0x1000] (prot=RWX, mem_obj=54) 0x101b000[0x1000] (prot=RW, max_prot=RWX, mem_obj=55) [...] #v- This compares to Linux's `/proc/PID/maps' pseudo file and `pmap' program as follows: #v+ $ cat /proc/$$/maps 08048000-080ee000 r-xp 00000000 03:05 80383 /bin/bash 080ee000-080f3000 rw-p 000a6000 03:05 80383 /bin/bash 080f3000-08359000 rw-p 080f3000 00:00 0 [heap] b7bfa000-b7cd1000 r--p 00000000 03:05 177208 /usr/lib/locale/de_DE.utf8/LC_COLLATE b7cd1000-b7cda000 r-xp 00000000 03:05 146593 /lib/tls/i686/cmov/libnss_files-2.5.so [...] $ pmap $$ 19816: /bin/bash 08048000 664K r-x-- /bin/bash 080ee000 20K rw--- /bin/bash 080f3000 2456K rw--- [ anon ] b7bfa000 860K r---- /usr/lib/locale/de_DE.utf8/LC_COLLATE b7cd1000 36K r-x-- /lib/tls/i686/cmov/libnss_files-2.5.so #v- Now, the question is: how to use the memory object id (which `vminfo' internally gets from the `vm_region' call) to trace back the pager / server providing that memory object and ask it about the file's name that is backing this region of memory? Is this possible to do? Regards, Thomas
signature.asc
Description: Digital signature
_______________________________________________ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/bug-hurd