diff options
author | jeff <jeff@FreeBSD.org> | 2005-08-03 04:59:07 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2005-08-03 04:59:07 +0000 |
commit | a2347b7b512eea66b44ec96004f9117d63043d7a (patch) | |
tree | 171b5b9c657805d3ce7dde14fdcd67f9b0e0cf68 /sys/kern/kern_lock.c | |
parent | 08fb635b5502e48aa8292e7f376c46f0ba1db8cc (diff) | |
download | FreeBSD-src-a2347b7b512eea66b44ec96004f9117d63043d7a.zip FreeBSD-src-a2347b7b512eea66b44ec96004f9117d63043d7a.tar.gz |
- Fix a problem that slipped through review; the stack member of the lockmgr
structure should have the lk_ prefix.
- Add stack_print(lkp->lk_stack) to the information printed with
lockmgr_printinfo().
Diffstat (limited to 'sys/kern/kern_lock.c')
-rw-r--r-- | sys/kern/kern_lock.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 375015f..2fcda62 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -214,7 +214,7 @@ lockmgr(lkp, flags, interlkp, td) break; sharelock(td, lkp, 1); #if defined(DEBUG_LOCKS) - stack_save(&lkp->stack); + stack_save(&lkp->lk_stack); #endif break; } @@ -297,7 +297,7 @@ lockmgr(lkp, flags, interlkp, td) lkp->lk_exclusivecount = 1; COUNT(td, 1); #if defined(DEBUG_LOCKS) - stack_save(&lkp->stack); + stack_save(&lkp->lk_stack); #endif break; } @@ -356,7 +356,7 @@ lockmgr(lkp, flags, interlkp, td) lkp->lk_exclusivecount = 1; COUNT(td, 1); #if defined(DEBUG_LOCKS) - stack_save(&lkp->stack); + stack_save(&lkp->lk_stack); #endif break; @@ -401,7 +401,7 @@ lockmgr(lkp, flags, interlkp, td) lkp->lk_exclusivecount = 1; COUNT(td, 1); #if defined(DEBUG_LOCKS) - stack_save(&lkp->stack); + stack_save(&lkp->lk_stack); #endif break; @@ -495,7 +495,7 @@ lockinit(lkp, prio, wmesg, timo, flags) lkp->lk_lockholder = LK_NOPROC; lkp->lk_newlock = NULL; #ifdef DEBUG_LOCKS - stack_zero(&lkp->stack); + stack_zero(&lkp->lk_stack); #endif } @@ -565,4 +565,7 @@ lockmgr_printinfo(lkp) lkp->lk_lockholder, lkp->lk_lockholder->td_proc->p_pid); if (lkp->lk_waitcount > 0) printf(" with %d pending", lkp->lk_waitcount); +#ifdef DEBUG_LOCKS + stack_print(&lkp->lk_stack); +#endif } |