trace

Alias

t

Usage

trace [-a] [-f] [-w outfile] [[task_list] | [-t tracerec_list]
    

Description

Displays a stack trace for each task included in task_list. If task_list 
is empty and deftask is set, then a stack trace for the default task is 
displayed. If deftask is not set, then a trace will be displayed for the 
task running at the time of a system PANIC. If the command is issued with 
the -t command line option, additional items on the command line will be 
treated as pointers to lcrash stack trace records (prevously allocated 
using the mktrace command).
    

Example 4-19. trace

>> task
ACTIVE TASKS:

    ADDR    UID    PID   PPID  STATE     FLAGS  NAME
===============================================================================
  18e000      0      0      0      0         0  swapper
  5b0000      0      1      0      1       100  init
  5a8000      0      2      1      1        40  kmcheck
  59a000      0      3      1      1        40  keventd
  57c000      0      4      1      1       840  kswapd
  57a000      0      5      1      1       840  kreclaimd
  578000      0      6      1      1        40  bdflush
  576000      0      7      1      1        40  kupdated
 6edc000      0    231      3      1        40  keventd
 6ed0000      1    287      1      1       140  portmap
 6e60000      0    349      1      1        40  syslogd
 779a000      0    363      1      1       140  klogd
 6d54000      0    401      1      1       140  inetd
 6a0a000    100    448      1      1        40  xfs
 7ac0000      0    467      1      1         0  sulogin
 6948000      0    468    401      1       100  in.telnetd
 68f8000      0    469    468      1       100  login
 67e4000      0    470    469      1       100  bash
 61c8000      0    534    470      0       100  lcrash
===============================================================================
19 active task structs found

>> trace 67e4000
================================================================
STACK TRACE FOR TASK: 0x67e4000 (bash)

 STACK:
 0 schedule+1076 [0x1c590]
 1 sys_wait4+1050 [0x23fc6]
 2 pgm_system_call+34 [0x130d0]
================================================================

>> trace 67e4000 -f
================================================================
STACK TRACE FOR TASK: 0x67e4000 (bash)

 STACK:
 0 schedule+1076 [0x1c590]

   SP=0x67e5de8, FP=0x67e5e48, SIZE=144

   67e5de8: 067e5e78  00525164  077e4000  077e4000  
   67e5df8: 067e5ea8  07000000  067e4000  00000001  
   67e5e08: 005bc000  067e4000  00000000  067e5de8  
   67e5e18: 00525120  8001c164  8001c590  067e5de8  
   67e5e28: 00525120  067e5f68  00000004  070de000  
   67e5e38: 00479000  067e4000  0052513c  80011038  
   67e5e48: 070112cc  077e5e10  0401d000  0690a000  
   67e5e58: 067e5f68  00000001  00000000  00000000  
   67e5e68: 00000000  067e5e6c  001ea030  00000004  

 1 sys_wait4+1050 [0x23fc6]

   SP=0x67e5e78, FP=0x67e5ed8, SIZE=144

   67e5e78: 067e5f08  800f8da0  067e5f08  067e5e48  
   67e5e88: 067e5e6c  00000215  00000002  001ea010  
   67e5e98: 7ffff7fc  00000000  ffffffff  fffffe00  
   67e5ea8: 00000000  80023bb4  80023fc6  067e5e78  
   67e5eb8: ffffffea  00000020  0048a668  067e4000  
   67e5ec8: 00000000  000000ff  7ffff6c8  06df1ae0  
   67e5ed8: 00000000  067e4000  067e40b0  067e40b0  
   67e5ee8: 00000000  067e4000  00000000  00000000  
   67e5ef8: 067e4000  00000000  7ffff800  067e4000  

 2 pgm_system_call+34 [0x130d0]

   SP=0x67e5f08, FP=0x67e5f68, SIZE=248

   67e5f08: 00000000  00000000  00000000  00000000  
   67e5f18: 00000000  00000000  0048a668  00402c0c  
   67e5f28: 00023bac  067e4000  00422e74  7ffff798  
   67e5f38: c015f2d4  00013000  800130d0  067e5f08  
   67e5f48: 00000000  00000000  00000000  00000000  
   67e5f58: 00000000  00000000  00000000  00000000  
   67e5f68: 070dd000  c00e357a  00000000  400e3578  
   67e5f78: ffffffff  7ffff7fc  00000002  00000000  
   67e5f88: 0048a668  00402c0c  00000001  00000000  
   67e5f98: 00422e74  7ffff798  c015f2d4  c00e3504  
   67e5fa8: c00e352a  7ffff738  00000000  00000000  
   67e5fb8: 00000000  00000000  00000001  00000000  
   67e5fc8: 00000000  00000000  00000000  00000000  
   67e5fd8: 00000000  00000000  00000000  00000000  
   67e5fe8: 00000000  00000000  ffffffff  00000020  
   67e5ff8: 01ffffff  00000000  

================================================================

>> trace 61c8000
================================================================
TASK HAS CPU (1): 0x61c8000 (lcrash):
No valid lowcore info available ?
 LOWCORE INFO:
  -psw      : 0x07080000 0x8001b0de
  -function : do_machine_power_off+142
  -prefix   : 0x005bf000
  -cpu timer: 0xffff879f 0x5a597b00
  -clock cmp: 0xb5eabdb9 0x7a80ea00
  -general registers:
     00190654 00000000 00000000 00000000
     0026350c 00000009 00000004 00000001
     0002cab8 04674000 00400af0 04674000
     04674000 8001b058 8001b080 04675ce8
  -access registers:
     00000000 00000000 00000000 00000000
     00000001 00000000 00000000 00000000
     00000000 00000000 00000000 00000000
     00000000 00000000 00000000 00000000
  -control registers:
     14b52a02 0026107f 00000000 00000000
     00000000 00000000 11000000 846661ff
     00000000 00000000 00000000 00000000
     00000000 846661ff d0000000 00000000
  -floating point registers 0,2,4,6:
     0000000000000000 0000000000000000
     0000000000000000 0000000000000000

================================================================