Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/modules/dtrace dtrace syscall for linux32



details:   https://anonhg.NetBSD.org/src/rev/553619c6be84
branches:  trunk
changeset: 336646:553619c6be84
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Mar 08 17:11:57 2015 +0000

description:
dtrace syscall for linux32

diffstat:

 sys/modules/dtrace/Makefile                    |   6 +++---
 sys/modules/dtrace/linux32_syscall/Makefile    |  15 +++++++++++++++
 sys/modules/dtrace/linux32_syscall/emultrace.h |  22 ++++++++++++++++++++++
 3 files changed, 40 insertions(+), 3 deletions(-)

diffs (66 lines):

diff -r 46bd2d970fb5 -r 553619c6be84 sys/modules/dtrace/Makefile
--- a/sys/modules/dtrace/Makefile       Sun Mar 08 17:10:59 2015 +0000
+++ b/sys/modules/dtrace/Makefile       Sun Mar 08 17:11:57 2015 +0000
@@ -1,14 +1,14 @@
-#      $NetBSD: Makefile,v 1.5 2015/03/07 15:13:04 christos Exp $
+#      $NetBSD: Makefile,v 1.6 2015/03/08 17:11:57 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 syscall
+SUBDIR=                dtrace sdt fbt lockstat profile syscall
 SUBDIR+=       linux_syscall
 
 .if ${MACHINE_ARCH} == "x86_64"
 SUBDIR+=       netbsd32_syscall
-#SUBDIR+=      linux32_syscall
+SUBDIR+=       linux32_syscall
 .endif
 
 .include <bsd.subdir.mk>
diff -r 46bd2d970fb5 -r 553619c6be84 sys/modules/dtrace/linux32_syscall/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/dtrace/linux32_syscall/Makefile       Sun Mar 08 17:11:57 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_linux32
+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 46bd2d970fb5 -r 553619c6be84 sys/modules/dtrace/linux32_syscall/emultrace.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/modules/dtrace/linux32_syscall/emultrace.h    Sun Mar 08 17:11:57 2015 +0000
@@ -0,0 +1,22 @@
+/*
+ * 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_syscallargs.h>
+
+#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_syscallargs.h>
+
+#include <compat/linux32/common/linux32_types.h>
+#include <compat/linux32/common/linux32_signal.h>
+#include <compat/linux32/linux32_syscall.h>
+#include <compat/linux32/linux32_syscallargs.h>
+#include <compat/linux32/linux32_systrace_args.c>
+
+#define emulname       linux32
+#define EMULNAME       LINUX32



Home | Main Index | Thread Index | Old Index