Date: Tue, 25 Apr 2006 20:28:18 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern subr_turnstile.c Message-ID: <200604252028.k3PKSIdQ048386@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2006-04-25 20:28:18 UTC FreeBSD src repository Modified files: sys/kern subr_turnstile.c Log: Add some new commands to hopefully make it easier to diagnose lock-related problems in ddb: - "show threadchain [thread]" will start with the specified thread (or the current kdb thread by default) and show it's state. If it is blocked on a lock, it will find the owner of the lock and show its state, etc. - "show allchains" will find all of the threads that are blocked on a lock (but do not have any threads blocked on a lock they hold) and show the resulting thread chain. - "show lockchain <lock>" takes a pointer to a lock_object (such as a mutex or rwlock). If there is a turnstile for that lock, then it will display all the threads blocked on the lock. In addition, for each thread blocked on the lock, it will display any contested locks they hold, and recurse on those locks to show any threads blocked on those locks, etc. Revision Changes Path 1.160 +138 -0 src/sys/kern/subr_turnstile.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604252028.k3PKSIdQ048386>