Fix r358436 to not declare kernel symbols when _KERNEL is not defined.

Reported by:	Jenkins, Michael Butler
Pointy hat:	markj
This commit is contained in:
Mark Johnston 2020-02-28 17:38:31 +00:00
parent b4ffc02b14
commit e8049590f0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=358437

View File

@ -53,10 +53,10 @@ typedef void (*systrace_probe_func_t)(struct syscall_args *,
enum systrace_probe_t, int);
typedef void (*systrace_args_func_t)(int, void *, uint64_t *, int *);
#ifdef _KERNEL
extern systrace_probe_func_t systrace_probe_func;
extern bool systrace_enabled;
#ifdef _KERNEL
#ifdef KDTRACE_HOOKS
#define SYSTRACE_ENABLED() (systrace_enabled)
#else