cvs commit: src/sys/kern subr_sleepqueue.c
John Baldwin
jhb at freebsd.org
Fri Jan 27 14:46:37 PST 2006
On Friday 27 January 2006 17:24, John Baldwin wrote:
> jhb 2006-01-27 22:24:07 UTC
>
> FreeBSD src repository
>
> Modified files:
> sys/kern subr_sleepqueue.c
> Log:
> Add a new ddb command 'show sleepq'. It takes a wait channel as an
> argument and looks for a sleep queue associated with that wait channel.
> If it finds one it will display information such as the list of threads
> sleeping on that queue. If it can't find a sleep queue for that wait
> channel, then it will see if that address matches any of the active
> sleep queues. If so, it will display information about the sleepq at the
> specified address.
Sample output:
db> show sleepq 0xc477d780
Wait channel: 0xc477d780
Queue type: 1
Associated Interlock: 0xc477d788 - (sleep mutex) crash2 event
Blocked threads:
0xc4754a80 (tid 100059, pid 57, "crash2: 1")
0xc4754c00 (tid 100058, pid 58, "crash2: 2")
0xc4754900 (tid 100060, pid 56, "crash2: 0")
0xc4754d80 (tid 100057, pid 59, "crash2: 3")
db> show sleepq 0xc07c5b70
Wait channel: 0xc07c5b70
Queue type: 0
Blocked threads:
0xc44ffc00 (tid 100047, pid 41, "syncer")
--
John Baldwin <jhb at FreeBSD.org> <>< http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve" = http://www.FreeBSD.org
More information about the cvs-src
mailing list