summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_syscall.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2011-10-29 01:26:36 +0000
committermarcel <marcel@FreeBSD.org>2011-10-29 01:26:36 +0000
commitac13f9cbdb659f39f2285963f05c7f94b54cb076 (patch)
treeff89e0d6181e2a275e009bec9b7543d743a73566 /sys/kern/subr_syscall.c
parent5940d062c3743ab439929ab2bc109d6ba729172a (diff)
downloadFreeBSD-src-ac13f9cbdb659f39f2285963f05c7f94b54cb076.zip
FreeBSD-src-ac13f9cbdb659f39f2285963f05c7f94b54cb076.tar.gz
Define systrace_probe_func in subr_syscall.c where it's used, instead
of defining it in MD code. This eliminates porting to other architectures.
Diffstat (limited to 'sys/kern/subr_syscall.c')
-rw-r--r--sys/kern/subr_syscall.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/kern/subr_syscall.c b/sys/kern/subr_syscall.c
index bba4479..f9689a0 100644
--- a/sys/kern/subr_syscall.c
+++ b/sys/kern/subr_syscall.c
@@ -52,6 +52,15 @@ __FBSDID("$FreeBSD$");
#endif
#include <security/audit/audit.h>
+#ifdef KDTRACE_HOOKS
+/*
+ * This is a hook which is initialised by the systrace module
+ * when it is loaded. This keeps the DTrace syscall provider
+ * implementation opaque.
+ */
+systrace_probe_func_t systrace_probe_func;
+#endif
+
static inline int
syscallenter(struct thread *td, struct syscall_args *sa)
{
OpenPOWER on IntegriCloud