git: kernel -- Spinlock debugging.

Venkatesh Srinivas vsrinivas at crater.dragonflybsd.org
Sat Dec 25 17:15:21 PST 2010


commit 1a474e56c667c8f0289b935f5170c17ddebe3be5
Author: Venkatesh Srinivas <me at endeavour.zapto.org>
Date:   Sat Dec 25 16:57:07 2010 -0800

    kernel -- Spinlock debugging.
    
    * Track spinlocks held by a thread in a per-thread array; records the lock
      address and the EIP of the lock-taker.
    
    * Panic in lockmgr() if we hold any spinlocks when trying to take a sleeping
      lockmgr lock.

Summary of changes:
 sys/kern/kern_lock.c |    9 +++++++++
 sys/sys/spinlock2.h  |   38 ++++++++++++++++++++++++++++++++++++++
 sys/sys/thread.h     |    6 ++++++
 3 files changed, 53 insertions(+), 0 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/1a474e56c667c8f0289b935f5170c17ddebe3be5


-- 
DragonFly BSD source repository





More information about the Commits mailing list