head	1.10;
access;
symbols
	netbsd-11-0-RC3:1.10
	netbsd-11-0-RC2:1.10
	netbsd-11-0-RC1:1.10
	perseant-exfatfs-base-20250801:1.10
	netbsd-11:1.10.0.22
	netbsd-11-base:1.10
	netbsd-10-1-RELEASE:1.10
	perseant-exfatfs-base-20240630:1.10
	perseant-exfatfs:1.10.0.20
	perseant-exfatfs-base:1.10
	netbsd-8-3-RELEASE:1.6
	netbsd-9-4-RELEASE:1.6.22.1
	netbsd-10-0-RELEASE:1.10
	netbsd-10-0-RC6:1.10
	netbsd-10-0-RC5:1.10
	netbsd-10-0-RC4:1.10
	netbsd-10-0-RC3:1.10
	netbsd-10-0-RC2:1.10
	thorpej-ifq:1.10.0.18
	thorpej-ifq-base:1.10
	thorpej-altq-separation:1.10.0.16
	thorpej-altq-separation-base:1.10
	netbsd-10-0-RC1:1.10
	netbsd-10:1.10.0.14
	netbsd-10-base:1.10
	bouyer-sunxi-drm:1.10.0.12
	bouyer-sunxi-drm-base:1.10
	netbsd-9-3-RELEASE:1.6.22.1
	thorpej-i2c-spi-conf2:1.10.0.10
	thorpej-i2c-spi-conf2-base:1.10
	thorpej-futex2:1.10.0.8
	thorpej-futex2-base:1.10
	thorpej-cfargs2:1.10.0.6
	thorpej-cfargs2-base:1.10
	cjep_sun2x-base1:1.10
	cjep_sun2x:1.10.0.4
	cjep_sun2x-base:1.10
	cjep_staticlib_x-base1:1.10
	netbsd-9-2-RELEASE:1.6.22.1
	cjep_staticlib_x:1.10.0.2
	cjep_staticlib_x-base:1.10
	thorpej-i2c-spi-conf:1.9.0.2
	thorpej-i2c-spi-conf-base:1.10
	thorpej-cfargs:1.8.0.10
	thorpej-cfargs-base:1.9
	thorpej-futex:1.8.0.8
	thorpej-futex-base:1.8
	netbsd-9-1-RELEASE:1.6.22.1
	bouyer-xenpvh-base2:1.8
	phil-wifi-20200421:1.8
	bouyer-xenpvh-base1:1.8
	phil-wifi-20200411:1.8
	bouyer-xenpvh:1.8.0.6
	bouyer-xenpvh-base:1.8
	is-mlppp:1.8.0.4
	is-mlppp-base:1.8
	phil-wifi-20200406:1.8
	netbsd-8-2-RELEASE:1.6
	ad-namecache-base3:1.8
	netbsd-9-0-RELEASE:1.6.22.1
	netbsd-9-0-RC2:1.6.22.1
	ad-namecache-base2:1.8
	ad-namecache-base1:1.8
	ad-namecache:1.8.0.2
	ad-namecache-base:1.8
	netbsd-9-0-RC1:1.6
	phil-wifi-20191119:1.6
	netbsd-9:1.6.0.22
	netbsd-9-base:1.6
	phil-wifi-20190609:1.6
	netbsd-8-1-RELEASE:1.6
	netbsd-8-1-RC1:1.6
	isaki-audio2:1.6.0.20
	isaki-audio2-base:1.6
	pgoyette-compat-merge-20190127:1.6
	pgoyette-compat-20190127:1.6
	pgoyette-compat-20190118:1.6
	pgoyette-compat-1226:1.6
	pgoyette-compat-1126:1.6
	pgoyette-compat-1020:1.6
	pgoyette-compat-0930:1.6
	pgoyette-compat-0906:1.6
	netbsd-7-2-RELEASE:1.4
	pgoyette-compat-0728:1.6
	netbsd-8-0-RELEASE:1.6
	phil-wifi:1.6.0.18
	phil-wifi-base:1.6
	pgoyette-compat-0625:1.6
	netbsd-8-0-RC2:1.6
	pgoyette-compat-0521:1.6
	pgoyette-compat-0502:1.6
	pgoyette-compat-0422:1.6
	netbsd-8-0-RC1:1.6
	pgoyette-compat-0415:1.6
	pgoyette-compat-0407:1.6
	pgoyette-compat-0330:1.6
	pgoyette-compat-0322:1.6
	pgoyette-compat-0315:1.6
	netbsd-7-1-2-RELEASE:1.4
	pgoyette-compat:1.6.0.16
	pgoyette-compat-base:1.6
	netbsd-7-1-1-RELEASE:1.4
	tls-maxphys-base-20171202:1.6
	matt-nb8-mediatek:1.6.0.14
	matt-nb8-mediatek-base:1.6
	nick-nhusb-base-20170825:1.6
	perseant-stdc-iso10646:1.6.0.12
	perseant-stdc-iso10646-base:1.6
	netbsd-8:1.6.0.10
	netbsd-8-base:1.6
	prg-localcount2-base3:1.6
	prg-localcount2-base2:1.6
	prg-localcount2-base1:1.6
	prg-localcount2:1.6.0.8
	prg-localcount2-base:1.6
	pgoyette-localcount-20170426:1.6
	bouyer-socketcan-base1:1.6
	jdolecek-ncq:1.6.0.6
	jdolecek-ncq-base:1.6
	pgoyette-localcount-20170320:1.6
	netbsd-7-1:1.4.0.20
	netbsd-7-1-RELEASE:1.4
	netbsd-7-1-RC2:1.4
	nick-nhusb-base-20170204:1.6
	netbsd-7-nhusb-base-20170116:1.4
	bouyer-socketcan:1.6.0.4
	bouyer-socketcan-base:1.6
	pgoyette-localcount-20170107:1.6
	netbsd-7-1-RC1:1.4
	nick-nhusb-base-20161204:1.6
	pgoyette-localcount-20161104:1.6
	netbsd-7-0-2-RELEASE:1.4
	nick-nhusb-base-20161004:1.6
	localcount-20160914:1.6
	netbsd-7-nhusb:1.4.0.18
	netbsd-7-nhusb-base:1.4
	pgoyette-localcount-20160806:1.6
	pgoyette-localcount-20160726:1.6
	pgoyette-localcount:1.6.0.2
	pgoyette-localcount-base:1.6
	nick-nhusb-base-20160907:1.6
	nick-nhusb-base-20160529:1.6
	netbsd-7-0-1-RELEASE:1.4
	nick-nhusb-base-20160422:1.6
	nick-nhusb-base-20160319:1.6
	nick-nhusb-base-20151226:1.6
	netbsd-7-0:1.4.0.16
	netbsd-7-0-RELEASE:1.4
	nick-nhusb-base-20150921:1.6
	netbsd-7-0-RC3:1.4
	netbsd-7-0-RC2:1.4
	netbsd-7-0-RC1:1.4
	nick-nhusb-base-20150606:1.6
	nick-nhusb-base-20150406:1.6
	nick-nhusb:1.4.0.14
	nick-nhusb-base:1.4
	netbsd-6-0-6-RELEASE:1.3
	netbsd-6-1-5-RELEASE:1.3
	netbsd-7:1.4.0.12
	netbsd-7-base:1.4
	yamt-pagecache-base9:1.4
	yamt-pagecache-tag8:1.3.12.1
	netbsd-6-1-4-RELEASE:1.3
	netbsd-6-0-5-RELEASE:1.3
	tls-earlyentropy:1.4.0.10
	tls-earlyentropy-base:1.4
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.4
	riastradh-drm2-base3:1.4
	netbsd-6-1-3-RELEASE:1.3
	netbsd-6-0-4-RELEASE:1.3
	netbsd-6-1-2-RELEASE:1.3
	netbsd-6-0-3-RELEASE:1.3
	rmind-smpnet-nbase:1.4
	netbsd-6-1-1-RELEASE:1.3
	riastradh-drm2-base2:1.4
	riastradh-drm2-base1:1.4
	riastradh-drm2:1.4.0.8
	riastradh-drm2-base:1.4
	rmind-smpnet:1.4.0.2
	rmind-smpnet-base:1.4
	netbsd-6-1:1.3.0.26
	netbsd-6-0-2-RELEASE:1.3
	netbsd-6-1-RELEASE:1.3
	khorben-n900:1.4.0.6
	netbsd-6-1-RC4:1.3
	netbsd-6-1-RC3:1.3
	agc-symver:1.4.0.4
	agc-symver-base:1.4
	netbsd-6-1-RC2:1.3
	netbsd-6-1-RC1:1.3
	yamt-pagecache-base8:1.4
	netbsd-6-0-1-RELEASE:1.3
	yamt-pagecache-base7:1.4
	matt-nb6-plus-nbase:1.3
	yamt-pagecache-base6:1.3
	netbsd-6-0:1.3.0.24
	netbsd-6-0-RELEASE:1.3
	netbsd-6-0-RC2:1.3
	tls-maxphys:1.3.0.22
	tls-maxphys-base:1.4
	matt-nb6-plus:1.3.0.20
	matt-nb6-plus-base:1.3
	netbsd-6-0-RC1:1.3
	jmcneill-usbmp-base10:1.3
	yamt-pagecache-base5:1.3
	jmcneill-usbmp-base9:1.3
	yamt-pagecache-base4:1.3
	jmcneill-usbmp-base8:1.3
	jmcneill-usbmp-base7:1.3
	jmcneill-usbmp-base6:1.3
	jmcneill-usbmp-base5:1.3
	jmcneill-usbmp-base4:1.3
	jmcneill-usbmp-base3:1.3
	jmcneill-usbmp-pre-base2:1.3
	jmcneill-usbmp-base2:1.3
	netbsd-6:1.3.0.18
	netbsd-6-base:1.3
	jmcneill-usbmp:1.3.0.16
	jmcneill-usbmp-base:1.3
	jmcneill-audiomp3:1.3.0.14
	jmcneill-audiomp3-base:1.3
	yamt-pagecache-base3:1.3
	yamt-pagecache-base2:1.3
	yamt-pagecache:1.3.0.12
	yamt-pagecache-base:1.3
	rmind-uvmplock-nbase:1.3
	cherry-xenmp:1.3.0.10
	cherry-xenmp-base:1.3
	bouyer-quota2-nbase:1.3
	bouyer-quota2:1.3.0.8
	bouyer-quota2-base:1.3
	jruoho-x86intr:1.3.0.6
	jruoho-x86intr-base:1.3
	matt-mips64-premerge-20101231:1.3
	uebayasi-xip-base4:1.3
	uebayasi-xip-base3:1.3
	yamt-nfs-mp-base11:1.3
	uebayasi-xip-base2:1.3
	yamt-nfs-mp-base10:1.3
	uebayasi-xip:1.3.0.4
	uebayasi-xip-base1:1.3
	rmind-uvmplock:1.3.0.2
	rmind-uvmplock-base:1.3
	yamt-nfs-mp:1.2.0.2
	yamt-nfs-mp-base9:1.2;
