Declare lockstat_enabled even when KDTRACE_HOOKS is not defined.
Reported by: bz X-MFC-With: r285704
This commit is contained in:
parent
4ffc6e480d
commit
bd2519480e
@ -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 *);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user