diff options
author | rwatson <rwatson@FreeBSD.org> | 2004-12-27 10:47:08 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2004-12-27 10:47:08 +0000 |
commit | c2459d7b3fd786415765e83a0888144a5d1b0f66 (patch) | |
tree | d6e4247a61f78b8e198f9e2d2296daaf87672ae2 /sys | |
parent | 5acf0361de2d7cc439bcdde5cba9c77380525abb (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/kern/subr_witness.c | 4 |
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); } } |