Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Feb 2020 17:23:53 +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: r358436 - head/sys/sys
Message-ID:  <202002281723.01SHNrGL029738@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Fri Feb 28 17:23:53 2020
New Revision: 358436
URL: https://svnweb.freebsd.org/changeset/base/358436

Log:
  sy_call_t and systrace_args_func_t need to be visible to userspace.
  
  Reported by:	Jenkins

Modified:
  head/sys/sys/sysent.h

Modified: head/sys/sys/sysent.h
==============================================================================
--- head/sys/sys/sysent.h	Fri Feb 28 17:05:27 2020	(r358435)
+++ head/sys/sys/sysent.h	Fri Feb 28 17:23:53 2020	(r358436)
@@ -42,7 +42,6 @@ struct thread;
 struct ksiginfo;
 struct syscall_args;
 
-#ifdef _KERNEL
 enum systrace_probe_t {
 	SYSTRACE_ENTRY,
 	SYSTRACE_RETURN,
@@ -57,6 +56,7 @@ typedef	void	(*systrace_args_func_t)(int, void *, uint
 extern systrace_probe_func_t	systrace_probe_func;
 extern bool			systrace_enabled;
 
+#ifdef _KERNEL
 #ifdef KDTRACE_HOOKS
 #define	SYSTRACE_ENABLED()	(systrace_enabled)
 #else



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202002281723.01SHNrGL029738>