aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2004-12-27 10:47:08 +0000
committerRobert Watson <rwatson@FreeBSD.org>2004-12-27 10:47:08 +0000
commit6ce8940626f36fa24f1da89c12452ee2f93fd144 (patch)
treed6e4247a61f78b8e198f9e2d2296daaf87672ae2 /sys
parentb2e1ce3c5f42e9f49b95dcca8c9fc421b5f0741e (diff)
downloadsrc-6ce8940626f36fa24f1da89c12452ee2f93fd144.tar.gz
src-6ce8940626f36fa24f1da89c12452ee2f93fd144.zip
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.
Notes
Notes: svn path=/head/; revision=139348
Diffstat (limited to 'sys')
-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 6d6afe8a031c..c67359e1e09b 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);
}
}