locks; strict;
comment	@# @;


1.10
date	2021.04.25.23.41.23;	author christos;	state Exp;
branches;
next	1.9;
commitid	nTCM0iNr23WFqJQC;

1.9
date	2021.04.10.15.34.05;	author simonb;	state Exp;
branches
	1.9.2.1;
next	1.8;
commitid	HfD0EnkxmHTddLOC;

1.8
date	2019.12.04.10.12.47;	author martin;	state Exp;
branches
	1.8.10.1;
next	1.7;
commitid	cnVREJUss1tvhnNB;

1.7
date	2019.12.03.22.10.56;	author jmcneill;	state Exp;
branches;
next	1.6;
commitid	tjHf6w1kbXgThjNB;

1.6
date	2015.03.08.17.11.57;	author christos;	state Exp;
branches
	1.6.18.1
	1.6.22.1;
next	1.5;
commitid	wok2kvspP8J7hPcy;

1.5
date	2015.03.07.15.13.04;	author christos;	state Exp;
branches;
next	1.4;
commitid	IND0sV2on6piEGcy;

1.4
date	2012.12.02.01.05.17;	author chs;	state Exp;
branches
	1.4.14.1;
next	1.3;

1.3
date	2010.03.12.21.53.16;	author darran;	state Exp;
branches
	1.3.4.1
	1.3.12.1
	1.3.22.1;
