diff options
author | kmacy <kmacy@FreeBSD.org> | 2006-11-11 03:18:07 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2006-11-11 03:18:07 +0000 |
commit | 9eefcf316159b161b2c6e5143a8991bcb7e63711 (patch) | |
tree | f43d5c4ecffd369fdc72c9807d30ffd296fd76f6 /sys/sys/mutex.h | |
parent | cd277df0bb233f1107603284c3a160846855b3a1 (diff) | |
download | FreeBSD-src-9eefcf316159b161b2c6e5143a8991bcb7e63711.zip FreeBSD-src-9eefcf316159b161b2c6e5143a8991bcb7e63711.tar.gz |
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
Diffstat (limited to 'sys/sys/mutex.h')
-rw-r--r-- | sys/sys/mutex.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h index 1a13e1a..c5acf6c 100644 --- a/sys/sys/mutex.h +++ b/sys/sys/mutex.h @@ -56,6 +56,7 @@ #define MTX_SPIN 0x00000001 /* Spin lock (disables interrupts) */ #define MTX_RECURSE 0x00000004 /* Option: lock allowed to recurse */ #define MTX_NOWITNESS 0x00000008 /* Don't do any witness checking. */ +#define MTX_NOPROFILE 0x00000020 /* * Option flags passed to certain lock/unlock routines, through the use |