Home | History | Annotate | only in /src/sys/modules/dtrace
History log of /src/sys/modules/dtrace
RevisionDateAuthorComments
 1.10 25-Apr-2021  christos Handle mipsn64
 1.9 10-Apr-2021  simonb branches: 1.9.2;
Build the netbsd32_syscall module if mips64.
Don't build the linux_syscall module if mips*
 1.8 04-Dec-2019  martin branches: 1.8.10;
Add syscall_linux back for other arm architectures (accidently removed
in previous)
 1.7 03-Dec-2019  jmcneill dtrace: add support for aarch64
 1.6 08-Mar-2015  christos branches: 1.6.18; 1.6.22;
dtrace syscall for linux32
 1.5 07-Mar-2015  christos Add syscall provider build glue, unhooked.
 1.4 02-Dec-2012  chs branches: 1.4.14;
adapt the cyclic module and profile dtrace provider to netbsd.
for now, just hook the cyclic callback into hardclock().
 1.3 12-Mar-2010  darran branches: 1.3.4; 1.3.12; 1.3.22;
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.
 1.2 01-Mar-2010  darran branches: 1.2.2;
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.
 1.1 21-Feb-2010  darran DTrace: add the dtrace module.
 1.2.2.3 11-Aug-2010  yamt sync with head.
 1.2.2.2 11-Mar-2010  yamt sync with head
 1.2.2.1 01-Mar-2010  yamt file Makefile was added on branch yamt-nfs-mp on 2010-03-11 15:04:24 +0000
 1.3.22.2 03-Dec-2017  jdolecek update from HEAD
 1.3.22.1 25-Feb-2013  tls resync with head
 1.3.12.1 16-Jan-2013  yamt sync with (a bit old) head
 1.3.4.2 30-Apr-2010  uebayasi Sync with HEAD.
 1.3.4.1 12-Mar-2010  uebayasi file Makefile was added on branch uebayasi-xip on 2010-04-30 14:44:17 +0000
 1.4.14.1 06-Apr-2015  skrll Sync with HEAD
 1.6.22.1 09-Dec-2019  martin 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
 1.6.18.1 08-Apr-2020  martin Merge changes from current as of 20200406
 1.8.10.1 17-Apr-2021  thorpej Sync with HEAD.
 1.9.2.1 13-May-2021  thorpej Sync with HEAD.
 1.13 03-Jun-2023  lukem bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
 1.12 13-Oct-2019  christos Elide function pointer cast errors
 1.11 17-Feb-2019  rin Bump default value of WARNS for modules from 3 to 5, and
explicitly set WARNS for modules that fail with WARNS=5.

Also, turn on -Wno-missing-noreturn for clang for some files.

At the moment, among ~ 360 modules,
- 2 (lua and zfs) need WARNS=0
- 1 (solaris) needs WARNS=1
- 136 need WARNS=3 (mostly due to sign-compare)
- 4 need WARNS=4
- others can be compiled with WARNS=5

Discussed on tech-kern.
 1.10 29-Jun-2018  kamil Rework the changes to DTRACE/ZFS files that were fixing Clang/LLVM build

Rever changes to upstream files and replace them with additional -Wno-
compiler argument flags.

Tested with base LLVM.

Requested by <chuq>
 1.9 07-Jun-2018  kamil branches: 1.9.2;
Replace HAVE_GCC with ACTIVE_CC == gcc checks

Kernel modules build with GCC and Clang/LLVM.

Requested by <joerg>
 1.8 06-Jun-2018  kamil Restrict -Wno-unused-but-set-variable in sys/modules/dtrace/dtrace to GCC

