vtop [-m map_pointer] [-w outfile] vaddr_list
Display the virtual to physical memory mapping for each entry in
vaddr_list. Entries in addr_list can in the form of a physical address,
virtual address, or page number (following a '#'). When the -m command
line option is specified, treat the accompanying parameter as an
mm_struct pointer to use when determining memory mapping.
Example 4-20. vtop
>> dump 0xd002cfe0 -B 60
0xd002cfe0: 73 6e 64 5f 70 63 69 5f 63 6f 6d 70 61 74 5f 66 : snd_pci_compat_f
0xd002cff0: 69 6e 64 5f 63 61 70 61 62 69 6c 69 74 79 00 73 : ind_capability.s
0xd002d000: 6e 64 5f 70 63 69 5f 63 6f 6d 70 61 74 5f 64 6d : nd_pci_compat_dm
0xd002d010: 61 5f 73 75 70 70 6f 72 74 65 64 00 : a_supported.
>> vtop 0xd002cfe0
VADDR KADDR PADDR PFN
==============================================================
d002cfe0 cef42fe0 ef42fe0 61250
==============================================================
>> dump ef42fe0 -B 60
0xef42fe0: 73 6e 64 5f 70 63 69 5f 63 6f 6d 70 61 74 5f 66 : snd_pci_compat_f
0xef42ff0: 69 6e 64 5f 63 61 70 61 62 69 6c 69 74 79 00 73 : ind_capability.s
0xef43000: c4 20 83 c4 fc 6a 01 68 73 c8 02 d0 53 e8 a6 fe : . ...j.hs...S...
0xef43010: ff ff 83 c4 fc 6a 02 68 81 c8 02 d0 : .....j.h....
>> vtop 0xd002d000
VADDR KADDR PADDR PFN
==============================================================
d002d000 cef41000 ef41000 61249
==============================================================
>> dump ef41000 -B 28
0xef41000: 6e 64 5f 70 63 69 5f 63 6f 6d 70 61 74 5f 64 6d : nd_pci_compat_dm
0xef41010: 61 5f 73 75 70 70 6f 72 74 65 64 00 : a_supported.
Example 4-21. vtop
>> whatis init_mm
ADDR OFFSET TYPE NAME
============================================================
c02a90a0 0 GLOBAL_DATA init_mm
>> whatis module_list
ADDR OFFSET TYPE NAME
============================================================
c02ad128 0 GLOBAL_DATA module_list
>> dump c02ad128
0xc02ad128: d0103000 : .0..
>> vtop -m c02a90a0 d0103000
VADDR KADDR PADDR PFN
==============================================================
d0103000 cec99000 ec99000 60569
==============================================================
>> print ((module*)0xec99000)->name
0xd0106a26
>> vtop -m c02a90a0 0xd0106a26
VADDR KADDR PADDR PFN
==============================================================
d0106a26 cec96a26 ec96a26 60566
==============================================================
>> print (char*) ec96a26
0xec96a26 "ibmtr_cs"