tpid subcommand
The tpid subcommand displays all thread entries belonging to a process.
Format
Parameters
Item | Description |
---|---|
-x | Specifies that the pid parameter is in hexadecimal. |
-d | Specifies that the pid parameter is in decimal. |
pid | Specifies the process ID for which you want to display thread entries. 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 process ID is specified, all thread table entries for the current process are displayed. |
Other
th_pid
Examples
The following is an example of how to use the tpid 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)> tpid 00C18 //print thread(s) of process pid 0xc18
SLOT NAME STATE TID PRI CPUID CPU FLAGS WCHAN
thread+000900 12 gil SLEEP 00C19 025 000 00001004
thread+000C00 16 gil SLEEP 01021 025 00000 000 00003004 netisr_servers+000000
thread+000B40 15 gil SLEEP 00F1F 025 00000 000 00003004 netisr_servers+000000
thread+000A80 14 gil SLEEP 00E1D 025 00000 000 00003004 netisr_servers+000000
thread+0009C0 13 gil SLEEP 00D1B 025 00000 000 00003004 netisr_servers+000000