next	1.2;

1.2
date	2010.03.01.21.10.18;	author darran;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2010.02.21.11.16.19;	author darran;	state Exp;
branches;
next	;

1.9.2.1
date	2021.05.13.00.47.33;	author thorpej;	state Exp;
branches;
next	;
commitid	hlq0lOvHnylpfVSC;

1.8.10.1
date	2021.04.17.17.26.20;	author thorpej;	state Exp;
branches;
next	;
commitid	bct79XL9ibnNBFPC;

1.6.18.1
date	2020.04.08.14.08.55;	author martin;	state Exp;
branches;
next	;
commitid	Qli2aW9E74UFuA3C;

1.6.22.1
date	2019.12.09.15.19.31;	author martin;	state Exp;
branches;
next	;
commitid	MqNM0VfwWzgWO2OB;

1.4.14.1
date	2015.04.06.15.18.21;	author skrll;	state Exp;
branches;
next	;
commitid	pz01Zhy7RP6iGxgy;

1.3.4.1
date	2010.03.12.21.53.16;	author uebayasi;	state dead;
branches;
next	1.3.4.2;

1.3.4.2
date	2010.04.30.14.44.17;	author uebayasi;	state Exp;
branches;
next	;

1.3.12.1
date	2013.01.16.05.33.47;	author yamt;	state Exp;
branches;
next	;

