[parisc-linux-cvs] linux-2.5 tausq

Randolph Chung Randolph Chung <randolph@tausq.org>
Mon, 21 Oct 2002 22:53:11 -0700


> Implementation of show_trace/show_stack
> add config option for KALLSYMS, makes show_trace more useful

this is what the output looks like:

000000ff0804ff0f 00000000158e8000 0000000010265fd0 0000000010386830
       000000001038684c 00000000158bae40 0000000010528360 0000000000000001
       0000000000000001 000000001038684c 0000000010386830 0000000015a62e00
       0000000010528360 0000000010528360 0000000000000000 00000000ff72e448
       000000001040ce20 000000000000ffff 000000001029957c 0000000000000019
       00000000ff6925c0 00000000fe6b2180 0000000010528360 0000000010528360
       00000000ff706e80 00000000ff609200 00000000ff72e448 0000000000000001
       0000000000000001 0000000000000008 0000000000000008 00000000ff609800
       000000000000ffff 00000000fe768c50 000000001029fa70 00000000fefbfbe0
       0000000000001000 00000000ff74f180 00000000ff74f1b0 00000000fefbfc40
       0000000000004b82 00000000103afac8 00000000106418b0 0000000010528360
       0000000010528360 0000000010409670 00000000ff7bbc00 00000000fec59880
Call Trace:
 [<10265fd0>] end_that_request_first+0x98/0x3f8
 [<1029957c>] scsi_pool_free+0x24/0x38
 [<1029fa70>] __scsi_end_request+0x50/0x128
 [<102997b0>] scsi_free_sgtable+0xa8/0xc8
 [<1029fcbc>] scsi_io_completion+0xb4/0x4a0
 [<1017a8ac>] bh_lru_install+0x154/0x1e0
 [<102b1fac>] sd_rw_intr+0x6c/0x1f0
 [<1018d500>] locate_fd+0x100/0x198
 [<102986dc>] scsi_finish_command+0xbc/0xf0

The symbol name is only available if you configure your kernel with
CONFIG_KALLSYMS. This is an option under "Kernel debugging"

Note that the "call trace" code basically looks thruogh the stack for
all symbols that look like kernel symbols and prints out all of them, so
it may print out superfluous symbols in the trace. It's also likely that
it will go back too far in the stack and start picking out things that
are not in the direct call path of the current function.

hope this is useful :)
randolph
--  
Randolph Chung
Debian GNU/Linux Developer, hppa/ia64 ports
http://www.tausq.org/