dtrace syscall for linux32

This commit is contained in:
christos 2015-03-08 17:11:57 +00:00
parent dd3b3616bd
commit 48bfb0f78d
3 changed files with 40 additions and 3 deletions

View File

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

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

View File

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