diff options
author | Kip Macy <kmacy@FreeBSD.org> | 2006-11-11 03:18:07 +0000 |
---|---|---|
committer | Kip Macy <kmacy@FreeBSD.org> | 2006-11-11 03:18:07 +0000 |
commit | 7c0435b93397740dfc0a916712ce03421b08d08a (patch) | |
tree | f43d5c4ecffd369fdc72c9807d30ffd296fd76f6 /sys/kern/subr_witness.c | |
parent | 1cede0c9bd09db0c031c28ab29cdac914c5a1354 (diff) | |
download | src-7c0435b93397740dfc0a916712ce03421b08d08a.tar.gz src-7c0435b93397740dfc0a916712ce03421b08d08a.zip |
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
Notes
Notes:
svn path=/head/; revision=164159
Diffstat (limited to 'sys/kern/subr_witness.c')
-rw-r--r-- | sys/kern/subr_witness.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index a99172e93c31..7b9d77d3df8b 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -482,7 +482,7 @@ witness_initialize(void *dummy __unused) CTR1(KTR_WITNESS, "%s: initializing witness", __func__); mtx_init(&w_mtx, "witness lock", NULL, MTX_SPIN | MTX_QUIET | - MTX_NOWITNESS); + MTX_NOWITNESS | MTX_NOPROFILE); for (i = 0; i < WITNESS_COUNT; i++) witness_free(&w_data[i]); for (i = 0; i < WITNESS_CHILDCOUNT; i++) |