DTrace: add the dtrace module.

This commit is contained in:
darran 2010-02-21 11:16:19 +00:00
parent dea8f231d6
commit f802834604
2 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,8 @@
# $NetBSD: Makefile,v 1.1 2010/02/21 11:16:19 darran 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
.include <bsd.subdir.mk>

View File

@ -0,0 +1,33 @@
# $FreeBSD: src/sys/modules/dtrace/dtrace/Makefile,v 1.2.2.1 2009/08/03 08:13:06 kensmith Exp $
#.include "../../Makefile.inc"
ARCHDIR= ${MACHINE}
.PATH: ${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common/dtrace
.PATH: ${NETBSDSRCDIR}/external/cddl/osnet/dev/dtrace
.PATH: ${NETBSDSRCDIR}/external/cddl/osnet/dev/dtrace/${ARCHDIR}
KMOD= dtrace
SRCS= dtrace.c \
dtrace_asm.S \
dtrace_subr.c
.if ${MACHINE} == "amd64" || ${MACHINE} == "i386"
SRCS+= dis_tables.c \
instr_size.c
.endif
CPPFLAGS+= -I${NETBSDSRCDIR}/external/cddl/osnet/sys \
-I${NETBSDSRCDIR}/external/cddl/osnet/dev/dtrace \
-I${NETBSDSRCDIR}/external/cddl/osnet/dev/dtrace/${ARCHDIR} \
-I${NETBSDSRCDIR}/external/cddl/osnet/dist/uts/common \
-DDIS_MEM
CPPFLAGS+= -DSMP -DDEBUG
EXPORT_SYMS= dtrace_register \
dtrace_unregister \
dtrace_probe_lookup
.include <bsd.kmodule.mk>