summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2004-12-27 10:47:08 +0000
committerrwatson <rwatson@FreeBSD.org>2004-12-27 10:47:08 +0000
commitc2459d7b3fd786415765e83a0888144a5d1b0f66 (patch)
treed6e4247a61f78b8e198f9e2d2296daaf87672ae2 /sys/kern
parent5acf0361de2d7cc439bcdde5cba9c77380525abb (diff)
downloadFreeBSD-src-c2459d7b3fd786415765e83a0888144a5d1b0f66.zip
FreeBSD-src-c2459d7b3fd786415765e83a0888144a5d1b0f66.tar.gz
Attempt to slightly refine the print out from "show alllocks" -- list
the process and thread numbers/names on the same line rather than on separate lines, and print the thread pointer not just the tid.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_witness.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c
index 6d6afe8..c67359e 100644
--- a/sys/kern/subr_witness.c
+++ b/sys/kern/subr_witness.c
@@ -1949,11 +1949,11 @@ DB_SHOW_COMMAND(alllocks, db_witness_list_all)
FOREACH_PROC_IN_SYSTEM(p) {
if (!witness_proc_has_locks(p))
continue;
- printf("Process %d (%s)\n", p->p_pid, p->p_comm);
FOREACH_THREAD_IN_PROC(p, td) {
if (!witness_thread_has_locks(td))
continue;
- printf("Thread 0x%x\n", td->td_tid);
+ printf("Process %d (%s) thread %p (%d)\n", p->p_pid,
+ p->p_comm, td, td->td_tid);
witness_list(td);
}
}
OpenPOWER on IntegriCloud