Next | Prev | Up | Top | Contents | Index

Commands for Symbol Conversion and Lookup

The commands summarized in Table 11-1 are used to convert between symbolic names and their corresponding addresses.

Commands for Symbol Conversion and Lookup
CommandExampleOperation
hx name hx dk_read
dk_read 0xffffffff882b0510
The name is looked up on the symbol table and if it is found, its address is displayed.
lkaddr addrlkaddr 0x882b0510
0x882af910 lockdisptab
0x882b0510 dk_read
0x882b051c dk_write
Symbols near to the specified addr are listed. Use this command to find out the symbolic location of an unexpected stop.
lkup letters hx dk_rea
0x880d5f10 dk_readcap
0x882b0510 dk_read
0x332b0528 dk_readcapacity
Every symbol that contains the specified letters at any point is listed. There is no way to anchor the search to the beginning or end of the name.
msyms ident msyms 13
Symbols for module 13 (prefix tcl)
tclinit 0xc0403d9c
tclmversion 0xc0405fe0
The symbols for the loadable module ident are listed. Use the ml command with no arguments to list all modules and their ident numbers.
nm addr nm 0xc0403da0
0xc0403da0 tclinit+0x4
The symbol nearest to the specified addr is listed.

Note: When symmon displays an address it normally shows a full 64 bits. In a 32-bit kernel, the most-significant 32 bits of a kernel virtual address are all-binary-1, from extension of the sign bit of the 32-bit address--as shonw in the example of hx in Table 11-1. When you enter an address to a command in a 32-bit system, you need to type only the significant 32-bit value.


Next | Prev | Up | Top | Contents | Index