Home | History | Annotate | Download | only in libdtrace
History log of /src/external/cddl/osnet/lib/libdtrace/Makefile
RevisionDateAuthorComments
 1.34  18-Sep-2025  mrg introduce a couple of new turn-off-gcc-warning variables and use them.

GCC 14 has a new annoying calloc() checker that we turn off in a bunch
of places, and there are a few more dangling-pointer issuse that come up,
but seem bogus.
 1.33  23-Nov-2024  riastradh libdtrace: Handle some x86-specific symbols in the .expsym file.

PR lib/58838: shared libraries in base should all have expsym lists
 1.32  03-Jun-2023  lukem branches: 1.32.2;
adapt to ${CC_WNO_MAYBE_UNINITIALIZED}

Use ${CC_WNO_MAYBE_UNINITIALIZED} instead of
the older style more complex expressions.

Remove workarounds if they were for a specific
version of gcc < 10.
 1.31  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.30  13-Apr-2021  mrg XXX: ignore warning about overlapping buffers for sprintf().
 1.29  29-Mar-2021  simonb Compile MIPS specific code.
 1.28  17-Mar-2020  fox external/cddl/osnet: Do not suppress the warning output for libdtrace.

Changed -Wno-maybe-uninitialized to -Wno-error=maybe-uninitialized to allow
warnings to be printed out during build.

Suggested by: christos@
 1.27  17-Mar-2020  fox external/cddl/osnet: Supress -Werror=maybe-uninitialized error in libdtrace.

It looks like this is a false positive, since the section of code triggering the error

external/cddl/osnet/dist/lib/libdtrace/common/dt_proc.c:400:42:

is only accessed after "err" is initialized.

Error was reported when build.sh was run with MKLIBCSANITIZER=yes flag.

Reviewed by: kamil@
 1.26  03-Dec-2019  jmcneill dtrace: add support for aarch64
 1.25  13-Oct-2019  kre This previously had -Wno-format-truncation so I am presuming it should
have been converted to GCC_NO_FORMAT_TRUNCATION rather than
GCC_NO_STRINGOP_TRUNCATION which is what happened. This might unbreak
the build (olr at least get it further).
 1.24  13-Oct-2019  mrg introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."
 1.23  10-Oct-2019  kre Only exclude gcc-8 warnings when the gcc we're using is gcc>=8
 1.22  09-Oct-2019  christos no error for string truncation
 1.21  11-Feb-2019  tnn branches: 1.21.2;
-Wno-format-truncation is only needed when using GCC
 1.20  06-Feb-2019  christos uses the idiom len = snprintf(&tmp, 1, ...) to compute length.
needs -Wno-format-truncation
 1.19  07-Jun-2018  kamil branches: 1.19.2;
Replace HAVE_GCC with ACTIVE_CC == gcc checks

Kernel modules build with GCC and Clang/LLVM.

Requested by <joerg>
 1.18  06-Jun-2018  kamil Make cddl/osnet/lib/libdtrace buildable with MKLLVM=yes

Clang/LLVM does not recognize:
- -Wno-maybe-uninitialized
- -Wno-unused-but-set-variable

MKGCC=yes still builds the distribution.

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

Sponsored by <The NetBSD Foundation>
 1.17  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.16  19-Dec-2016  christos branches: 1.16.12;
arrange for .in files to be rebuilt.
 1.15  04-Aug-2016  christos include bsd.init.mnk for consistency and set NOLINT since this overrides
MKLINT which can be re-set from /etc/mk.conf.
 1.14  05-Oct-2015  christos branches: 1.14.2;
Arrange to install the dtrace files (some are broken, sets will need to be
fixed)
 1.13  30-Sep-2015  christos do the stack protector stuff like the other files.
 1.12  29-Sep-2015  christos - make the generated file rules depend on the source files
- hack for clang on Darwin
 1.11  24-Sep-2015  christos Add build stuff.
 1.10  07-Feb-2015  christos check and fix printf formats, negative array indices, uninitialized variables,
shadowed variables.
 1.9  16-Mar-2014  ozaki-r Use MACHINE_CPU instead of MACHINE_ARCH with pattern matching

Include bsd.own.mk to use MACHINE_CPU.

Advised by matt@
 1.8  16-Mar-2014  ozaki-r Look up arm directory on MACHINE_ARCH=*arm*
 1.7  21-Jun-2013  christos Make dtrace/zfs compile on arm based on the diff from:
http://people.freebsd.org/~gonzo/arm/dtrace-arm.diff
Completely untested, kernel support not added.
 1.6  13-Feb-2012  wiz branches: 1.6.6;
Use the correct MACHINE_ARCH for amd64.
Remove temporary hack while here.
From Henning Petersen in PR 46001.
 1.5  03-Apr-2010  christos branches: 1.5.6;
- use CPPFLAGS instead of CFLAGS
- use relative .PATH
 1.4  24-Feb-2010  tron Disable stack protection warnings for more sources which use dynamically
sized stack buffers.
 1.3  24-Feb-2010  tron Disable stack protection warnings for sources which use dynamically
sized stack buffers.
 1.2  21-Feb-2010  darran Apply NetBSD changes to DTrace.

Ok with core@.
 1.1  21-Feb-2010  darran Add the FreeBSD 8-RC1 changes for DTrace.

Ok with core@.
 1.5.6.2  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.5.6.1  17-Apr-2012  yamt sync with head
 1.6.6.2  19-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.6.6.1  23-Jun-2013  tls resync from head
 1.14.2.2  07-Jan-2017  pgoyette Sync with HEAD. (Note that most of these changes are simply $NetBSD$
tag issues.)
 1.14.2.1  06-Aug-2016  pgoyette Sync with HEAD
 1.16.12.1  25-Jun-2018  pgoyette Sync with HEAD
 1.19.2.3  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.19.2.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.19.2.1  10-Jun-2019  christos Sync with HEAD
 1.21.2.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.32.2.1  02-Aug-2025  perseant Sync with HEAD

RSS XML Feed