Commit graph

5843 commits

Author SHA1 Message Date
Peter Holm
f6fd5af80a stress2: Do not wait forever for swap usage 2024-08-30 10:04:46 +02:00
Peter Holm
c7c3f6351e stress2: Update comments and remove one test 2024-08-29 09:59:16 +02:00
Jessica Clarke
18aef07cfa beinstall: Pass -B to etcupdate
Since commit 246364454f ("etcupdate: Use new buildetc and installetc
targets when available"), beinstall has been much slower for the
etcupdate step, as it's been doing a kernel-toolchain (admittedly
without LLVM itself being built). Given beinstall requires an object
tree to already have been built and just installs it, we can pass -B to
beinstall to reuse that tree rather than build kernel-toolchain in
another one.

Reported by:	olivier
Tested by:	olivier
MFC after:	1 week
2024-08-28 23:36:56 +01:00
John Baldwin
0a5996443b src.conf.5: Fix spelling typo
Sponsored by:	AFRL, DARPA
2024-08-20 07:54:12 -04:00
Peter Holm
c7bc30c24f stress2: Some tests use hw.ncpu to scale the load. Tests on a box with
a large number of CPUs show that this number needs to be capped
2024-08-17 08:37:34 +02:00
Peter Holm
41e03b46da stress2: Fix warning about unused variable. Remove debug "date" 2024-08-16 09:19:51 +02:00
Kyle Evans
6df36deb8b boot: update lua linter for recent module additions
For modules we expect to be there, we need to --globals them in to avoid
linter errors.  Maybe we should switch to a different model for these
to clean up our linter exceptions... 'meh'.

Reported by:	David Cross <david_crossfamilyweb_com>
2024-08-12 20:57:14 -05:00
Wolfram Schneider
ccb0365643 stale symlinks: configurable obj dir prefix
Use $MAKEOBJDIRPREFIX if set, otherwise /usr/obj
2024-08-12 19:34:43 +00:00
Warner Losh
bf4f27e85a options: Make it clearer some x86 / BIOS only things
Suggested by: jrtc27
Sponsored by: Netflix
2024-08-06 17:39:10 -06:00
Warner Losh
20d35d5817 loader: Add WITH/WITHOUT_LOADER_PXEBOOT build option
Make it possible to disable pxeboot. This loader will fail to build when
it's too large. When /boot/loader needs to be larger like that, this
options will disable a component whose build will fail. It is an explicit
option rather than implicit when things are too large to force the user to
make the explicit tradeoffs rather than wonder why they have a stale pxeboot
or other odd failure mode.

MFC After:		3 days
Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D46212
2024-08-06 17:22:36 -06:00
Warner Losh
7ee781e2bf loader: Document that WITH_BEARSSL may need other tweaks
/boot/loader is right up aginst the 500k limit we have to make sure
everything works in a wide variety of environments. However, adding
WITH_BEARSSL can push it over the edge since we are so close to the
limit with it enabled. One may also need to increase LOADERSIZE when
enabling it. It's often safe to go much higher, especially when you
don't plan on using pxeldr. Document this trade off here.

MFC After:		3 days
Sponsored by:		Netflix
Reviewed by:		sjg, markj
Differential Revision:	https://reviews.freebsd.org/D46211
2024-08-06 17:22:36 -06:00
John Baldwin
3a4b04e82d depend-cleanup.sh: Simplify handling for stale syscall.S
Remove the outer grep and depend on the greps in clean_dep instead.

Reviewed by:	brooks, imp
Obtained from:	CheriBSD
Sponsored by:	AFRL, DARPA
Differential Revision:	https://reviews.freebsd.org/D46103
2024-08-05 15:49:06 -04:00
Ed Maste
5c2bc3db20 Remove "All Rights Reserved" from FreeBSD Foundation copyrights
These ones were unambiguous cases where the Foundation was the only
listed copyright holder.

