]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
general LOCK_PROFILING cleanup
authorkmacy <kmacy@FreeBSD.org>
Mon, 26 Feb 2007 08:26:44 +0000 (08:26 +0000)
committerkmacy <kmacy@FreeBSD.org>
Mon, 26 Feb 2007 08:26:44 +0000 (08:26 +0000)
commit6508c4f27bec4ddc3e098c59b24d6760e5db774d
tree329dd33524baa0ad9fe43f498498a2d120152d0d
parent01ee9020b350e550aa823f81efbe79cba3e5cb58
general LOCK_PROFILING cleanup

- only collect timestamps when a lock is contested - this reduces the overhead
  of collecting profiles from 20x to 5x

- remove unused function from subr_lock.c

- generalize cnt_hold and cnt_lock statistics to be kept for all locks

- NOTE: rwlock profiling generates invalid statistics (and most likely always has)
  someone familiar with that should review
sys/kern/kern_lock.c
sys/kern/kern_mutex.c
sys/kern/kern_rwlock.c
sys/kern/kern_sx.c
sys/kern/sched_ule.c
sys/kern/subr_lock.c
sys/sys/lock_profile.h
sys/sys/mutex.h
sys/sys/rwlock.h