DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

NAME

trace - Display the stack trace of a process

SYNOPSIS

trace address dtrace address

DESCRIPTION

The trace macro takes the address of a process as an argument. It displays the stack backtrace of the given process.

The dtrace macro loops, beginning with the given process, printing trace information for each process in turn, until the p_next field is null.

Typical output looks like this:

  S> trace D104BC00
  cpuid 0
  Trace for stack D1524C00
  ADDRESS  PID   PPID  UID   FLAGS    K U R WCHAN    ST  COMMAND
  D1524C00 00965 00001 00000 00402010 - - 0          ONP /opt/ats/rtelnet -r ATS1 29 /dev/ats129 
  STKADDR  FRAMEPTR  FUNCTION
  E0004864 E0004894  xcmn_err+21F(D0282A1C)
  E000489C 00000003  00000006

  cpuid 1
  Trace for stack D14EB200
  ADDRESS  PID   PPID  UID   FLAGS    K U R WCHAN    ST  COMMAND
  D14EB200 00148 00000 00000 00002031 1 - 1          RUN idleproc01
  STKADDR  FRAMEPTR  FUNCTION
  E0004D24 E0004D24  xi_panic+4B(E0004D44)
  E0004D2C 00000000  00000014

DEFINED IN

trace.k

SEE ALSO

BT

APPENDIX A: Alphabetic Index of Macros