Sponsored by:	The FreeBSD Foundation
2024-07-30 12:16:36 -04:00
Ed Maste
4a06d14937 depend-cleanup: remove entries from 2020 and 2021
> These tests increase the build time (albeit by a small amount), so
> they should be removed once enough time has passed and it is extremely
> unlikely anyone would try a NO_CLEAN build against an object tree from
> before the related change.

The comment suggests a year is a reasonable period but we'll be somewhat
more conservative for now, in part so that we retain different examples
of special cases.

Reviewed by:	brooks, imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46178
2024-07-29 14:57:32 -04:00
Ed Maste
ba373fca78 Do not clean (in buildworld/buildkernel) by default
As discussed on the freebsd-arch mailing list[1].  For historical
reasons FreeBSD's buildworld and buildkernel targets started by cleaning
the object tree, for traditional (non-metamode) builds.

Cleaning is not necessary when dependencies are properly tracked, and we
have a somewhat kludgey script[2] to handle some known cases where deps
were mishandled by traditional builds.  Be consistent with the vast
majority of open source build systems by default, and do not clean at
the beginning of buildworld or buildkernel.

Users may set WITH_CLEAN in src.conf(5) to restore the previous
behaviour, or run `make cleanworld` and/or `make cleankernel` before
starting a build.

[1] https://lists.freebsd.org/archives/freebsd-arch/2024-July/000727.html
[2] tools/build/depend-cleanup.sh

Reviewed by:	jhb, imp
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D46172
2024-07-29 13:16:52 -04:00
Jose Luis Duran
d55de30efd tools/build/make.py: Minor typo fix
If the object directory prefix does not exist, make.py previously exited
with a message indicating that the chosen prefix does not exit.

Reviewed by:	emaste
Pull request:	https://github.com/freebsd/freebsd-src/pull/1348
2024-07-27 23:04:24 -04:00
Bjoern A. Zeeb
d1bdc2821f Deprecate contigfree(9) in favour of free(9)
As of 9e6544dd6e contigfree(9) is no longer
needed and should not be used anymore.  We leave a wrapper for 3rd party
code in at least 15.x but remove (almost) all other cases from the tree.

This leaves one use of contigfree(9) untouched; that was the original
trigger for 9e6544dd6e and is handled in D45813 (to be committed
seperately later).

Sponsored by:	The FreeBSD Foundation
Reviewed by:	markj, kib
Tested by:	pho (10h stress test run)
Differential Revision: https://reviews.freebsd.org/D46099
2024-07-26 10:45:01 +00:00
Warner Losh
18cf1e5023 cross-build: Define DEFFILEMODE and ALLPERMS if not defined
GLIBC defines these, but MUSL does not. FreeBSD's bootstrap code uses
these defines, so define them if they aren't yet defined.

Co-authored-by:		Val Packett <val@packett.cool>
Sponsored by:		Netflix
Pull Request:		https://github.com/freebsd/freebsd-src/pull/1066
Differential Revision:	https://reviews.freebsd.org/D45375
2024-07-24 20:47:26 -06:00
Warner Losh
744991d495 cross-build: progname.c is used only on linux, so no ifdefs needed
The logic in the makefile ensures this is only present on Linux, so no
ifdef is needed. I overlooked comments to the effect in the original
pull request somehow.

Fixes:			0e03402139
Suggested by:		arichards, jrtc27
Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D45374
2024-07-24 20:47:26 -06:00
Warner Losh
4a0b7955fd cross-build: Move fcntl.h workaround to Linux specific file
Move the cdefs.h inclusion to the Linux specific file. Either place will
work, but it makes more sense to do it in the Linux specific file since
it's a Linux specific workaround.

Fixes:			4300e05361
Suggested by:		arichards, jrtc27
Sponsored by:		Netflix
Differential Revision:	https://reviews.freebsd.org/D45373
2024-07-24 20:47:26 -06:00
Gordon Bergling
32a9b95a87 stress2: Fix a typo in namecache2.sh
- s/inconsistancy/inconsistency/

