Add syscall provider build glue, unhooked.

This commit is contained in:
christos 2015-03-07 15:13:04 +00:00
parent 22ca8619b1
commit 17b686e266
7 changed files with 89 additions and 2 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -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

View File

@ -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>

View File

@ -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