ttid subcommand
The ttid subcommand displays the thread table entry for a specific thread.
Format
Parameters
Item | Description |
---|---|
-h | Specifies that the tid parameter is in hexadecimal. |
-d | Specifies that the tid parameter is in decimal. |
tid | Specifies the thread ID. This value must be a decimal or a hexadecimal value as specified by the -h or -d options, or as required by the hexadecimal_wanted toggle specified with the set subcommand. If no thread ID is specified, the entry for the current thread is displayed. |
Other
th_tid
Examples
The following is an example of how to use the ttid subcommand:
KDB(4)> p * //print process table
SLOT NAME STATE PID PPID PGRP UID EUID ADSPACE
...
proc+000100 1 init ACTIVE 00001 00000 00000 00000 00000 0000A005
...
proc+000C00 12 gil ACTIVE 00C18 00000 00000 00000 00000 00026013
...
KDB(4)> tpid 1 //print thread(s) of process pid 1
SLOT NAME STATE TID PRI CPUID CPU FLAGS WCHAN
thread+0000C0 1 init SLEEP 001D9 03C 000 00000400
KDB(4)> ttid 001D9 //print thread with tid 0x1d9
SLOT NAME STATE TID PRI CPUID CPU FLAGS WCHAN
thread+0000C0 1 init SLEEP 001D9 03C 000 00000400
NAME................ init
FLAGS............... WAKEONSIG
WTYPE............... WEVENT
............stackp64 :00000000 ..............stackp :2FF22DC0
...............state :00000003 ...............wtype :00000001
.............suspend :00000001 ...............flags :00000400
..............atomic :00000000
DATA................
...............procp :E3000100
...............userp :2FF3B6C0 <__ublock+0002C0>
............uthreadp :2FF3B400 <__ublock+000000>
THREAD LINK.........
..........prevthread :E60000C0
..........nextthread :E60000C0
SLEEP LOCK.........
............ulock64 :00000000 ..............ulock :00000000
...............wchan :00000000 ..............wchan1 :00000000
...........wchan1sid :00000000 ........wchan1offset :01AB5A58
..............wchan2 :00000000 ..............swchan :00000000
...........eventlist :00000000 ..............result :00000000
.............polevel :000000AF .............pevent :00000000
.............wevent :00000004 ..............slist :00000000
...........lockcount :00000000
DISPATCH............
...............ticks :00000000 ...............prior :E60000C0
................next :E60000C0 ...............synch :FFFFFFFF
..............dispct :000008F6 ...............fpuct :00000000
SCHEDULER...........
...............cpuid :FFFFFFFF ..............scpuid :FFFFFFFF
............affinity :00000001 .................pri :0000003C
..............policy :00000000 .................cpu :00000000
.............lockpri :0000003D .............wakepri :0000007F
................time :000000FF .............sav_pri :0000003C
SIGNAL..............
..............cursig :00000000
......(pending) sig :
............sigmask :
...............scp64 :00000000 .................scp :00000000
MISC................
............graphics :00000000 ..............cancel :00000000
...........lockowner :E60042C0 .............boosted :00000000
..............tsleep :FFFFFFFF
..........userdata64 :00000000 ............userdata :00000000