aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/lockstat.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2018-04-24 01:04:10 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2018-04-24 01:04:10 +0000
commit4c5209cb213d2736b60e266d0742f0262d8272d6 (patch)
tree825f608b6aa73d5b56e3844656a618397b9ba3ef /sys/sys/lockstat.h
parent5d2c81d91bda6fde38a4aaf239480846ff364047 (diff)
downloadsrc-4c5209cb213d2736b60e266d0742f0262d8272d6.tar.gz
src-4c5209cb213d2736b60e266d0742f0262d8272d6.zip
lockstat: track lockstat just like sdt probes
In particular flip the frequently tested var to bool.
Notes
Notes: svn path=/head/; revision=332900
Diffstat (limited to 'sys/sys/lockstat.h')
-rw-r--r--sys/sys/lockstat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/lockstat.h b/sys/sys/lockstat.h
index 6167a7d15e9a..9a6674fa2f64 100644
--- a/sys/sys/lockstat.h
+++ b/sys/sys/lockstat.h
@@ -70,7 +70,7 @@ SDT_PROBE_DECLARE(lockstat, , , thread__spin);
#define LOCKSTAT_WRITER 0
#define LOCKSTAT_READER 1
-extern volatile int lockstat_enabled;
+extern volatile bool lockstat_enabled;
#ifdef KDTRACE_HOOKS