svn commit: r285709 - head/sys/sys

Mark Johnston markj at FreeBSD.org
Mon Jul 20 04:41:27 UTC 2015


Author: markj
Date: Mon Jul 20 04:41:25 2015
New Revision: 285709
URL: https://svnweb.freebsd.org/changeset/base/285709

Log:
  Declare lockstat_enabled even when KDTRACE_HOOKS is not defined.
  
  Reported by:	bz
  X-MFC-With:	r285704

Modified:
  head/sys/sys/lockstat.h

Modified: head/sys/sys/lockstat.h
==============================================================================
--- head/sys/sys/lockstat.h	Mon Jul 20 02:38:51 2015	(r285708)
+++ head/sys/sys/lockstat.h	Mon Jul 20 04:41:25 2015	(r285709)
@@ -68,6 +68,8 @@ SDT_PROBE_DECLARE(lockstat, , , thread__
 #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__
 	LOCKSTAT_RECORD1(probe, lp, a);					\
 } while (0)
 
-extern int lockstat_enabled;
-
 struct lock_object;
 uint64_t lockstat_nsecs(struct lock_object *);
 


More information about the svn-src-head mailing list