summaryrefslogtreecommitdiffstats
path: root/sys/i386/i386/trap.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2011-10-30 02:19:39 +0000
committermarcel <marcel@FreeBSD.org>2011-10-30 02:19:39 +0000
commit11d8234b9717134e53e5322cc2acf1e39ea1e9c8 (patch)
tree1116012f8caabba16fe2ebf0086a4c0f7ee98cfa /sys/i386/i386/trap.c
parentd794f830d2c5baee3e912352d66bf666bd2be9ec (diff)
downloadFreeBSD-src-11d8234b9717134e53e5322cc2acf1e39ea1e9c8.zip
FreeBSD-src-11d8234b9717134e53e5322cc2acf1e39ea1e9c8.tar.gz
Revert rev. 226893: subr_syscall.c is being included from C files and
on amd64 with FREEBSD32 enabled, this means that systrace_probe_func gets defined twice.
Diffstat (limited to 'sys/i386/i386/trap.c')
-rw-r--r--sys/i386/i386/trap.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c
index c19846b..5006f41 100644
--- a/sys/i386/i386/trap.c
+++ b/sys/i386/i386/trap.c
@@ -113,6 +113,13 @@ dtrace_trap_func_t dtrace_trap_func;
dtrace_doubletrap_func_t dtrace_doubletrap_func;
/*
+ * 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;
+
+/*
* These hooks are necessary for the pid, usdt and fasttrap providers.
*/
dtrace_fasttrap_probe_ptr_t dtrace_fasttrap_probe_ptr;
OpenPOWER on IntegriCloud