Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/modules/dtrace Add syscall provider build glue, unhooked.
details: https://anonhg.NetBSD.org/src/rev/110d31a35446
branches: trunk
changeset: 336587:110d31a35446
user: christos <christos%NetBSD.org@localhost>
date: Sat Mar 07 15:13:04 2015 +0000
description:
Add syscall provider build glue, unhooked.
diffstat:
sys/modules/dtrace/Makefile | 10 ++++++++--
sys/modules/dtrace/linux_syscall/Makefile | 15 +++++++++++++++
sys/modules/dtrace/linux_syscall/emultrace.h | 13 +++++++++++++
sys/modules/dtrace/netbsd32_syscall/Makefile | 15 +++++++++++++++
sys/modules/dtrace/netbsd32_syscall/emultrace.h | 13 +++++++++++++
sys/modules/dtrace/syscall/Makefile | 15 +++++++++++++++
sys/modules/dtrace/syscall/emultrace.h | 10 ++++++++++
7 files changed, 89 insertions(+), 2 deletions(-)
diffs (125 lines):
diff -r 23c3ae2ce695 -r 110d31a35446 sys/modules/dtrace/Makefile
--- a/sys/modules/dtrace/Makefile Sat Mar 07 14:16:51 2015 +0000
+++ b/sys/modules/dtrace/Makefile Sat Mar 07 15:13:04 2015 +0000
@@ -1,8 +1,14 @@
-# $NetBSD: Makefile,v 1.4 2012/12/02 01:05:17 chs Exp $
+# $NetBSD: Makefile,v 1.5 2015/03/07 15:13:04 christos Exp $
# $FreeBSD: src/sys/modules/dtrace/Makefile,v 1.6.2.1 2009/08/03 08:13:06 kensmith Exp $
.include <bsd.own.mk>
-SUBDIR= dtrace sdt fbt profile
+SUBDIR= dtrace sdt fbt profile syscall
+SUBDIR+= linux_syscall
+
+.if ${MACHINE_ARCH} == "x86_64"
+SUBDIR+= netbsd32_syscall
+#SUBDIR+= linux32_syscall
+.endif
.include <bsd.subdir.mk>
diff -r 23c3ae2ce695 -r 110d31a35446 sys/modules/dtrace/linux_syscall/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/dtrace/linux_syscall/Makefile Sat Mar 07 15:13:04 2015 +0000
@@ -0,0 +1,15 @@
+# $FreeBSD: src/sys/modules/dtrace/sdt/Makefile,v 1.1.4.1 2009/08/03 08:13:06 kensmith Exp $
+
+.include "../../Makefile.inc"
+
+.PATH: ${NETBSDSRCDIR}/external/cddl/osnet/dev/systrace
+
+KMOD= dtrace_syscall_linux
+SRCS= systrace.c
+
+CPPFLAGS+= -I${NETBSDSRCDIR}/external/cddl/osnet/sys \
+ -I${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common
+
+CPPFLAGS+= -Wno-unknown-pragmas
+
+.include <bsd.kmodule.mk>
diff -r 23c3ae2ce695 -r 110d31a35446 sys/modules/dtrace/linux_syscall/emultrace.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/dtrace/linux_syscall/emultrace.h Sat Mar 07 15:13:04 2015 +0000
@@ -0,0 +1,13 @@
+/*
+ * The syscall arguments are processed into a DTrace argument array
+ * using a generated function. See sys/kern/makesyscalls.sh.
+ */
+#include <compat/linux/common/linux_types.h>
+#include <compat/linux/common/linux_mmap.h>
+#include <compat/linux/common/linux_signal.h>
+#include <compat/linux/linux_syscall.h>
+#include <compat/linux/linux_syscallargs.h>
+#include <compat/linux/linux_systrace_args.c>
+
+#define emulname linux
+#define EMULNAME LINUX
diff -r 23c3ae2ce695 -r 110d31a35446 sys/modules/dtrace/netbsd32_syscall/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/dtrace/netbsd32_syscall/Makefile Sat Mar 07 15:13:04 2015 +0000
@@ -0,0 +1,15 @@
+# $FreeBSD: src/sys/modules/dtrace/sdt/Makefile,v 1.1.4.1 2009/08/03 08:13:06 kensmith Exp $
+
+.include "../../Makefile.inc"
+
+.PATH: ${NETBSDSRCDIR}/external/cddl/osnet/dev/systrace
+
+KMOD= dtrace_syscall_netbsd32
+SRCS= systrace.c
+
+CPPFLAGS+= -I${NETBSDSRCDIR}/external/cddl/osnet/sys \
+ -I${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common
+
+CPPFLAGS+= -Wno-unknown-pragmas
+
+.include <bsd.kmodule.mk>
diff -r 23c3ae2ce695 -r 110d31a35446 sys/modules/dtrace/netbsd32_syscall/emultrace.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/dtrace/netbsd32_syscall/emultrace.h Sat Mar 07 15:13:04 2015 +0000
@@ -0,0 +1,13 @@
+/*
+ * The syscall arguments are processed into a DTrace argument array
+ * using a generated function. See sys/kern/makesyscalls.sh.
+ */
+#define COMPAT_NETBSD32
+
+#include <compat/netbsd32/netbsd32.h>
+#include <compat/netbsd32/netbsd32_syscall.h>
+#include <compat/netbsd32/netbsd32_syscallargs.h>
+#include <compat/netbsd32/netbsd32_systrace_args.c>
+
+#define emulname netbsd32
+#define EMULNAME NETBSD32
diff -r 23c3ae2ce695 -r 110d31a35446 sys/modules/dtrace/syscall/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/dtrace/syscall/Makefile Sat Mar 07 15:13:04 2015 +0000
@@ -0,0 +1,15 @@
+# $FreeBSD: src/sys/modules/dtrace/sdt/Makefile,v 1.1.4.1 2009/08/03 08:13:06 kensmith Exp $
+
+.include "../../Makefile.inc"
+
+.PATH: ${NETBSDSRCDIR}/external/cddl/osnet/dev/systrace
+
+KMOD= dtrace_syscall
+SRCS= systrace.c
+
+CPPFLAGS+= -I${NETBSDSRCDIR}/external/cddl/osnet/sys \
+ -I${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common
+
+CPPFLAGS+= -Wno-unknown-pragmas
+
+.include <bsd.kmodule.mk>
diff -r 23c3ae2ce695 -r 110d31a35446 sys/modules/dtrace/syscall/emultrace.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/dtrace/syscall/emultrace.h Sat Mar 07 15:13:04 2015 +0000
@@ -0,0 +1,10 @@
+/*
+ * The syscall arguments are processed into a DTrace argument array
+ * using a generated function. See sys/kern/makesyscalls.sh.
+ */
+#include <sys/syscall.h>
+#include <kern/systrace_args.c>
+
+#define emulname netbsd
+#define EMULNAME NETBSD
+#define NATIVE
Home |
Main Index |
Thread Index |
Old Index