MFC after:	3 days
2024-07-21 11:00:58 +02:00
Peter Holm
00266393cc stress2: Fix tests after the new default for newfs(8) is "SU" 2024-07-20 10:52:29 +02:00
Peter Holm
94e62a5f91 stress2: Exclude one more test 2024-07-19 09:55:39 +02:00
Jessica Clarke
e21e8c9180 tools/build: Unbreak cross build by providing stub ssp/ssp.h
We build arc4random.c on non-FreeBSD, which now wants the header for
__ssp_real.

Fixes:	d0b7445904 ("include: ssp: fortify <stdlib.h>")
2024-07-17 13:11:25 +01:00
Peter Holm
9c73f38cd3 stress2: Add a new test scenario. Update the exclude list 2024-07-16 06:47:28 +02:00
Warner Losh
e9ac41698b Remove residual blank line at start of Makefile
This is a residual of the $FreeBSD$ removal.

MFC After: 3 days (though I'll just run the command on the branches)
Sponsored by: Netflix
2024-07-15 16:43:39 -06:00
Wolfram Schneider
e880dd644f stale-symlink-buildworld.sh: a script to check for stale symlinks on a FreeBSD system
You can run the script before or after `make installworld'

You may also check your local ports with:

  env STALE_SYMLINK_BUILDWORLD_DIRS=/usr/local ./stale-symlink-buildworld.sh

PR: 276235
2024-07-07 12:59:20 +00:00
Peter Holm
12be19572a stress2: Add two test. Fix a typo while here 2024-07-04 09:14:45 +02:00
Peter Holm
ad99f0062b stress2: Added a new unionfs test scenario 2024-07-04 09:13:39 +02:00
Alexander Ziaee
088cc7d221 man filesystems: fix more xrefs after move to s4
Fixes: 1a720cbec5
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1282
2024-06-27 18:32:05 -06:00
Andrew Turner
4f351c1ddc tools/boot/universe.sh: Remove armv6 from a comment
It is in the process of being removed.

Reviewed by:	manu, emaste
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D45642
2024-06-20 09:26:20 +00:00
Andrew Turner
a67a0a6a20 nanobsd: Remove armv6 support
In preparation for removing armv6 remove it from nanobsd.

Reviewed by:	imp, emaste
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D45635
2024-06-20 09:26:06 +00:00
Peter Holm
d26c565597 stress2: Revert change accidentally added in ff4a72c159 2024-06-15 08:33:14 +02:00
Andrew Turner
bbdf32d94c nanobsd: Remove pre-armv6 support
Remove support for pre-armv6 from nanobsd. It was removed from FreeBSD
in 2020.

Reviewed by:	imp, emaste
Sponsored by:	Arm Ltd
Differential Revision:	https://reviews.freebsd.org/D45560
2024-06-12 11:49:13 +00:00
Peter Holm
ff4a72c159 stress2: Replace random() with arc4random() 2024-06-11 15:52:34 +02:00
Peter Holm
cb53f83d8a Revert "stress2: Replace rename() with arc4random()"
This reverts commit f65d0b18d9.

Misleading commit message
2024-06-11 15:51:21 +02:00
Peter Holm
f65d0b18d9 stress2: Replace rename() with arc4random() 2024-06-11 09:38:13 +02:00
Ed Maste
0e34d09930 Add WITHOUT_LLVM_BINUTILS src.conf description
Before FreeBSD 15 I plan to switch to LLVM_BINUTILS by default.  Add the
src.conf description now, for the benefit of downstream branches and
testing/CI.

PR:		258872 [exp-run]
Sponsored by:	The FreeBSD Foundation
2024-06-10 11:50:32 -04:00
Ed Maste
87e5b17c14 prepare-commit-msg: add 50 column marker
A common convention suggests a 50 column commit subject line (the first
line of the commit message).  Add a 50 column marker to the commit
message template

Reviewed by:	lwhsu
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D45538
2024-06-10 10:48:32 -04:00
John Baldwin
b0e7358bf8 cryptocheck: Don't treat OpenSSL errors as fatal
Abort the current test but keep running additional tests if OpenSSL
reports an error during a test.  This matches the behavior for other
tests such as an error from OCF.

Reviewed by:	markj
Sponsored by:	AFRL, DARPA
Differential Revision:	https://reviews.freebsd.org/D45279
2024-06-06 14:48:38 -07:00
John Baldwin
a2c88e0d47 git-arc: Use a helper function to fetch boolean config variables
Requested by:	markj
Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D45104
2024-06-06 14:45:30 -07:00
Alexander Ziaee
41d6858ebd git-arc.1: list width typo
Reviewed by:	mhorne
MFC after:	3 days
Fixes:	 	760be44702 ("git-arc: document "create" command options")
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1272
2024-06-04 14:46:46 -03:00
Peter Holm
005dd61dd6 stress2: Change fixed number of test loops to timed loops. This to
improve testing with qemu.
2024-06-04 09:39:40 +02:00
Warner Losh
b661d9e64d Revert "checkstyle9.pl: Add check for missing space between ) {"
This reverts commit 6bad7d2486.

Turns out this special case wasn't necessary, and this was already
detected and due to another error (running the script got dropped
from my experimental scripts), I hadn't noticed.

Sponsored by:		Netflix
2024-05-29 11:18:00 -06:00
Warner Losh
6bad7d2486 checkstyle9.pl: Add check for missing space between ) {
Sponsored by:		Netflix
2024-05-29 09:59:27 -06:00
Mark Johnston
c52ca7dd09 stress2: Don't run aesni.sh on non-x86 platforms
aesni.ko only exists on amd64 and i386, so on other platforms we are
just running geli.sh twice.

In fact, this test has little value anymore because aesni is included in
GENERIC, so it's always going to be used in preference to cryptosoft.

Reviewed by:	pho
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45366
2024-05-27 11:26:47 -04:00
Mark Johnston
568be71de3 stress2: Use the proper type for the getopt(3) return value
On arm platforms "char" is typically unsigned, in which case the test
"(c = getopt(...)) != -1" does not behave as desired.

Reviewed by:	pho
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D45365
2024-05-27 11:26:47 -04:00
Warner Losh
0e03402139 cross-build: This is not glibc specific, but Linux specific
Neither glibc nor musl define these interfaces, so provide them for all
Linux builds.

Sponsored by:		Netflix
Reviewed by:		val_packett.cool
Differential Revision:	https://reviews.freebsd.org/D45355
2024-05-26 11:39:27 -06:00
Warner Losh
3c5f0da510 cross-build: Define __*int*_t and include sys/cdefs.h
FreeBSD assumes that sys/types.h includes sys/cdefs.h, so add it here.
FreeBSD also needs __*int*_t defined for software we bootstrap (a lot of
it). GLIBC defines these, but musl does not, so we have to define them
here, even though it looks backwards. There's no good #define to key off
of, so use !defined GLIBC since on Linux defacto there's only two libc
implementations.

Co-authored-by:		Val Packett <val@packett.cool>
Sponsored by:		Netflix
Pull Request:		https://github.com/freebsd/freebsd-src/pull/1066
Reviewed by:		val_packett.cool
Differential Revision:	https://reviews.freebsd.org/D45354
2024-05-26 11:39:18 -06:00
Warner Losh
27326f895e cross-build: string.h uses mode_t, so we need sys/types.h
string.h defines strmode with a mode_t argument. POSIX states that one
must include sys/types.h to get mode_t, so do that here. This makes musl
happier. We know that sys/types.h will include sys/cdefs.h, so just
replace the latter with the former.

Co-authored-by:		Val Packett <val@packett.cool>
Sponsored by:		Netflix
Pull Request:		https://github.com/freebsd/freebsd-src/pull/1066
Reviewed by:		val_packett.cool
Differential Revision:	https://reviews.freebsd.org/D45353
2024-05-26 11:39:10 -06:00