diff options
author | attilio <attilio@FreeBSD.org> | 2008-06-18 20:42:01 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2008-06-18 20:42:01 +0000 |
commit | e6328e119bac75864ce001b4b0747d61b9294de4 (patch) | |
tree | 52471395114c4651e643f788a3337a7855f30750 /sys/ddb | |
parent | b76441b5e0e30899029360205be8e62631309d02 (diff) | |
download | FreeBSD-src-e6328e119bac75864ce001b4b0747d61b9294de4.zip FreeBSD-src-e6328e119bac75864ce001b4b0747d61b9294de4.tar.gz |
Print out the container lock when showing the thread state in DDB.
Tested by: benjsc
Diffstat (limited to 'sys/ddb')
-rw-r--r-- | sys/ddb/db_ps.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/ddb/db_ps.c b/sys/ddb/db_ps.c index bf14ecf..3f77286 100644 --- a/sys/ddb/db_ps.c +++ b/sys/ddb/db_ps.c @@ -292,6 +292,7 @@ dumpthread(volatile struct proc *p, volatile struct thread *td, int all) DB_SHOW_COMMAND(thread, db_show_thread) { struct thread *td; + struct lock_object *lock; boolean_t comma; /* Determine which thread to examine. */ @@ -299,6 +300,7 @@ DB_SHOW_COMMAND(thread, db_show_thread) td = db_lookup_thread(addr, FALSE); else td = kdb_thread; + lock = (struct lock_object *)td->td_lock; db_printf("Thread %d at %p:\n", td->td_tid, td); db_printf(" proc (pid %d): %p\n", td->td_proc->p_pid, td->td_proc); @@ -365,6 +367,7 @@ DB_SHOW_COMMAND(thread, db_show_thread) db_printf(" wmesg: %s wchan: %p\n", td->td_wmesg, td->td_wchan); db_printf(" priority: %d\n", td->td_priority); + db_printf(" container lock: %s (%p)\n", lock->lo_name, lock); } DB_SHOW_COMMAND(proc, db_show_proc) |