cvs commit: src UPDATING src/sys/conf options src/sys/kern
kern_lock.c kern_mutex.c kern_rwlock.c kern_sx.c subr_lock.c
subr_witness.c src/sys/sys _lock.h _mutex.h lock.h lock_profile.h
lockmgr.h mutex.h src/sys/sun4v/include cpufunc.h
Kip Macy
kmacy at FreeBSD.org
Sat Nov 11 03:18:07 UTC 2006
kmacy 2006-11-11 03:18:07 UTC
FreeBSD src repository
Modified files:
. UPDATING
sys/conf options
sys/kern kern_lock.c kern_mutex.c kern_rwlock.c
kern_sx.c subr_lock.c subr_witness.c
sys/sys _lock.h _mutex.h lock.h lockmgr.h mutex.h
sys/sun4v/include cpufunc.h
Added files:
sys/sys lock_profile.h
Log:
MUTEX_PROFILING has been generalized to LOCK_PROFILING. We now profile
wait (time waited to acquire) and hold times for *all* kernel locks. If
the architecture has a system synchronized TSC, the profiling code will
use that - thereby minimizing profiling overhead. Large chunks of profiling
code have been moved out of line, the overhead measured on the T1 for when
it is compiled in but not enabled is < 1%.
Approved by: scottl (standing in for mentor rwatson)
Reviewed by: des and jhb
Revision Changes Path
1.463 +6 -0 src/UPDATING
1.564 +1 -1 src/sys/conf/options
1.101 +19 -5 src/sys/kern/kern_lock.c
1.177 +30 -248 src/sys/kern/kern_mutex.c
1.11 +20 -2 src/sys/kern/kern_rwlock.c
1.31 +21 -1 src/sys/kern/kern_sx.c
1.5 +291 -0 src/sys/kern/subr_lock.c
1.220 +1 -1 src/sys/kern/subr_witness.c
1.2 +3 -0 src/sys/sun4v/include/cpufunc.h
1.13 +24 -0 src/sys/sys/_lock.h
1.12 +0 -19 src/sys/sys/_mutex.h
1.60 +2 -1 src/sys/sys/lock.h
1.1 +170 -0 src/sys/sys/lock_profile.h (new)
1.52 +11 -4 src/sys/sys/lockmgr.h
1.85 +1 -0 src/sys/sys/mutex.h
More information about the cvs-src
mailing list