dt
deftask [-w outfile] [task]
Set the default task if one is indicated. Otherwise, display the current
value of deftask. When 'lcrash' is run on a system core dump, deftask
gets set automatically to the task that was active when the system PANIC
occurred.When 'lcrash' is run on a live system, deftask is not set by
default.
The deftask value is used by 'lcrash' in a number of ways. The trace
command will display a trace for the default task if one is set. Also,
the translation of certain virtual addresses (user space) depends upon
deftask being set.
Currently there is no possibility to reset the default task.
Example 4-2. deftask
>> 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 522 470 0 100 lcrash
===============================================================================
19 active task structs found
>> trace
System is ACTIVE. Set deftask.
>> deftask
No default task set
>> deftask 68f8000
Default task is 0x68f8000
>> trace
================================================================
STACK TRACE FOR TASK: 0x68f8000 (login)
STACK:
0 schedule+1076 [0x1c590]
1 sys_wait4+1050 [0x23fc6]
2 pgm_system_call+34 [0x130d0]
================================================================
>> deftask
Default task is 0x68f8000