Subject: CVS commit: [newlock] syssrc/sys
To: None <source-changes@netbsd.org>
From: Jason R Thorpe <thorpej@netbsd.org>
List: source-changes
Date: 03/22/2002 02:15:56
Module Name: syssrc
Committed By: thorpej
Date: Fri Mar 22 00:15:55 UTC 2002
Modified Files:
syssrc/sys/kern [newlock]: kern_mutex.c
syssrc/sys/sys [newlock]: mutex.h
Log Message:
Add some minimal mutex debugging infrastructure.
* struct mutex_debug_info, which MD code adds to the kmutex_t
when MUTEX_DEBUG is defined, contains the PC values of the
last-locked and last-unlocked.
* MD code is expected to set last-locked in the enter fast path.
* MD code is expected to always call mutex_vector_exit() in the
exit case.
Note: this code relies on MD code performing a tail-call to the
slow-path.
To generate a diff of this commit:
cvs rdiff -r1.1.2.6 -r1.1.2.7 syssrc/sys/kern/kern_mutex.c
cvs rdiff -r1.1.2.6 -r1.1.2.7 syssrc/sys/sys/mutex.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.