Clang/LLVM does not recognize it.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>
 1.7 06-Jun-2018  kamil Swap conditions HAVE_LLVM -> HAVE_GCC
 1.6 06-Jun-2018  kamil Restrict -Wno-discarded-qualifiers in sys/modules/dtrace/* to GCC

Clang/LLVM does not recognize it.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>
 1.5 28-May-2018  chs merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().
 1.4 05-Mar-2014  ozaki-r branches: 1.4.28;
Tidy up Makefile of cyclic and dtrace modules to support ARM
 1.3 14-Dec-2010  haad branches: 1.3.8; 1.3.18; 1.3.22;
Disable errors reported by unknown pragmas in dtrace module.
 1.2 13-Mar-2010  christos branches: 1.2.2; 1.2.4;
now that I've fixed Makefile.inc, include it.
 1.1 21-Feb-2010  darran branches: 1.1.2;
DTrace: add the dtrace module.
 1.1.2.3 11-Aug-2010  yamt sync with head.
 1.1.2.2 11-Mar-2010  yamt sync with head
 1.1.2.1 21-Feb-2010  yamt file Makefile was added on branch yamt-nfs-mp on 2010-03-11 15:04:24 +0000
 1.2.4.2 30-Apr-2010  uebayasi Sync with HEAD.
 1.2.4.1 13-Mar-2010  uebayasi file Makefile was added on branch uebayasi-xip on 2010-04-30 14:44:17 +0000
 1.2.2.1 05-Mar-2011  rmind sync with head
 1.3.22.1 18-May-2014  rmind sync with head
 1.3.18.1 20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.3.8.1 22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.4.28.2 28-Jul-2018  pgoyette Sync with HEAD
 1.4.28.1 25-Jun-2018  pgoyette Sync with HEAD
 1.9.2.2 13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.9.2.1 10-Jun-2019  christos Sync with HEAD
 1.8 17-Feb-2019  rin Bump default value of WARNS for modules from 3 to 5, and
explicitly set WARNS for modules that fail with WARNS=5.

Also, turn on -Wno-missing-noreturn for clang for some files.

At the moment, among ~ 360 modules,
- 2 (lua and zfs) need WARNS=0
- 1 (solaris) needs WARNS=1
- 136 need WARNS=3 (mostly due to sign-compare)
- 4 need WARNS=4
- others can be compiled with WARNS=5

Discussed on tech-kern.
 1.7 28-May-2018  chs branches: 1.7.2;
merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().
 1.6 16-Sep-2016  pgoyette branches: 1.6.14;
Move kern_ctf.c into the dtrace_fbt module (the only place it is used)
rather than including in kernels with KDTRACE_HOOKS defined. Update
the dtrace_fbt module to depend on the zlib module.

Bump kernel version to avoid module mismatch.

Welcome to 7.99.38 !
 1.5 18-Sep-2014  wiz branches: 1.5.2; 1.5.4;
Per the wiki roadmap, rename the three dtrace modules to have
a "dtrace_" prefix.
amd64 build tested, other set list changes done the same way.
 1.4 02-Dec-2012  chs remove unneeded include dirs.
 1.3 14-Dec-2010  haad branches: 1.3.8; 1.3.18;
Disable errors reported by unknown pragmas in dtrace module.
 1.2 13-Mar-2010  christos branches: 1.2.2; 1.2.4; 1.2.6;
Include ../../Makefile.inc now that it works.
 1.1 12-Mar-2010  darran 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.
 1.2.6.2 11-Aug-2010  yamt sync with head.
 1.2.6.1 13-Mar-2010  yamt file Makefile was added on branch yamt-nfs-mp on 2010-08-11 22:54:50 +0000
 1.2.4.2 30-Apr-2010  uebayasi Sync with HEAD.
 1.2.4.1 13-Mar-2010  uebayasi file Makefile was added on branch uebayasi-xip on 2010-04-30 14:44:17 +0000
 1.2.2.1 05-Mar-2011  rmind sync with head
 1.3.18.2 03-Dec-2017  jdolecek update from HEAD
 1.3.18.1 25-Feb-2013  tls resync with head
 1.3.8.1 16-Jan-2013  yamt sync with (a bit old) head
 1.5.4.1 04-Nov-2016  pgoyette Sync with HEAD
 1.5.2.1 05-Oct-2016  skrll Sync with HEAD
 1.6.14.1 25-Jun-2018  pgoyette Sync with HEAD
 1.7.2.1 10-Jun-2019  christos Sync with HEAD
 1.7 17-Feb-2019  rin Bump default value of WARNS for modules from 3 to 5, and
explicitly set WARNS for modules that fail with WARNS=5.

Also, turn on -Wno-missing-noreturn for clang for some files.

At the moment, among ~ 360 modules,
- 2 (lua and zfs) need WARNS=0
- 1 (solaris) needs WARNS=1
- 136 need WARNS=3 (mostly due to sign-compare)
- 4 need WARNS=4
- others can be compiled with WARNS=5

Discussed on tech-kern.
 1.6 29-Jun-2018  kamil Rework the changes to DTRACE/ZFS files that were fixing Clang/LLVM build

Rever changes to upstream files and replace them with additional -Wno-
compiler argument flags.

Tested with base LLVM.

Requested by <chuq>
 1.5 07-Jun-2018  kamil branches: 1.5.2;
Replace HAVE_GCC with ACTIVE_CC == gcc checks

Kernel modules build with GCC and Clang/LLVM.

Requested by <joerg>
 1.4 06-Jun-2018  kamil Swap conditions HAVE_LLVM -> HAVE_GCC
 1.3 06-Jun-2018  kamil Restrict -Wno-discarded-qualifiers in sys/modules/dtrace/* to GCC

Clang/LLVM does not recognize it.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>
 1.2 28-May-2018  chs merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().
 1.1 08-Mar-2015  christos branches: 1.1.2; 1.1.18; 1.1.20;
dtrace syscall for linux32
 1.1.20.2 28-Jul-2018  pgoyette Sync with HEAD
 1.1.20.1 25-Jun-2018  pgoyette Sync with HEAD
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 08-Mar-2015  jdolecek file Makefile was added on branch tls-maxphys on 2017-12-03 11:38:52 +0000
 1.1.2.2 06-Apr-2015  skrll Sync with HEAD
 1.1.2.1 08-Mar-2015  skrll file Makefile was added on branch nick-nhusb on 2015-04-06 15:18:21 +0000
 1.5.2.1 10-Jun-2019  christos Sync with HEAD
 1.1 08-Mar-2015  christos branches: 1.1.2; 1.1.18;
dtrace syscall for linux32
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 08-Mar-2015  jdolecek file emultrace.h was added on branch tls-maxphys on 2017-12-03 11:38:52 +0000
 1.1.2.2 06-Apr-2015  skrll Sync with HEAD
 1.1.2.1 08-Mar-2015  skrll file emultrace.h was added on branch nick-nhusb on 2015-04-06 15:18:21 +0000
 1.8 17-Feb-2019  rin Bump default value of WARNS for modules from 3 to 5, and
explicitly set WARNS for modules that fail with WARNS=5.

Also, turn on -Wno-missing-noreturn for clang for some files.

At the moment, among ~ 360 modules,
- 2 (lua and zfs) need WARNS=0
- 1 (solaris) needs WARNS=1
- 136 need WARNS=3 (mostly due to sign-compare)
- 4 need WARNS=4
- others can be compiled with WARNS=5

Discussed on tech-kern.
 1.7 29-Jun-2018  kamil Rework the changes to DTRACE/ZFS files that were fixing Clang/LLVM build

Rever changes to upstream files and replace them with additional -Wno-
compiler argument flags.

Tested with base LLVM.

Requested by <chuq>
 1.6 07-Jun-2018  kamil branches: 1.6.2;
Replace HAVE_GCC with ACTIVE_CC == gcc checks

Kernel modules build with GCC and Clang/LLVM.

Requested by <joerg>
 1.5 06-Jun-2018  kamil Really disable unsupported $CC flag for LLVM

The build of kernel modules works now:

./build.sh -V MKLLVM=yes -V MKGCC=no -V HAVE_LLVM=yes modules

Sponsored by <The NetBSD Foundation>
 1.4 06-Jun-2018  kamil Swap conditions HAVE_LLVM -> HAVE_GCC
 1.3 06-Jun-2018  kamil Restrict -Wno-discarded-qualifiers in sys/modules/dtrace/* to GCC

Clang/LLVM does not recognize it.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>
 1.2 28-May-2018  chs merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().
 1.1 07-Mar-2015  christos branches: 1.1.2; 1.1.18; 1.1.20;
Add syscall provider build glue, unhooked.
 1.1.20.2 28-Jul-2018  pgoyette Sync with HEAD
 1.1.20.1 25-Jun-2018  pgoyette Sync with HEAD
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 07-Mar-2015  jdolecek file Makefile was added on branch tls-maxphys on 2017-12-03 11:38:52 +0000
 1.1.2.2 06-Apr-2015  skrll Sync with HEAD
 1.1.2.1 07-Mar-2015  skrll file Makefile was added on branch nick-nhusb on 2015-04-06 15:18:21 +0000
 1.6.2.1 10-Jun-2019  christos Sync with HEAD
 1.1 07-Mar-2015  christos branches: 1.1.2; 1.1.18;
Add syscall provider build glue, unhooked.
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 07-Mar-2015  jdolecek file emultrace.h was added on branch tls-maxphys on 2017-12-03 11:38:52 +0000
 1.1.2.2 06-Apr-2015  skrll Sync with HEAD
 1.1.2.1 07-Mar-2015  skrll file emultrace.h was added on branch nick-nhusb on 2015-04-06 15:18:21 +0000
 1.9 25-Jan-2016  christos branches: 1.9.16;
earm (iyonix and zaurus) don't have cpu_counter.h
 1.8 25-Jan-2016  christos spell empty.
 1.7 25-Jan-2016  christos Handle also the earm{ev,hf}...
 1.6 25-Jan-2016  martin Map "earm" to armv5
 1.5 24-Jan-2016  christos Remove hf and eb. Rin Okuyama
 1.4 24-Jan-2016  christos Grr. arm is different.
 1.3 24-Jan-2016  christos Instead of hard-coding who has cpu counters why don't you look for them?
 1.2 10-Sep-2015  riz Evil hack to ensure dtrace lockstat module builds on arm.
 1.1 08-Mar-2015  christos branches: 1.1.2;
non working glue.
 1.1.2.4 19-Mar-2016  skrll Sync with HEAD
 1.1.2.3 22-Sep-2015  skrll Sync with HEAD
 1.1.2.2 06-Apr-2015  skrll Sync with HEAD
 1.1.2.1 08-Mar-2015  skrll file Makefile was added on branch nick-nhusb on 2015-04-06 15:18:21 +0000
 1.9.16.2 03-Dec-2017  jdolecek update from HEAD
 1.9.16.1 25-Jan-2016  jdolecek file Makefile was added on branch tls-maxphys on 2017-12-03 11:38:52 +0000
 1.8 13-Apr-2021  mrg apply -Wno-error=array-bounds for GCC 10.

these trigger "pointer to end of array" issues, and i'm not
entirely sure what is happening in the code generated for the
two "INDIR" system calls from syscalls.master.
 1.7 17-Feb-2019  rin branches: 1.7.14;
Bump default value of WARNS for modules from 3 to 5, and
explicitly set WARNS for modules that fail with WARNS=5.

Also, turn on -Wno-missing-noreturn for clang for some files.

At the moment, among ~ 360 modules,
- 2 (lua and zfs) need WARNS=0
- 1 (solaris) needs WARNS=1
- 136 need WARNS=3 (mostly due to sign-compare)
- 4 need WARNS=4
- others can be compiled with WARNS=5

Discussed on tech-kern.
 1.6 29-Jun-2018  kamil Rework the changes to DTRACE/ZFS files that were fixing Clang/LLVM build

Rever changes to upstream files and replace them with additional -Wno-
compiler argument flags.

Tested with base LLVM.

Requested by <chuq>
 1.5 07-Jun-2018  kamil branches: 1.5.2;
Replace HAVE_GCC with ACTIVE_CC == gcc checks

Kernel modules build with GCC and Clang/LLVM.

Requested by <joerg>
 1.4 06-Jun-2018  kamil Swap conditions HAVE_LLVM -> HAVE_GCC
 1.3 06-Jun-2018  kamil Restrict -Wno-discarded-qualifiers in sys/modules/dtrace/* to GCC

Clang/LLVM does not recognize it.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>
 1.2 28-May-2018  chs merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().
 1.1 07-Mar-2015  christos branches: 1.1.2; 1.1.18; 1.1.20;
Add syscall provider build glue, unhooked.
 1.1.20.2 28-Jul-2018  pgoyette Sync with HEAD
 1.1.20.1 25-Jun-2018  pgoyette Sync with HEAD
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 07-Mar-2015  jdolecek file Makefile was added on branch tls-maxphys on 2017-12-03 11:38:52 +0000
 1.1.2.2 06-Apr-2015  skrll Sync with HEAD
 1.1.2.1 07-Mar-2015  skrll file Makefile was added on branch nick-nhusb on 2015-04-06 15:18:21 +0000
 1.5.2.1 10-Jun-2019  christos Sync with HEAD
 1.7.14.1 17-Apr-2021  thorpej Sync with HEAD.
 1.1 07-Mar-2015  christos branches: 1.1.2; 1.1.18;
Add syscall provider build glue, unhooked.
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 07-Mar-2015  jdolecek file emultrace.h was added on branch tls-maxphys on 2017-12-03 11:38:52 +0000
 1.1.2.2 06-Apr-2015  skrll Sync with HEAD
 1.1.2.1 07-Mar-2015  skrll file emultrace.h was added on branch nick-nhusb on 2015-04-06 15:18:21 +0000
 1.8 17-Feb-2019  rin Bump default value of WARNS for modules from 3 to 5, and
explicitly set WARNS for modules that fail with WARNS=5.

Also, turn on -Wno-missing-noreturn for clang for some files.

At the moment, among ~ 360 modules,
- 2 (lua and zfs) need WARNS=0
- 1 (solaris) needs WARNS=1
- 136 need WARNS=3 (mostly due to sign-compare)
- 4 need WARNS=4
- others can be compiled with WARNS=5

Discussed on tech-kern.
 1.7 29-Jun-2018  kamil Rework the changes to DTRACE/ZFS files that were fixing Clang/LLVM build

Rever changes to upstream files and replace them with additional -Wno-
compiler argument flags.

Tested with base LLVM.

Requested by <chuq>
 1.6 07-Jun-2018  kamil branches: 1.6.2;
Replace HAVE_GCC with ACTIVE_CC == gcc checks

Kernel modules build with GCC and Clang/LLVM.

Requested by <joerg>
 1.5 06-Jun-2018  kamil Swap conditions HAVE_LLVM -> HAVE_GCC
 1.4 06-Jun-2018  kamil Restrict -Wno-discarded-qualifiers in sys/modules/dtrace/* to GCC

Clang/LLVM does not recognize it.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>
 1.3 28-May-2018  chs merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().
 1.2 18-Sep-2014  wiz branches: 1.2.18;
Per the wiki roadmap, rename the three dtrace modules to have
a "dtrace_" prefix.
amd64 build tested, other set list changes done the same way.
 1.1 02-Dec-2012  chs branches: 1.1.2; 1.1.6;
adapt the cyclic module and profile dtrace provider to netbsd.
for now, just hook the cyclic callback into hardclock().
 1.1.6.3 03-Dec-2017  jdolecek update from HEAD
 1.1.6.2 25-Feb-2013  tls resync with head
 1.1.6.1 02-Dec-2012  tls file Makefile was added on branch tls-maxphys on 2013-02-25 00:30:00 +0000
 1.1.2.2 16-Jan-2013  yamt sync with (a bit old) head
 1.1.2.1 02-Dec-2012  yamt file Makefile was added on branch yamt-pagecache on 2013-01-16 05:33:47 +0000
 1.2.18.2 28-Jul-2018  pgoyette Sync with HEAD
 1.2.18.1 25-Jun-2018  pgoyette Sync with HEAD
 1.6.2.1 10-Jun-2019  christos Sync with HEAD
 1.7 07-Aug-2022  riastradh dtrace_sdt: Register sdt providers and probes in loaded modules too.
 1.6 18-Sep-2014  wiz Per the wiki roadmap, rename the three dtrace modules to have
a "dtrace_" prefix.
amd64 build tested, other set list changes done the same way.
 1.5 02-Dec-2012  chs remove unneeded include dirs.
 1.4 14-Dec-2010  haad branches: 1.4.8; 1.4.18;
Disable errors reported by unknown pragmas in dtrace module.
 1.3 13-Mar-2010  christos branches: 1.3.2; 1.3.4;
Include ../../Makefile.inc now that it works.
 1.2 10-Mar-2010  darran branches: 1.2.2;
DTrace: fix a build problem for the SDT provider.
 1.1 01-Mar-2010  darran 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.
 1.2.2.3 11-Aug-2010  yamt sync with head.
 1.2.2.2 11-Mar-2010  yamt sync with head
 1.2.2.1 10-Mar-2010  yamt file Makefile was added on branch yamt-nfs-mp on 2010-03-11 15:04:25 +0000
 1.3.4.2 30-Apr-2010  uebayasi Sync with HEAD.
 1.3.4.1 13-Mar-2010  uebayasi file Makefile was added on branch uebayasi-xip on 2010-04-30 14:44:17 +0000
 1.3.2.1 05-Mar-2011  rmind sync with head
 1.4.18.2 03-Dec-2017  jdolecek update from HEAD
 1.4.18.1 25-Feb-2013  tls resync with head
 1.4.8.1 16-Jan-2013  yamt sync with (a bit old) head
 1.8 13-Apr-2021  mrg apply -Wno-error=array-bounds for GCC 10.

these trigger "pointer to end of array" issues, and i'm not
entirely sure what is happening in the code generated for the
two "INDIR" system calls from syscalls.master.
 1.7 17-Feb-2019  rin branches: 1.7.14;
Bump default value of WARNS for modules from 3 to 5, and
explicitly set WARNS for modules that fail with WARNS=5.

Also, turn on -Wno-missing-noreturn for clang for some files.

At the moment, among ~ 360 modules,
- 2 (lua and zfs) need WARNS=0
- 1 (solaris) needs WARNS=1
- 136 need WARNS=3 (mostly due to sign-compare)
- 4 need WARNS=4
- others can be compiled with WARNS=5

Discussed on tech-kern.
 1.6 29-Jun-2018  kamil Rework the changes to DTRACE/ZFS files that were fixing Clang/LLVM build

Rever changes to upstream files and replace them with additional -Wno-
compiler argument flags.

Tested with base LLVM.

Requested by <chuq>
 1.5 07-Jun-2018  kamil branches: 1.5.2;
Replace HAVE_GCC with ACTIVE_CC == gcc checks

Kernel modules build with GCC and Clang/LLVM.

Requested by <joerg>
 1.4 06-Jun-2018  kamil Swap conditions HAVE_LLVM -> HAVE_GCC
 1.3 06-Jun-2018  kamil Restrict -Wno-discarded-qualifiers in sys/modules/dtrace/* to GCC

Clang/LLVM does not recognize it.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>
 1.2 28-May-2018  chs merge a new version of the CDDL dtrace and ZFS code.
this changes the upstream vendor from OpenSolaris to FreeBSD,
and this version is based on FreeBSD svn r315983.

in addition to the 10 years of improvements from upstream,
this version also has these NetBSD-specific enhancements:
- dtrace FBT probes can now be placed in kernel modules.
- ZFS now supports mmap().
 1.1 07-Mar-2015  christos branches: 1.1.2; 1.1.18; 1.1.20;
Add syscall provider build glue, unhooked.
 1.1.20.2 28-Jul-2018  pgoyette Sync with HEAD
 1.1.20.1 25-Jun-2018  pgoyette Sync with HEAD
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 07-Mar-2015  jdolecek file Makefile was added on branch tls-maxphys on 2017-12-03 11:38:53 +0000
 1.1.2.2 06-Apr-2015  skrll Sync with HEAD
 1.1.2.1 07-Mar-2015  skrll file Makefile was added on branch nick-nhusb on 2015-04-06 15:18:21 +0000
 1.5.2.1 10-Jun-2019  christos Sync with HEAD
 1.7.14.1 17-Apr-2021  thorpej Sync with HEAD.
 1.1 07-Mar-2015  christos branches: 1.1.2; 1.1.18;
Add syscall provider build glue, unhooked.
 1.1.18.2 03-Dec-2017  jdolecek update from HEAD
 1.1.18.1 07-Mar-2015  jdolecek file emultrace.h was added on branch tls-maxphys on 2017-12-03 11:38:53 +0000
 1.1.2.2 06-Apr-2015  skrll Sync with HEAD
 1.1.2.1 07-Mar-2015  skrll file emultrace.h was added on branch nick-nhusb on 2015-04-06 15:18:21 +0000

RSS XML Feed