Date: Mon, 20 Jul 2015 04:41:26 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r285709 - head/sys/sys Message-ID: <201507200441.t6K4fQkO059136@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 *);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507200441.t6K4fQkO059136>