svn commit: r322517 - in projects/runtime-coverage: . bin/cat bin/chmod bin/date bin/dd bin/echo bin/expr bin/ln bin/ls bin/mv bin/pax bin/pkill bin/pwait bin/sh bin/sh/tests/invocation bin/sleep b...
Ngie Cooper
ngie at FreeBSD.org
Mon Aug 14 19:28:58 UTC 2017
Author: ngie
Date: Mon Aug 14 19:28:49 2017
New Revision: 322517
URL: https://svnweb.freebsd.org/changeset/base/322517
Log:
MFhead at r322515
Added:
projects/runtime-coverage/bin/sh/tests/invocation/sh-c-missing1.0
- copied unchanged from r322516, head/bin/sh/tests/invocation/sh-c-missing1.0
projects/runtime-coverage/contrib/gcc/config/riscv/
- copied from r322516, head/contrib/gcc/config/riscv/
projects/runtime-coverage/sys/dev/iicbus/ds13rtc.c
- copied unchanged from r322516, head/sys/dev/iicbus/ds13rtc.c
projects/runtime-coverage/sys/modules/i2c/ds13rtc/
- copied from r322516, head/sys/modules/i2c/ds13rtc/
projects/runtime-coverage/sys/modules/i2c/s35390a/
- copied from r322516, head/sys/modules/i2c/s35390a/
projects/runtime-coverage/tests/Makefile.inc0
- copied unchanged from r322516, head/tests/Makefile.inc0
projects/runtime-coverage/tests/etc/Makefile.inc
- copied unchanged from r322516, head/tests/etc/Makefile.inc
projects/runtime-coverage/tests/sys/geom/class/Makefile.inc
- copied unchanged from r322516, head/tests/sys/geom/class/Makefile.inc
projects/runtime-coverage/tests/sys/pjdfstest/Makefile.inc
- copied unchanged from r322516, head/tests/sys/pjdfstest/Makefile.inc
projects/runtime-coverage/tests/sys/pjdfstest/tests/Makefile.inc
- copied unchanged from r322516, head/tests/sys/pjdfstest/tests/Makefile.inc
projects/runtime-coverage/tools/build/options/WITHOUT_MAKE_CHECK_USE_SANDBOX
- copied unchanged from r322516, head/tools/build/options/WITHOUT_MAKE_CHECK_USE_SANDBOX
Deleted:
projects/runtime-coverage/contrib/gcc/config/riscv64/
projects/runtime-coverage/sys/dev/iicbus/ds133x.c
projects/runtime-coverage/sys/dev/iicbus/ds1374.c
Modified:
projects/runtime-coverage/UPDATING
projects/runtime-coverage/bin/cat/Makefile
projects/runtime-coverage/bin/chmod/Makefile
projects/runtime-coverage/bin/date/Makefile
projects/runtime-coverage/bin/dd/Makefile
projects/runtime-coverage/bin/echo/Makefile
projects/runtime-coverage/bin/expr/Makefile
projects/runtime-coverage/bin/ln/Makefile
projects/runtime-coverage/bin/ls/Makefile
projects/runtime-coverage/bin/mv/Makefile
projects/runtime-coverage/bin/pax/Makefile
projects/runtime-coverage/bin/pkill/Makefile
projects/runtime-coverage/bin/pwait/Makefile
projects/runtime-coverage/bin/sh/Makefile
projects/runtime-coverage/bin/sh/tests/invocation/Makefile
projects/runtime-coverage/bin/sleep/Makefile
projects/runtime-coverage/bin/test/Makefile
projects/runtime-coverage/contrib/llvm/tools/lld/ELF/Driver.cpp
projects/runtime-coverage/lib/atf/libatf-c++/Makefile
projects/runtime-coverage/lib/atf/libatf-c/Makefile
projects/runtime-coverage/lib/libarchive/Makefile
projects/runtime-coverage/lib/libc/Makefile
projects/runtime-coverage/lib/libc/sys/getsockopt.2
projects/runtime-coverage/lib/libc/x86/sys/__vdso_gettc.c
projects/runtime-coverage/lib/libcam/Makefile
projects/runtime-coverage/lib/libcasper/services/cap_dns/Makefile
projects/runtime-coverage/lib/libcasper/services/cap_grp/Makefile
projects/runtime-coverage/lib/libcasper/services/cap_pwd/Makefile
projects/runtime-coverage/lib/libcasper/services/cap_sysctl/Makefile
projects/runtime-coverage/lib/libcrypt/Makefile
projects/runtime-coverage/lib/libkvm/Makefile
projects/runtime-coverage/lib/libmp/Makefile
projects/runtime-coverage/lib/libnv/Makefile
projects/runtime-coverage/lib/libpathconv/Makefile
projects/runtime-coverage/lib/libproc/Makefile
projects/runtime-coverage/lib/librt/Makefile
projects/runtime-coverage/lib/libsbuf/Makefile
projects/runtime-coverage/lib/libthr/Makefile
projects/runtime-coverage/lib/libutil/Makefile
projects/runtime-coverage/lib/libxo/Makefile
projects/runtime-coverage/lib/msun/Makefile
projects/runtime-coverage/libexec/atf/atf-check/Makefile
projects/runtime-coverage/libexec/atf/atf-sh/Makefile
projects/runtime-coverage/libexec/rtld-elf/Makefile
projects/runtime-coverage/sbin/devd/Makefile
projects/runtime-coverage/sbin/dhclient/Makefile
projects/runtime-coverage/sbin/growfs/Makefile
projects/runtime-coverage/sbin/ifconfig/Makefile
projects/runtime-coverage/sbin/mdconfig/Makefile
projects/runtime-coverage/sbin/pfctl/Makefile
projects/runtime-coverage/share/examples/Makefile
projects/runtime-coverage/share/man/man5/src.conf.5
projects/runtime-coverage/share/man/man9/Makefile
projects/runtime-coverage/share/man/man9/config_intrhook.9
projects/runtime-coverage/share/mk/bsd.README
projects/runtime-coverage/share/mk/bsd.cpu.mk
projects/runtime-coverage/share/mk/bsd.lib.mk
projects/runtime-coverage/share/mk/bsd.opts.mk
projects/runtime-coverage/share/mk/bsd.prog.mk
projects/runtime-coverage/share/mk/src.opts.mk
projects/runtime-coverage/share/mk/suite.test.mk
projects/runtime-coverage/share/zoneinfo/Makefile
projects/runtime-coverage/sys/amd64/amd64/trap.c
projects/runtime-coverage/sys/amd64/include/cpufunc.h
projects/runtime-coverage/sys/arm/conf/GENERIC
projects/runtime-coverage/sys/arm64/arm64/gic_v3.c
projects/runtime-coverage/sys/arm64/arm64/gic_v3_fdt.c
projects/runtime-coverage/sys/arm64/arm64/gicv3_its.c
projects/runtime-coverage/sys/conf/NOTES
projects/runtime-coverage/sys/conf/files
projects/runtime-coverage/sys/dev/hyperv/include/hyperv.h
projects/runtime-coverage/sys/dev/hyperv/netvsc/hn_nvs.c
projects/runtime-coverage/sys/dev/hyperv/netvsc/hn_nvs.h
projects/runtime-coverage/sys/dev/hyperv/netvsc/hn_rndis.c
projects/runtime-coverage/sys/dev/hyperv/netvsc/hn_rndis.h
projects/runtime-coverage/sys/dev/hyperv/netvsc/if_hn.c
projects/runtime-coverage/sys/dev/hyperv/netvsc/if_hnreg.h
projects/runtime-coverage/sys/dev/hyperv/netvsc/if_hnvar.h
projects/runtime-coverage/sys/dev/hyperv/pcib/vmbus_pcib.c
projects/runtime-coverage/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
projects/runtime-coverage/sys/dev/hyperv/storvsc/hv_vstorage.h
projects/runtime-coverage/sys/dev/hyperv/utilities/hv_kvp.c
projects/runtime-coverage/sys/dev/hyperv/utilities/vmbus_timesync.c
projects/runtime-coverage/sys/dev/hyperv/vmbus/amd64/hyperv_machdep.c
projects/runtime-coverage/sys/dev/hyperv/vmbus/hyperv.c
projects/runtime-coverage/sys/dev/hyperv/vmbus/vmbus.c
projects/runtime-coverage/sys/dev/hyperv/vmbus/vmbus_et.c
projects/runtime-coverage/sys/dev/iicbus/nxprtc.c
projects/runtime-coverage/sys/dev/iicbus/s35390a.c
projects/runtime-coverage/sys/geom/journal/g_journal.c
projects/runtime-coverage/sys/kern/subr_autoconf.c
projects/runtime-coverage/sys/kern/subr_blist.c
projects/runtime-coverage/sys/mips/conf/XLP.hints
projects/runtime-coverage/sys/mips/conf/XLR
projects/runtime-coverage/sys/mips/conf/XLR64
projects/runtime-coverage/sys/mips/conf/XLRN32
projects/runtime-coverage/sys/mips/conf/std.XLP
projects/runtime-coverage/sys/mips/rmi/xlr_i2c.c
projects/runtime-coverage/sys/modules/i2c/Makefile
projects/runtime-coverage/sys/sys/blist.h
projects/runtime-coverage/sys/sys/kernel.h
projects/runtime-coverage/sys/x86/acpica/srat.c
projects/runtime-coverage/tests/Makefile
projects/runtime-coverage/tests/sys/Makefile.inc
projects/runtime-coverage/usr.bin/apply/Makefile
projects/runtime-coverage/usr.bin/basename/Makefile
projects/runtime-coverage/usr.bin/bsdcat/Makefile
projects/runtime-coverage/usr.bin/calendar/Makefile
projects/runtime-coverage/usr.bin/calendar/calendars/calendar.freebsd
projects/runtime-coverage/usr.bin/cmp/Makefile
projects/runtime-coverage/usr.bin/col/Makefile
projects/runtime-coverage/usr.bin/comm/Makefile
projects/runtime-coverage/usr.bin/compress/Makefile
projects/runtime-coverage/usr.bin/cpio/Makefile
projects/runtime-coverage/usr.bin/csplit/Makefile
projects/runtime-coverage/usr.bin/cut/Makefile
projects/runtime-coverage/usr.bin/diff/Makefile
projects/runtime-coverage/usr.bin/diff3/Makefile
projects/runtime-coverage/usr.bin/dirname/Makefile
projects/runtime-coverage/usr.bin/du/Makefile
projects/runtime-coverage/usr.bin/file2c/Makefile
projects/runtime-coverage/usr.bin/getconf/Makefile
projects/runtime-coverage/usr.bin/grep/Makefile
projects/runtime-coverage/usr.bin/gzip/Makefile
projects/runtime-coverage/usr.bin/hexdump/Makefile
projects/runtime-coverage/usr.bin/ident/Makefile
projects/runtime-coverage/usr.bin/indent/Makefile
projects/runtime-coverage/usr.bin/join/Makefile
projects/runtime-coverage/usr.bin/jot/Makefile
projects/runtime-coverage/usr.bin/lastcomm/Makefile
projects/runtime-coverage/usr.bin/limits/Makefile
projects/runtime-coverage/usr.bin/m4/Makefile
projects/runtime-coverage/usr.bin/mkimg/Makefile
projects/runtime-coverage/usr.bin/ncal/Makefile
projects/runtime-coverage/usr.bin/pr/Makefile
projects/runtime-coverage/usr.bin/printf/Makefile
projects/runtime-coverage/usr.bin/procstat/Makefile
projects/runtime-coverage/usr.bin/sdiff/Makefile
projects/runtime-coverage/usr.bin/sed/Makefile
projects/runtime-coverage/usr.bin/soelim/Makefile
projects/runtime-coverage/usr.bin/stat/Makefile
projects/runtime-coverage/usr.bin/tail/Makefile
projects/runtime-coverage/usr.bin/tar/Makefile
projects/runtime-coverage/usr.bin/timeout/Makefile
projects/runtime-coverage/usr.bin/tr/Makefile
projects/runtime-coverage/usr.bin/truncate/Makefile
projects/runtime-coverage/usr.bin/uniq/Makefile
projects/runtime-coverage/usr.bin/units/Makefile
projects/runtime-coverage/usr.bin/uudecode/Makefile
projects/runtime-coverage/usr.bin/uuencode/Makefile
projects/runtime-coverage/usr.bin/xargs/Makefile
projects/runtime-coverage/usr.bin/xinstall/Makefile
projects/runtime-coverage/usr.bin/xo/Makefile
projects/runtime-coverage/usr.bin/yacc/Makefile
projects/runtime-coverage/usr.sbin/chown/Makefile
projects/runtime-coverage/usr.sbin/cpucontrol/cpucontrol.8
projects/runtime-coverage/usr.sbin/etcupdate/Makefile
projects/runtime-coverage/usr.sbin/extattr/Makefile
projects/runtime-coverage/usr.sbin/fstyp/Makefile
projects/runtime-coverage/usr.sbin/makefs/Makefile
projects/runtime-coverage/usr.sbin/newsyslog/Makefile
projects/runtime-coverage/usr.sbin/nmtree/Makefile
projects/runtime-coverage/usr.sbin/pw/Makefile
projects/runtime-coverage/usr.sbin/rpcbind/Makefile
projects/runtime-coverage/usr.sbin/sa/Makefile
Directory Properties:
projects/runtime-coverage/ (props changed)
projects/runtime-coverage/contrib/gcc/ (props changed)
projects/runtime-coverage/contrib/llvm/ (props changed)
projects/runtime-coverage/contrib/llvm/tools/lld/ (props changed)
Modified: projects/runtime-coverage/UPDATING
==============================================================================
--- projects/runtime-coverage/UPDATING Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/UPDATING Mon Aug 14 19:28:49 2017 (r322517)
@@ -51,6 +51,27 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 12.x IS SLOW:
****************************** SPECIAL WARNING: ******************************
+20170814:
+ "make check" behavior (made in ^/head at r295380) has been changed to
+ execute from a limited sandbox, as opposed to executing from
+ ${TESTSDIR}.
+
+ Behavioral changes:
+ - The "beforecheck" and "aftercheck" targets are now specified.
+ - ${CHECKDIR} (added in commit noted above) has been removed.
+ - Legacy behavior can be enabled by setting
+ WITHOUT_MAKE_CHECK_USE_SANDBOX in src.conf(5) or the environment.
+
+ If the limited sandbox mode is enabled, "make check" will execute
+ "make distribution", then install, execute the tests, and clean up the
+ sandbox if successful.
+
+ The "make distribution" and "make install" targets are typically run as
+ root to set appropriate permissions and ownership at installation time.
+ The end-user should set "WITH_INSTALL_AS_USER" in src.conf(5) or the
+ environment if executing "make check" with limited sandbox mode using
+ an unprivileged user.
+
20170808:
Since the switch to GPT disk labels, fsck for UFS/FFS has been
unable to automatically find alternate superblocks. As of r322297,
Modified: projects/runtime-coverage/bin/cat/Makefile
==============================================================================
--- projects/runtime-coverage/bin/cat/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/bin/cat/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -6,6 +6,7 @@
PACKAGE=runtime
PROG= cat
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/bin/chmod/Makefile
==============================================================================
--- projects/runtime-coverage/bin/chmod/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/bin/chmod/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -6,6 +6,7 @@
PACKAGE=runtime
PROG= chmod
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/bin/date/Makefile
==============================================================================
--- projects/runtime-coverage/bin/date/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/bin/date/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -7,6 +7,7 @@ PACKAGE=runtime
PROG= date
SRCS= date.c netdate.c vary.c
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/bin/dd/Makefile
==============================================================================
--- projects/runtime-coverage/bin/dd/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/bin/dd/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -38,6 +38,7 @@ test: ${PROG} gen
@rm -f gen 1M_zeroes* obs_zeroes
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/bin/echo/Makefile
==============================================================================
--- projects/runtime-coverage/bin/echo/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/bin/echo/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -6,6 +6,7 @@
PACKAGE=runtime
PROG= echo
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/bin/expr/Makefile
==============================================================================
--- projects/runtime-coverage/bin/expr/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/bin/expr/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -12,6 +12,7 @@ CFLAGS+= -fwrapv
NO_WMISSING_VARIABLE_DECLARATIONS=
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/bin/ln/Makefile
==============================================================================
--- projects/runtime-coverage/bin/ln/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/bin/ln/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -10,6 +10,7 @@ MAN= ln.1 symlink.7
LINKS= ${BINDIR}/ln ${BINDIR}/link
MLINKS= ln.1 link.1
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/bin/ls/Makefile
==============================================================================
--- projects/runtime-coverage/bin/ls/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/bin/ls/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -14,6 +14,7 @@ CFLAGS+= -DCOLORLS
LIBADD+= termcapw
.endif
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/bin/mv/Makefile
==============================================================================
--- projects/runtime-coverage/bin/mv/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/bin/mv/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -6,6 +6,7 @@
PACKAGE=runtime
PROG= mv
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/bin/pax/Makefile
==============================================================================
--- projects/runtime-coverage/bin/pax/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/bin/pax/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -33,6 +33,7 @@ SRCS= ar_io.c ar_subs.c buf_subs.c cache.c cpio.c file
gen_subs.c getoldopt.c options.c pat_rep.c pax.c sel_subs.c \
tables.c tar.c tty_subs.c
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/bin/pkill/Makefile
==============================================================================
--- projects/runtime-coverage/bin/pkill/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/bin/pkill/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -19,6 +19,7 @@ MLINKS= pkill.1 pgrep.1
SYMLINKS= ../..${BINDIR}/pkill /usr/bin/pkill
SYMLINKS+= ../..${BINDIR}/pgrep /usr/bin/pgrep
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/bin/pwait/Makefile
==============================================================================
--- projects/runtime-coverage/bin/pwait/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/bin/pwait/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -5,6 +5,7 @@
PACKAGE=runtime
PROG= pwait
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/bin/sh/Makefile
==============================================================================
--- projects/runtime-coverage/bin/sh/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/bin/sh/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -64,6 +64,7 @@ syntax.c syntax.h: mksyntax
token.h: mktokens
sh ${.CURDIR}/mktokens
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/bin/sh/tests/invocation/Makefile
==============================================================================
--- projects/runtime-coverage/bin/sh/tests/invocation/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/bin/sh/tests/invocation/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -8,6 +8,7 @@ TESTSDIR= ${TESTSBASE}/bin/sh/${.CURDIR:T}
ATF_TESTS_SH= functional_test
${PACKAGE}FILES+= sh-ac1.0
+${PACKAGE}FILES+= sh-c-missing1.0
${PACKAGE}FILES+= sh-c1.0
${PACKAGE}FILES+= sh-ca1.0
${PACKAGE}FILES+= sh-fca1.0
Copied: projects/runtime-coverage/bin/sh/tests/invocation/sh-c-missing1.0 (from r322516, head/bin/sh/tests/invocation/sh-c-missing1.0)
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ projects/runtime-coverage/bin/sh/tests/invocation/sh-c-missing1.0 Mon Aug 14 19:28:49 2017 (r322517, copy of r322516, head/bin/sh/tests/invocation/sh-c-missing1.0)
@@ -0,0 +1,3 @@
+# $FreeBSD$
+
+! echo echo bad | ${SH} -c 2>/dev/null
Modified: projects/runtime-coverage/bin/sleep/Makefile
==============================================================================
--- projects/runtime-coverage/bin/sleep/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/bin/sleep/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -6,6 +6,7 @@
PACKAGE=runtime
PROG= sleep
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/bin/test/Makefile
==============================================================================
--- projects/runtime-coverage/bin/test/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/bin/test/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -8,6 +8,7 @@ PROG= test
LINKS= ${BINDIR}/test ${BINDIR}/[
MLINKS= test.1 [.1
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/contrib/llvm/tools/lld/ELF/Driver.cpp
==============================================================================
--- projects/runtime-coverage/contrib/llvm/tools/lld/ELF/Driver.cpp Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/contrib/llvm/tools/lld/ELF/Driver.cpp Mon Aug 14 19:28:49 2017 (r322517)
@@ -615,7 +615,8 @@ static bool getCompressDebugSections(opt::InputArgList
// Initializes Config members by the command line options.
void LinkerDriver::readConfigs(opt::InputArgList &Args) {
- Config->AllowMultipleDefinition = Args.hasArg(OPT_allow_multiple_definition);
+ Config->AllowMultipleDefinition =
+ Args.hasArg(OPT_allow_multiple_definition) || hasZOption(Args, "muldefs");
Config->AuxiliaryList = getArgs(Args, OPT_auxiliary);
Config->Bsymbolic = Args.hasArg(OPT_Bsymbolic);
Config->BsymbolicFunctions = Args.hasArg(OPT_Bsymbolic_functions);
Modified: projects/runtime-coverage/lib/atf/libatf-c++/Makefile
==============================================================================
--- projects/runtime-coverage/lib/atf/libatf-c++/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/atf/libatf-c++/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -72,6 +72,7 @@ INCSDIR_atf-c++.hpp= ${INCLUDEDIR}
MAN= atf-c++.3
MLINKS+= atf-c++.3 atf-c-api++.3 # Backwards compatibility.
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include "../common.mk"
Modified: projects/runtime-coverage/lib/atf/libatf-c/Makefile
==============================================================================
--- projects/runtime-coverage/lib/atf/libatf-c/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/atf/libatf-c/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -97,6 +97,7 @@ INCSDIR_atf-c.h= ${INCLUDEDIR}
MAN= atf-c.3
MLINKS+= atf-c.3 atf-c-api.3 # Backwards compatibility.
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include "../common.mk"
Modified: projects/runtime-coverage/lib/libarchive/Makefile
==============================================================================
--- projects/runtime-coverage/lib/libarchive/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libarchive/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -413,6 +413,7 @@ MLINKS+= archive_write_set_options.3 archive_write_set
MLINKS+= archive_write_set_options.3 archive_write_set_option.3
MLINKS+= libarchive.3 archive.3
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/lib/libc/Makefile
==============================================================================
--- projects/runtime-coverage/lib/libc/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libc/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -173,6 +173,7 @@ libkern.${LIBC_ARCH}:: ${KMSRCS}
${CP} ${.ALLSRC} ${DESTDIR}/sys/libkern/${LIBC_ARCH}
.endif
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/lib/libc/sys/getsockopt.2
==============================================================================
--- projects/runtime-coverage/lib/libc/sys/getsockopt.2 Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libc/sys/getsockopt.2 Mon Aug 14 19:28:49 2017 (r322517)
@@ -188,7 +188,7 @@ The following options are recognized in
.It Dv SO_LISTENINCQLEN Ta "get incomplete queue length of the socket (get only)"
.It Dv SO_USER_COOKIE Ta "set the 'so_user_cookie' value for the socket (uint32_t, set only)"
.It Dv SO_TS_CLOCK Ta "set specific format of timestamp returned by SO_TIMESTAMP"
-.It Dv SO_MAX_PACING_RATE "set the maximum transmit rate in bytes per second for the socket"
+.It Dv SO_MAX_PACING_RATE Ta "set the maximum transmit rate in bytes per second for the socket"
.El
.Pp
.Dv SO_DEBUG
Modified: projects/runtime-coverage/lib/libc/x86/sys/__vdso_gettc.c
==============================================================================
--- projects/runtime-coverage/lib/libc/x86/sys/__vdso_gettc.c Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libc/x86/sys/__vdso_gettc.c Mon Aug 14 19:28:49 2017 (r322517)
@@ -101,6 +101,7 @@ init_fence(void)
#if defined(__i386__)
u_int cpuid_supported, p[4];
+ lfence_works = LMB_NONE;
__asm __volatile(
" pushfl\n"
" popl %%eax\n"
@@ -121,8 +122,7 @@ init_fence(void)
cpuidp(0x1, p);
if ((p[3] & CPUID_SSE2) != 0)
lfence_works = select_lmb();
- } else
- lfence_works = LMB_NONE;
+ }
#elif defined(__amd64__)
lfence_works = select_lmb();
#else
Modified: projects/runtime-coverage/lib/libcam/Makefile
==============================================================================
--- projects/runtime-coverage/lib/libcam/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libcam/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -47,6 +47,7 @@ SHLIB_MAJOR= 7
.include <src.opts.mk>
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/lib/libcasper/services/cap_dns/Makefile
==============================================================================
--- projects/runtime-coverage/lib/libcasper/services/cap_dns/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libcasper/services/cap_dns/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -18,6 +18,7 @@ LIBADD= nv
CFLAGS+=-I${.CURDIR}
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/lib/libcasper/services/cap_grp/Makefile
==============================================================================
--- projects/runtime-coverage/lib/libcasper/services/cap_grp/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libcasper/services/cap_grp/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -18,6 +18,7 @@ LIBADD= nv
CFLAGS+=-I${.CURDIR}
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/lib/libcasper/services/cap_pwd/Makefile
==============================================================================
--- projects/runtime-coverage/lib/libcasper/services/cap_pwd/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libcasper/services/cap_pwd/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -18,6 +18,7 @@ LIBADD= nv
CFLAGS+=-I${.CURDIR}
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/lib/libcasper/services/cap_sysctl/Makefile
==============================================================================
--- projects/runtime-coverage/lib/libcasper/services/cap_sysctl/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libcasper/services/cap_sysctl/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -18,6 +18,7 @@ LIBADD= nv
CFLAGS+=-I${.CURDIR}
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/lib/libcrypt/Makefile
==============================================================================
--- projects/runtime-coverage/lib/libcrypt/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libcrypt/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -43,6 +43,7 @@ WARNS?= 2
PRECIOUSLIB=
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/lib/libkvm/Makefile
==============================================================================
--- projects/runtime-coverage/lib/libkvm/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libkvm/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -38,6 +38,7 @@ MLINKS+=kvm_read.3 kvm_read2.3 kvm_read.3 kvm_write.3
.include <src.opts.mk>
+HAS_TESTS=
SUBDIR.${MK_TESTS}= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/lib/libmp/Makefile
==============================================================================
--- projects/runtime-coverage/lib/libmp/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libmp/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -15,6 +15,7 @@ CFLAGS+= -I${SRCTOP}/crypto
VERSION_DEF= ${SRCTOP}/lib/libc/Versions.def
SYMBOL_MAPS= ${.CURDIR}/Symbol.map
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/lib/libnv/Makefile
==============================================================================
--- projects/runtime-coverage/lib/libnv/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libnv/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -17,6 +17,7 @@ SRCS+= msgio.c
SRCS+= nvlist.c
SRCS+= nvpair.c
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/lib/libpathconv/Makefile
==============================================================================
--- projects/runtime-coverage/lib/libpathconv/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libpathconv/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -13,6 +13,7 @@ SRCS= abs2rel.c rel2abs.c
#VERSION_DEF= ${SRCTOP/lib/libc/Versions.def
#SYMBOL_MAPS= ${.CURDIR}/Symbol.map
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/lib/libproc/Makefile
==============================================================================
--- projects/runtime-coverage/lib/libproc/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libproc/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -41,6 +41,7 @@ SHLIB_MAJOR= 4
MAN=
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/lib/librt/Makefile
==============================================================================
--- projects/runtime-coverage/lib/librt/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/librt/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -21,6 +21,7 @@ PRECIOUSLIB=
VERSION_DEF=${SRCTOP}/lib/libc/Versions.def
SYMBOL_MAPS=${.CURDIR}/Symbol.map
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/lib/libsbuf/Makefile
==============================================================================
--- projects/runtime-coverage/lib/libsbuf/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libsbuf/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -14,6 +14,7 @@ VERSION_DEF= ${.CURDIR}/Version.def
.PATH: ${SRCTOP}/sys/kern
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/lib/libthr/Makefile
==============================================================================
--- projects/runtime-coverage/lib/libthr/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libthr/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -69,6 +69,7 @@ SYMLINKS+=lib${LIB}.so ${LIBDIR}/libpthread.so
SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread_p.a
.endif
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/lib/libutil/Makefile
==============================================================================
--- projects/runtime-coverage/lib/libutil/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libutil/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -85,6 +85,7 @@ MLINKS+=pw_util.3 pw_copy.3 \
pw_util.3 pw_tempname.3 \
pw_util.3 pw_tmp.3
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/lib/libxo/Makefile
==============================================================================
--- projects/runtime-coverage/lib/libxo/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/libxo/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -110,6 +110,7 @@ MLINKS= xo_attr.3 xo_attr_h.3 \
xo_syslog.3 xo_set_logmask.3 \
xo_syslog.3 xo_vsyslog.3
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/lib/msun/Makefile
==============================================================================
--- projects/runtime-coverage/lib/msun/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/lib/msun/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -228,6 +228,7 @@ MLINKS+=trunc.3 truncf.3 trunc.3 truncl.3
.include <src.opts.mk>
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.lib.mk>
Modified: projects/runtime-coverage/libexec/atf/atf-check/Makefile
==============================================================================
--- projects/runtime-coverage/libexec/atf/atf-check/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/libexec/atf/atf-check/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -40,6 +40,7 @@ CFLAGS+= -DATF_SHELL='"/bin/sh"'
LIBADD= atf_cxx
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/libexec/atf/atf-sh/Makefile
==============================================================================
--- projects/runtime-coverage/libexec/atf/atf-sh/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/libexec/atf/atf-sh/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -72,6 +72,7 @@ FILESGROUPS= SUBR
SUBRDIR= ${SHAREDIR}/atf
SUBR= libatf-sh.subr
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include "../../../lib/atf/common.mk"
Modified: projects/runtime-coverage/libexec/rtld-elf/Makefile
==============================================================================
--- projects/runtime-coverage/libexec/rtld-elf/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/libexec/rtld-elf/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -85,6 +85,7 @@ beforeinstall:
.PATH: ${.CURDIR}/${RTLD_ARCH}
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/sbin/devd/Makefile
==============================================================================
--- projects/runtime-coverage/sbin/devd/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/sbin/devd/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -18,6 +18,7 @@ CFLAGS+=-I. -I${.CURDIR}
CLEANFILES= y.output
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/sbin/dhclient/Makefile
==============================================================================
--- projects/runtime-coverage/sbin/dhclient/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/sbin/dhclient/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -46,6 +46,7 @@ LIBADD= util
WARNS?= 2
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/sbin/growfs/Makefile
==============================================================================
--- projects/runtime-coverage/sbin/growfs/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/sbin/growfs/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -22,6 +22,7 @@ NO_WCAST_ALIGN= yes
LIBADD= util
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/sbin/ifconfig/Makefile
==============================================================================
--- projects/runtime-coverage/sbin/ifconfig/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/sbin/ifconfig/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -67,6 +67,7 @@ MAN= ifconfig.8
CFLAGS+= -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs
WARNS?= 2
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/sbin/mdconfig/Makefile
==============================================================================
--- projects/runtime-coverage/sbin/mdconfig/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/sbin/mdconfig/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -8,6 +8,7 @@ MAN= mdconfig.8
LIBADD= util geom
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/sbin/pfctl/Makefile
==============================================================================
--- projects/runtime-coverage/sbin/pfctl/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/sbin/pfctl/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -31,6 +31,7 @@ YFLAGS=
LIBADD= m md
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/share/examples/Makefile
==============================================================================
--- projects/runtime-coverage/share/examples/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/share/examples/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -266,6 +266,7 @@ SUBDIR+=pf
.endif
.endif
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
SUBDIR_PARALLEL=
Modified: projects/runtime-coverage/share/man/man5/src.conf.5
==============================================================================
--- projects/runtime-coverage/share/man/man5/src.conf.5 Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/share/man/man5/src.conf.5 Mon Aug 14 19:28:49 2017 (r322517)
@@ -1,6 +1,6 @@
.\" DO NOT EDIT-- this file is generated by tools/build/options/makeman.
.\" $FreeBSD$
-.Dd August 2, 2017
+.Dd August 14, 2017
.Dt SRC.CONF 5
.Os
.Sh NAME
@@ -967,12 +967,12 @@ amd64/amd64, arm/arm, arm/armeb, arm/armv6, arm64/aarc
Set to not build the LLDB debugger.
.Pp
This is a default setting on
-arm/arm, arm/armeb, arm/armv6, i386/i386, mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe, riscv/riscv64, riscv/riscv64sf and sparc64/sparc64.
+arm/arm, arm/armeb, arm/armv6, mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe, riscv/riscv64, riscv/riscv64sf and sparc64/sparc64.
.It Va WITH_LLDB
Set to build the LLDB debugger.
.Pp
This is a default setting on
-amd64/amd64 and arm64/aarch64.
+amd64/amd64, arm64/aarch64 and i386/i386.
.It Va WITHOUT_LLD_BOOTSTRAP
Set to not build the LLD linker during the bootstrap phase of
the build.
@@ -1043,6 +1043,16 @@ MTA selector.
Set to not install
.Xr make 1
and related support files.
+.It Va WITHOUT_MAKE_CHECK_USE_SANDBOX
+Set to not execute
+.Dq Li "make check"
+in limited sandbox mode.
+This option should be paired with
+.Va WITH_INSTALL_AS_USER
+if executed as an unprivileged user.
+See
+.Xr tests 7
+for more details.
.It Va WITHOUT_MAN
Set to not build manual pages.
When set, these options are also in effect:
@@ -1254,13 +1264,13 @@ Set to not build profiled libraries for use with
.Xr gprof 8 .
.Pp
This is a default setting on
-riscv/riscv64 and riscv/riscv64sf.
+mips/mips64el, mips/mips64, mips/mips64elhf, mips/mips64hf, riscv/riscv64 and riscv/riscv64sf.
.It Va WITH_PROFILE
Set to build profiled libraries for use with
.Xr gprof 8 .
.Pp
This is a default setting on
-amd64/amd64, arm/arm, arm/armeb, arm/armv6, arm64/aarch64, i386/i386, mips/mipsel, mips/mips, mips/mips64el, mips/mips64, mips/mipsn32, mips/mipselhf, mips/mipshf, mips/mips64elhf, mips/mips64hf, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe and sparc64/sparc64.
+amd64/amd64, arm/arm, arm/armeb, arm/armv6, arm64/aarch64, i386/i386, mips/mipsel, mips/mips, mips/mipsn32, mips/mipselhf, mips/mipshf, powerpc/powerpc, powerpc/powerpc64, powerpc/powerpcspe and sparc64/sparc64.
.It Va WITHOUT_QUOTAS
Set to not build
.Xr quota 1
Modified: projects/runtime-coverage/share/man/man9/Makefile
==============================================================================
--- projects/runtime-coverage/share/man/man9/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/share/man/man9/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -669,7 +669,8 @@ MLINKS+=condvar.9 cv_broadcast.9 \
condvar.9 cv_wait_unlock.9 \
condvar.9 cv_wmesg.9
MLINKS+=config_intrhook.9 config_intrhook_disestablish.9 \
- config_intrhook.9 config_intrhook_establish.9
+ config_intrhook.9 config_intrhook_establish.9 \
+ config_intrhook.9 config_intrhook_oneshot.9
MLINKS+=contigmalloc.9 contigfree.9
MLINKS+=casuword.9 casueword.9 \
casuword.9 casueword32.9 \
Modified: projects/runtime-coverage/share/man/man9/config_intrhook.9
==============================================================================
--- projects/runtime-coverage/share/man/man9/config_intrhook.9 Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/share/man/man9/config_intrhook.9 Mon Aug 14 19:28:49 2017 (r322517)
@@ -26,7 +26,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 24, 2006
+.Dd August 10, 2017
.Dt CONFIG_INTRHOOK 9
.Os
.Sh NAME
@@ -35,10 +35,13 @@
but before root is mounted
.Sh SYNOPSIS
.In sys/kernel.h
+.Vt typedef void (*ich_func_t)(void *arg);
.Ft int
.Fn config_intrhook_establish "struct intr_config_hook *hook"
.Ft void
.Fn config_intrhook_disestablish "struct intr_config_hook *hook"
+.Ft void
+.Fn config_intrhook_oneshot "ich_func_t func" "void *arg"
.Sh DESCRIPTION
The
.Fn config_intrhook_establish
@@ -51,6 +54,18 @@ The
.Fn config_intrhook_disestablish
function removes the entry from the hook queue.
.Pp
+The
+.Fn config_intrhook_oneshot
+function schedules a function to be run as described for
+.Fn config_intrhook_establish ;
+the entry is automatically removed from the hook queue
+after that function runs.
+This is appropriate when additional device configuration must be done
+after interrupts are enabled, but there is no need to stall the
+boot process after that.
+This function allocates memory using M_WAITOK; do not call this while
+holding any non-sleepable locks.
+.Pp
Before root is mounted, all the previously established hooks are
run.
The boot process is then stalled until all handlers remove their hook
@@ -71,8 +86,8 @@ This structure is defined as follows:
.Bd -literal
struct intr_config_hook {
TAILQ_ENTRY(intr_config_hook) ich_links;/* Private */
- void (*ich_func)(void *arg); /* function to call */
- void *ich_arg; /* Argument to call */
+ ich_func_t ich_func; /* function to call */
+ void *ich_arg; /* Argument to call */
};
.Ed
.Pp
Modified: projects/runtime-coverage/share/mk/bsd.README
==============================================================================
--- projects/runtime-coverage/share/mk/bsd.README Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/share/mk/bsd.README Mon Aug 14 19:28:49 2017 (r322517)
@@ -566,7 +566,7 @@ It has seven targets:
all:
build the test programs.
check:
- runs the test programs from CHECKDIR with kyua test.
+ runs the test programs with kyua test.
The beforecheck and aftercheck targets will be invoked, if
defined, to execute commands before and after the realcheck
@@ -574,8 +574,6 @@ It has seven targets:
The devel/kyua package must be installed before invoking this
target.
-
- See CHECKDIR for more details.
clean:
remove the test programs and any object files.
cleandir:
@@ -602,10 +600,6 @@ ATF_TESTS_C The names of the ATF C test programs to bu
ATF_TESTS_CXX The names of the ATF C++ test programs to build.
ATF_TESTS_SH The names of the ATF sh test programs to build.
-
-CHECKDIR The directory that 'make check' executes tests from.
-
- The value of CHECKDIR defaults to .OBJDIR.
KYUAFILE If 'auto' (the default), generate a Kyuafile out of the
test programs defined in the Makefile. If 'yes', then a
Modified: projects/runtime-coverage/share/mk/bsd.cpu.mk
==============================================================================
--- projects/runtime-coverage/share/mk/bsd.cpu.mk Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/share/mk/bsd.cpu.mk Mon Aug 14 19:28:49 2017 (r322517)
@@ -111,10 +111,9 @@ _CPUCFLAGS = -march=armv5te -D__XSCALE__
. elif ${CPUTYPE:M*soft*} != ""
_CPUCFLAGS = -mfloat-abi=softfp
. elif ${CPUTYPE} == "armv6"
-# Not sure we still need ARM_ARCH_6=1 here.
-_CPUCFLAGS = -march=${CPUTYPE} -DARM_ARCH_6=1
+_CPUCFLAGS = -march=${CPUTYPE}
. elif ${CPUTYPE} == "cortexa"
-_CPUCFLAGS = -march=armv7 -DARM_ARCH_6=1 -mfpu=vfp
+_CPUCFLAGS = -march=armv7 -mfpu=vfp
. elif ${CPUTYPE:Marmv[4567]*} != ""
# Handle all the armvX types that FreeBSD runs:
# armv4, armv4t, armv5, armv5te, armv6, armv6t2, armv7, armv7-a, armv7ve
Modified: projects/runtime-coverage/share/mk/bsd.lib.mk
==============================================================================
--- projects/runtime-coverage/share/mk/bsd.lib.mk Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/share/mk/bsd.lib.mk Mon Aug 14 19:28:49 2017 (r322517)
@@ -469,6 +469,12 @@ OBJS_DEPEND_GUESS.${_S:R}.pico+= ${_S}
.endfor
.endif
+.if defined(HAS_TESTS)
+MAKE+= MK_MAKE_CHECK_USE_SANDBOX=yes
+SUBDIR_TARGETS+= check
+TESTS_LD_LIBRARY_PATH+= ${.OBJDIR}
+.endif
+
.include <bsd.dep.mk>
.include <bsd.clang-analyze.mk>
.include <bsd.obj.mk>
Modified: projects/runtime-coverage/share/mk/bsd.opts.mk
==============================================================================
--- projects/runtime-coverage/share/mk/bsd.opts.mk Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/share/mk/bsd.opts.mk Mon Aug 14 19:28:49 2017 (r322517)
@@ -55,6 +55,7 @@ __DEFAULT_YES_OPTIONS = \
INCLUDES \
INSTALLLIB \
KERBEROS \
+ MAKE_CHECK_USE_SANDBOX \
MAN \
MANCOMPRESS \
NIS \
@@ -63,6 +64,7 @@ __DEFAULT_YES_OPTIONS = \
PROFILE \
SSP \
SYMVER \
+ TESTS \
TOOLCHAIN \
WARNS
@@ -75,6 +77,7 @@ __DEFAULT_NO_OPTIONS = \
__DEFAULT_DEPENDENT_OPTIONS = \
COVERAGE/DEBUG_FILES \
+ MAKE_CHECK_USE_SANDBOX/TESTS \
STAGING_MAN/STAGING \
STAGING_PROG/STAGING \
STALE_STAGED/STAGING \
Modified: projects/runtime-coverage/share/mk/bsd.prog.mk
==============================================================================
--- projects/runtime-coverage/share/mk/bsd.prog.mk Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/share/mk/bsd.prog.mk Mon Aug 14 19:28:49 2017 (r322517)
@@ -324,6 +324,13 @@ lint: ${SRCS:M*.c}
.include <bsd.man.mk>
.endif
+.if defined(HAS_TESTS)
+MAKE+= MK_MAKE_CHECK_USE_SANDBOX=yes
+SUBDIR_TARGETS+= check
+TESTS_LD_LIBRARY_PATH+= ${.OBJDIR}
+TESTS_PATH+= ${.OBJDIR}
+.endif
+
.if defined(PROG)
OBJS_DEPEND_GUESS+= ${SRCS:M*.h}
.endif
Modified: projects/runtime-coverage/share/mk/src.opts.mk
==============================================================================
--- projects/runtime-coverage/share/mk/src.opts.mk Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/share/mk/src.opts.mk Mon Aug 14 19:28:49 2017 (r322517)
@@ -160,7 +160,6 @@ __DEFAULT_YES_OPTIONS = \
TCP_WRAPPERS \
TCSH \
TELNET \
- TESTS \
TEXTPROC \
TFTP \
TIMED \
Modified: projects/runtime-coverage/share/mk/suite.test.mk
==============================================================================
--- projects/runtime-coverage/share/mk/suite.test.mk Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/share/mk/suite.test.mk Mon Aug 14 19:28:49 2017 (r322517)
@@ -8,6 +8,8 @@
.error suite.test.mk cannot be included directly.
.endif
+.include <bsd.opts.mk>
+
# Name of the test suite these tests belong to. Should rarely be changed for
# Makefiles built into the FreeBSD src tree.
TESTSUITE?= FreeBSD
@@ -75,8 +77,6 @@ Kyuafile: Makefile
@mv ${.TARGET}.tmp ${.TARGET}
.endif
-CHECKDIR?= ${DESTDIR}${TESTSDIR}
-
KYUA= ${LOCALBASE}/bin/kyua
# Definition of the "make check" target and supporting variables.
@@ -99,4 +99,26 @@ realcheck: .PHONY
echo "LOCALBASE=\"${LOCALBASE}\""; \
false; \
fi
- @${KYUA} test -k ${CHECKDIR}/Kyuafile
+ @env ${TESTS_ENV:Q} ${KYUA} test -k ${DESTDIR}${TESTSDIR}/Kyuafile
+
+MAKE_CHECK_SANDBOX_DIR= ${.OBJDIR}/checkdir
+CLEANDIRS+= ${MAKE_CHECK_SANDBOX_DIR}
+
+.if ${MK_MAKE_CHECK_USE_SANDBOX} != "no" && make(check)
+DESTDIR:= ${MAKE_CHECK_SANDBOX_DIR}
+
+beforecheck:
+.for t in clean depend all
+ @cd ${.CURDIR} && ${MAKE} $t
+.endfor
+ @cd ${SRCTOP} && ${MAKE} hierarchy DESTDIR=${DESTDIR}
+ @cd ${.CURDIR} && ${MAKE} install \
+ DESTDIR=${DESTDIR}
+
+# NOTE: this is intentional to ensure that "make check" can be run multiple
+# times. "aftercheck" won't be run if "make check" fails, is interrupted,
+# etc.
+aftercheck:
+ @cd ${.CURDIR} && ${MAKE} clean
+
+.endif
Modified: projects/runtime-coverage/share/zoneinfo/Makefile
==============================================================================
--- projects/runtime-coverage/share/zoneinfo/Makefile Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/share/zoneinfo/Makefile Mon Aug 14 19:28:49 2017 (r322517)
@@ -131,6 +131,7 @@ afterinstall:
echo "Run tzsetup(8) manually to update /etc/localtime."; \
fi
+HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests
.include <bsd.prog.mk>
Modified: projects/runtime-coverage/sys/amd64/amd64/trap.c
==============================================================================
--- projects/runtime-coverage/sys/amd64/amd64/trap.c Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/sys/amd64/amd64/trap.c Mon Aug 14 19:28:49 2017 (r322517)
@@ -166,16 +166,22 @@ trap(struct trapframe *frame)
#ifdef KDTRACE_HOOKS
struct reg regs;
#endif
- struct thread *td = curthread;
- struct proc *p = td->td_proc;
+ ksiginfo_t ksi;
+ struct thread *td;
+ struct proc *p;
+ register_t addr;
#ifdef KDB
register_t dr6;
#endif
- int i = 0, ucode = 0;
+ int i, ucode;
u_int type;
- register_t addr = 0;
- ksiginfo_t ksi;
+ td = curthread;
+ p = td->td_proc;
+ i = 0;
+ ucode = 0;
+ addr = 0;
+
VM_CNT_INC(v_trap);
type = frame->tf_trapno;
@@ -816,10 +822,24 @@ dblfault_handler(struct trapframe *frame)
if (dtrace_doubletrap_func != NULL)
(*dtrace_doubletrap_func)();
#endif
- printf("\nFatal double fault\n");
- printf("rip = 0x%lx\n", frame->tf_rip);
- printf("rsp = 0x%lx\n", frame->tf_rsp);
- printf("rbp = 0x%lx\n", frame->tf_rbp);
+ printf("\nFatal double fault\n"
+ "rip %#lx rsp %#lx rbp %#lx\n"
+ "rax %#lx rdx %#lx rbx %#lx\n"
+ "rcx %#lx rsi %#lx rdi %#lx\n"
+ "r8 %#lx r9 %#lx r10 %#lx\n"
+ "r11 %#lx r12 %#lx r13 %#lx\n"
+ "r14 %#lx r15 %#lx rflags %#lx\n"
+ "cs %#lx ss %#lx ds %#hx es %#hx fs %#hx gs %#hx\n"
+ "fsbase %#lx gsbase %#lx kgsbase %#lx\n",
+ frame->tf_rip, frame->tf_rsp, frame->tf_rbp,
+ frame->tf_rax, frame->tf_rdx, frame->tf_rbx,
+ frame->tf_rcx, frame->tf_rdi, frame->tf_rsi,
+ frame->tf_r8, frame->tf_r9, frame->tf_r10,
+ frame->tf_r11, frame->tf_r12, frame->tf_r13,
+ frame->tf_r14, frame->tf_r15, frame->tf_rflags,
+ frame->tf_cs, frame->tf_ss, frame->tf_ds, frame->tf_es,
+ frame->tf_fs, frame->tf_gs,
+ rdmsr(MSR_FSBASE), rdmsr(MSR_GSBASE), rdmsr(MSR_KGSBASE));
#ifdef SMP
/* two separate prints in case of a trap on an unmapped page */
printf("cpuid = %d; ", PCPU_GET(cpuid));
Modified: projects/runtime-coverage/sys/amd64/include/cpufunc.h
==============================================================================
--- projects/runtime-coverage/sys/amd64/include/cpufunc.h Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/sys/amd64/include/cpufunc.h Mon Aug 14 19:28:49 2017 (r322517)
@@ -651,6 +651,38 @@ load_gs(u_short sel)
}
#endif
+static __inline uint64_t
+rdfsbase(void)
+{
+ uint64_t x;
+
+ __asm __volatile("rdfsbase %0" : "=r" (x));
+ return (x);
+}
+
+static __inline void
+wrfsbase(uint64_t x)
+{
+
+ __asm __volatile("wrfsbase %0" : : "r" (x));
+}
+
+static __inline uint64_t
+rdgsbase(void)
+{
+ uint64_t x;
+
+ __asm __volatile("rdgsbase %0" : "=r" (x));
+ return (x);
+}
+
+static __inline void
+wrgsbase(uint64_t x)
+{
+
+ __asm __volatile("wrgsbase %0" : : "r" (x));
+}
+
static __inline void
bare_lgdt(struct region_descriptor *addr)
{
Modified: projects/runtime-coverage/sys/arm/conf/GENERIC
==============================================================================
--- projects/runtime-coverage/sys/arm/conf/GENERIC Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/sys/arm/conf/GENERIC Mon Aug 14 19:28:49 2017 (r322517)
@@ -139,9 +139,11 @@ device twl_clks # twl external clocks
# i2c RTCs
device ds1307 # Dallas DS1307 RTC and compatible
+device ds13rtc # All Dallas/Maxim DS13xx RTCs
device ds1672 # Dallas DS1672 RTC
device ds3231 # Dallas DS3231 RTC + temperature
device nxprtc # NXP RTCs: PCA/PFC212x PCA/PCF85xx
+device s35390a # Seiko s3539x RTCs
# GPIO
device gpio
Modified: projects/runtime-coverage/sys/arm64/arm64/gic_v3.c
==============================================================================
--- projects/runtime-coverage/sys/arm64/arm64/gic_v3.c Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/sys/arm64/arm64/gic_v3.c Mon Aug 14 19:28:49 2017 (r322517)
@@ -374,7 +374,7 @@ gic_v3_read_ivar(device_t dev, device_t child, int whi
switch (which) {
case GICV3_IVAR_NIRQS:
- *result = sc->gic_nirqs;
+ *result = (NIRQ - sc->gic_nirqs) / sc->gic_nchildren;
return (0);
case GICV3_IVAR_REDIST_VADDR:
*result = (uintptr_t)rman_get_virtual(
Modified: projects/runtime-coverage/sys/arm64/arm64/gic_v3_fdt.c
==============================================================================
--- projects/runtime-coverage/sys/arm64/arm64/gic_v3_fdt.c Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/sys/arm64/arm64/gic_v3_fdt.c Mon Aug 14 19:28:49 2017 (r322517)
@@ -266,10 +266,12 @@ static int
gic_v3_ofw_bus_attach(device_t dev)
{
struct gic_v3_ofw_devinfo *di;
+ struct gic_v3_softc *sc;
device_t child;
phandle_t parent, node;
pcell_t addr_cells, size_cells;
+ sc = device_get_softc(dev);
parent = ofw_bus_get_node(dev);
if (parent > 0) {
addr_cells = 2;
@@ -320,6 +322,7 @@ gic_v3_ofw_bus_attach(device_t dev)
continue;
}
+ sc->gic_nchildren++;
device_set_ivars(child, di);
}
}
Modified: projects/runtime-coverage/sys/arm64/arm64/gicv3_its.c
==============================================================================
--- projects/runtime-coverage/sys/arm64/arm64/gicv3_its.c Mon Aug 14 19:23:31 2017 (r322516)
+++ projects/runtime-coverage/sys/arm64/arm64/gicv3_its.c Mon Aug 14 19:28:49 2017 (r322517)
@@ -228,6 +228,9 @@ struct gicv3_its_softc {
struct intr_pic *sc_pic;
struct resource *sc_its_res;
+ cpuset_t sc_cpus;
*** DIFF OUTPUT TRUNCATED AT 1000 LINES ***
More information about the svn-src-projects
mailing list