1.3.22.1
date	2013.02.25.00.30.00;	author tls;	state Exp;
branches;
next	1.3.22.2;

1.3.22.2
date	2017.12.03.11.38.52;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.2.2.1
date	2010.03.01.21.10.18;	author yamt;	state dead;
branches;
next	1.2.2.2;

1.2.2.2
date	2010.03.11.15.04.24;	author yamt;	state Exp;
branches;
next	1.2.2.3;

1.2.2.3
date	2010.08.11.22.54.50;	author yamt;	state Exp;
branches;
next	;


desc
@@


1.10
log
@Handle mipsn64
@
text
@#	$NetBSD: Makefile,v 1.9 2021/04/10 15:34:05 simonb 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 lockstat profile syscall

.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_MIPS64}
SUBDIR+=	netbsd32_syscall
.endif

.if ${MACHINE_ARCH} != "aarch64" && ${MACHINE_CPU} != "mips"
SUBDIR+=	linux_syscall
.endif

.if ${MACHINE_ARCH} == "x86_64"
SUBDIR+=	linux32_syscall
.endif

.include <bsd.subdir.mk>
@


1.9
log
@Build the netbsd32_syscall module if mips64.
Don't build the linux_syscall module if mips*
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2019/12/04 10:12:47 martin Exp $
d8 1
a8 1
.if ${MACHINE_ARCH} == "x86_64" || !empty(MACHINE_ARCH:Mmips64*)
@


1.9.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2021/04/25 23:41:23 christos Exp $
d8 1
a8 1
.if ${MACHINE_ARCH} == "x86_64" || ${MACHINE_MIPS64}
@


1.8
log
@Add syscall_linux back for other arm architectures (accidently removed
in previous)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2019/12/03 22:10:56 jmcneill Exp $
d8 5
a12 1
.if ${MACHINE_ARCH} != "aarch64"
a16 1
SUBDIR+=	netbsd32_syscall
@


1.8.10.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2021/04/10 15:34:05 simonb Exp $
d8 1
a8 5
.if ${MACHINE_ARCH} == "x86_64" || !empty(MACHINE_ARCH:Mmips64*)
SUBDIR+=	netbsd32_syscall
.endif

.if ${MACHINE_ARCH} != "aarch64" && ${MACHINE_CPU} != "mips"
d13 1
@


1.7
log
@dtrace: add support for aarch64
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2015/03/08 17:11:57 christos Exp $
d8 1
a8 1
.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
@


1.6
log
@dtrace syscall for linux32
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2015/03/07 15:13:04 christos Exp $
d7 2
d10 1
@


1.6.18.1
log
@Merge changes from current as of 20200406
@
text
@d1 1
a1 1
#	$NetBSD$
a6 2

.if ${MACHINE_ARCH} != "aarch64"
a7 1
.endif
@


