aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/lockstat.h
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2015-07-20 04:41:25 +0000
committerMark Johnston <markj@FreeBSD.org>2015-07-20 04:41:25 +0000
commitbd2519480eacaa1b3ae9e5c6bd358dd817fd3e8b (patch)
tree85b0cf84208c2169f31fb032614d16154fbea19f /sys/sys/lockstat.h
parent4ffc6e480d2775e27c5b46600050489261e58463 (diff)
downloadsrc-bd2519480eacaa1b3ae9e5c6bd358dd817fd3e8b.tar.gz
src-bd2519480eacaa1b3ae9e5c6bd358dd817fd3e8b.zip
Declare lockstat_enabled even when KDTRACE_HOOKS is not defined.
Reported by: bz X-MFC-With: r285704
Notes
Notes: svn path=/head/; revision=285709
Diffstat (limited to 'sys/sys/lockstat.h')
-rw-r--r--sys/sys/lockstat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/lockstat.h b/sys/sys/lockstat.h
index 1cb9a21198ce..e5503539298f 100644
--- a/sys/sys/lockstat.h
+++ b/sys/sys/lockstat.h
@@ -68,6 +68,8 @@ SDT_PROBE_DECLARE(lockstat, , , thread__spin);
#define LOCKSTAT_WRITER 0
#define LOCKSTAT_READER 1
+extern int lockstat_enabled;
+
#ifdef KDTRACE_HOOKS
#define LOCKSTAT_RECORD0(probe, lp) \
@@ -105,8 +107,6 @@ SDT_PROBE_DECLARE(lockstat, , , thread__spin);
LOCKSTAT_RECORD1(probe, lp, a); \
} while (0)
-extern int lockstat_enabled;
-
struct lock_object;
uint64_t lockstat_nsecs(struct lock_object *);