diff options
author | markj <markj@FreeBSD.org> | 2015-07-18 00:22:00 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2015-07-18 00:22:00 +0000 |
commit | 90a3119284b43adced3a11a1f3bcd020c3630453 (patch) | |
tree | 298c04314a37eabda9a60c929317ede1dd060c25 /lib/libkvm/kvm_proc.c | |
parent | e853fb249f0a2e510bb3c9a54cda60ba290e5777 (diff) | |
download | FreeBSD-src-90a3119284b43adced3a11a1f3bcd020c3630453.zip FreeBSD-src-90a3119284b43adced3a11a1f3bcd020c3630453.tar.gz |
Modify lockstat_nsecs() to just return unless lockstat probes are actually
enabled. The cost of a timecounter read can be quite significant, and the
problem became more apparent after r284297, since that change resulted in
a call to lockstat_nsecs() for each acquisition of an rwlock read lock.
PR: 201642
Reviewed by: avg
Tested by: Jason Unovitch
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D3073
Diffstat (limited to 'lib/libkvm/kvm_proc.c')
0 files changed, 0 insertions, 0 deletions