1.6.22.1
log
@Pull up following revision(s) (requested by jmcneill in ticket #525):

	external/cddl/osnet/dev/dtrace/aarch64/dtrace_isa.c: revision 1.1
	distrib/sets/lists/modules/md.i386: revision 1.83
	share/mk/bsd.own.mk: revision 1.1168
	usr.bin/mkubootimage/mkubootimage.c: revision 1.25
	sys/modules/dtrace/Makefile: revision 1.7
	usr.bin/mkubootimage/mkubootimage.c: revision 1.26
	sys/modules/dtrace/Makefile: revision 1.8
	external/cddl/osnet/dist/lib/libdtrace/aarch64/dt_isadep.c: revision 1.2
	distrib/sets/lists/modules/mi: revision 1.128
	sys/arch/aarch64/include/frame.h: revision 1.3
	sys/arch/evbarm/conf/mk.generic64: revision 1.4
	external/cddl/osnet/dist/lib/libdtrace/common/dt_link.c: revision 1.12
	sys/modules/cyclic/Makefile: revision 1.4
	sys/arch/aarch64/conf/Makefile.aarch64: revision 1.16
	external/cddl/osnet/dev/dtrace/aarch64/dtrace_subr.c: revision 1.1
	sys/arch/aarch64/aarch64/start.S: revision 1.3
	sys/arch/aarch64/aarch64/trap.c: revision 1.22
	external/cddl/osnet/dev/fbt/aarch64/fbt_isa.c: revision 1.1
	external/cddl/osnet/dev/dtrace/aarch64/dtrace_asm.S: revision 1.1
	external/cddl/osnet/dev/fbt/aarch64/fbt_isa.h: revision 1.1
	external/cddl/osnet/dev/dtrace/aarch64/regset.h: revision 1.1
	external/cddl/osnet/lib/libdtrace/Makefile: revision 1.26
	distrib/sets/lists/modules/md.amd64: revision 1.82
	usr.bin/mkubootimage/mkubootimage.1: revision 1.13
	distrib/sets/lists/modules/ad.arm: revision 1.14

Add KDTRACE_HOOKS support.

Define lwp_trapframe() macro

dtrace: add support for aarch64

Add syscall_linux back for other arm architectures (accidently removed
in previous)

Add -u flag for updating headers in place.

Fix alignment of .text section by changing load address to
0xffffffc000000000 and adding 64 bytes of padding before the entry point.

Update arm64 image header in place

Move dtrace_syscall_linux out of mi set list

Enable DTrace on aarch64

Fix signed/unsigned comparison
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2015/03/08 17:11:57 christos Exp $
a6 2

.if ${MACHINE_ARCH} != "aarch64"
a7 1
.endif
@


1.5
log
@Add syscall provider build glue, unhooked.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2012/12/02 01:05:17 chs Exp $
d6 1
a6 1
SUBDIR=		dtrace sdt fbt profile syscall
d11 1
a11 1
#SUBDIR+=	linux32_syscall
@


1.4
log
@adapt the cyclic module and profile dtrace provider to netbsd.
for now, just hook the cyclic callback into hardclock().
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2010/03/12 21:53:16 darran Exp $
d6 7
a12 1
SUBDIR=		dtrace sdt fbt profile
@


1.4.14.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2015/03/08 17:11:57 christos Exp $
d6 1
a6 7
SUBDIR=		dtrace sdt fbt lockstat profile syscall
SUBDIR+=	linux_syscall

.if ${MACHINE_ARCH} == "x86_64"
SUBDIR+=	netbsd32_syscall
SUBDIR+=	linux32_syscall
.endif
@


1.3
log
@DTrace: Add the Function Boundary Trace (FBT) provider moduile.  This
module  instruments every function in the kernel with entry and exit
probes.  These probes are true zero-effect probes in that they don't
exist in the code until they are enabled.  The probes are enabled by
directly patching the function entry and exit points to make jumps into
the dtrace framework.
This gives us over 29,000 trace points in the kernel.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2010/03/01 21:10:18 darran Exp $
d6 1
a6 1
SUBDIR=		dtrace sdt fbt
@


1.3.22.1
log
@resync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2010/03/12 21:53:16 darran Exp $
d6 1
a6 1
SUBDIR=		dtrace sdt fbt profile
@


1.3.22.2
log
@update from HEAD
@
text
@d1 1
a1 1
#	$NetBSD$
d6 1
a6 7
SUBDIR=		dtrace sdt fbt lockstat profile syscall
SUBDIR+=	linux_syscall

.if ${MACHINE_ARCH} == "x86_64"
SUBDIR+=	netbsd32_syscall
SUBDIR+=	linux32_syscall
.endif
@


1.3.12.1
log
@sync with (a bit old) head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2010/03/12 21:53:16 darran Exp $
d6 1
a6 1
SUBDIR=		dtrace sdt fbt profile
@


1.3.4.1
log
@file Makefile was added on branch uebayasi-xip on 2010-04-30 14:44:17 +0000
@
text
@d1 8
@


1.3.4.2
log
@Sync with HEAD.
@
text
@a0 8
#	$NetBSD$
# $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

.include <bsd.subdir.mk>
@


1.2
log
@DTrace: Add an SDT (Statically Defined Tracing) provider framework, and
implement most of the proc provider.  Adds proc:::create, exec,
exec_success, exec_faillure, signal_send, signal_discard, signal_handle,
lwp_create, lwp_start, lwp_exit.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2010/02/21 11:16:19 darran Exp $
d6 1
a6 1
SUBDIR=		dtrace sdt
@


1.2.2.1
log
@file Makefile was added on branch yamt-nfs-mp on 2010-03-11 15:04:24 +0000
@
text
@d1 8
@


1.2.2.2
log
@sync with head
@
text
@a0 8
#	$NetBSD$
# $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

.include <bsd.subdir.mk>
@


1.2.2.3
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2.2.2 2010/03/11 15:04:24 yamt Exp $
d6 1
a6 1
SUBDIR=		dtrace sdt fbt
@


1.1
log
@DTrace: add the dtrace module.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.71.4.1 2008/12/13 21:27:34 bouyer Exp $
d6 1
a6 1
SUBDIR=		dtrace
@

