aboutsummaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* tools: fix WITHOUT_LOADER_GELI typo in universe.shQuentin Thébault25 hours1-1/+1
| | | | | | | Signed-off-by: Quentin Thébault <quentin.thebault@defenso.fr> Reviewed by: emaste Sponsored by: Defenso Pull Request: https://github.com/freebsd/freebsd-src/pull/2011
* ifinfo: improve output of hwassist valueTimo Völker44 hours1-1/+47
| | | | | | | | | In addition to print the hexadecimal number hwassist, also print the symbolic names of the corresponding CSUM_* flags. Reviewed by: tuexen MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D55055
* git-arc.1: Refer to new port nameJoseph Mingrone4 days1-1/+1
| | | | | | | | | The git-arc script was moved from devel/freebsd-git-devtools to devel/freebsd-git-arc. Reviewed by: ziaee Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D55127
* OptionalObsoleteFiles: Add etc/zfs/compatibility.dArtem Bunichev6 days1-0/+58
| | | | | | | | | | | | | If the world is built and installed with WITHOUT_ZFS, then make -DBATCH_DELETE_OLD_FILES delete-old-dirs will give the error: > rmdir: /etc/zfs: Directory not empty because /etc/zfs/compatibility.d is still there. While we're here, clean out /usr/share/zfs as well. Co-authored-by: kevans Differential Revision: https://reviews.freebsd.org/D54758
* Remove additional libtpool and libuutil-related filesEnji Cooper6 days1-4/+0
| | | | | | | | This change removes additional library files and tests orphaned in the commit referenced below. MFC with: 8b78d412a Fixes: 8b78d412a ("zfs: world changes after 89f729dcc merge")
* usr.bin/tftp: remove tests when MK_TFTP=noEnji Cooper7 days1-0/+3
| | | | | | | These tests require the tftp client, which is not installed when `MK_TFTP=no`. Remove them when that's not true. MFC after: 1 week
* usr.bin/factor: remove tests when MK_GAMES=noEnji Cooper7 days1-0/+4
| | | | | | | factor(1) is only installed when MK_GAMES != no. Ergo, remove the tests when that's not true. MFC after: 1 week
* tftpd: remove tests when MK_TFTP=noEnji Cooper7 days1-0/+3
| | | | MFC after: 1 week
* Remove bsnmpd tests when MK_BSNMP == noEnji Cooper7 days1-0/+3
| | | | MFC after: 1 week
* Remove example tests when MK_EXAMPLES=noEnji Cooper9 days1-0/+26
| | | | | | | | | | | This change cleans up example tests for atf, googletest, plain, and TAP when MK_EXAMPLES=no. Not having this in results `kyua test -k /usr/tests/share/examples/Kyuafile` being broken on a host where the content in that directory tree is stale. I ran into that case because at some point in time in the past I had specified `MK_GOOGLETEST=no` one of my dev instances. MFC after: 1 week
* nanobsd: embedded: Stub out experimental functionsJose Luis Duran12 days1-0/+7
| | | | | | | | Stub out both experimental functions introduced in ecc039be7fdd when doing embedded builds. Fixes: ecc039be7fdd ("nanobsd: Add a NO_ROOT build option") MFC after: 3 days
* src.conf.5: Cross-reference uname(1) manual pageArtem Bunichev12 days2-2/+6
| | | | | Reviewed by: emaste, ziaee Differential Revision: https://reviews.freebsd.org/D54688
* nanobsd: Fix _populate_part()Jose Luis Duran2026-01-251-5/+4
| | | | | | | | | - Avoid unnecessary subshell execution - Fix removing the temporary and empty /cfg directory - Do not remove the generated metalog file for /cfg or /data partitions Fixes: 61ac7309c366 ("nanobsd: Add a provisional populate_part function") MFC after: 3 days
* stress2: Added two new test scenariosPeter Holm2026-01-242-0/+185
|
* stress2: Added two syzkaller reproducers. Updated the exclude filePeter Holm2026-01-243-0/+531
|
* nanobsd: Use mtree -C to produce the metalogJose Luis Duran2026-01-241-3/+3
| | | | | | | | | | | | | | | | Prefer an mtree -C output, which is guaranteed to be mtree-compatible. Add "gname", "uname", and "tags" to the default keyword set, while removing "size" and "time", the latter being set on kernel file entries and taking precedence over makefs -T (when paired with -F). As a side effect, this produces a cleaner file with sorted keywords. Note that passing "-u" to sort in order to pipe to mtree is no longer necessary, but we'll do it out of habit. Reviewed by: imp MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D54854
* src.conf.5: Add WITHOUT_SOUND descriptionEd Maste2026-01-201-0/+4
| | | | | Fixes: f74f891581bc ("src.opts: Introduce MK_SOUND") Sponsored by: The FreeBSD Foundation
* OptionalObsoleteFiles.inc: Treat compat runtime loaders as librariesJohn Baldwin2026-01-201-1/+1
| | | | | | | | | | Binaries require the runtime loader to use shared libraries, and removing the runtime loader in `make delete-old` while leaving the libraries around makes it impossible to use those shared libraries. Treat rtld as a de facto dependency of shared libraries to ensure it is not removed until the corresponding shared libraries are removed. Differential Revision: https://reviews.freebsd.org/D52210
* nanobsd: Avoid unnecessary subshell executionJose Luis Duran2026-01-201-2/+2
| | | | | | | | | | Mimic c99bb5747f5e ("nanobsd: minor formatting cleanup") and cleanup _create_code_slice(), somehow I missed it when rebasing. No functional change intended. Fixes: ecc039be7fdd ("nanobsd: Add a NO_ROOT build option") MFC after: 3 days
* nanobsd: Use NANO_DEF_{UNAME,GNAME}Jose Luis Duran2026-01-201-2/+2
| | | | | | | | Prefer to use NANO_DEF_UNAME and NANO_DEF_GNAME instead of a fixed "root/wheel". Fixes: 61ac7309c366 ("nanobsd: Add a provisional populate_part function") MFC after: 3 days
* krb5: Expose missing symbolsCy Schubert2026-01-202-2/+9
| | | | | | | | | | | | | | | | | | | | | Add symbols found in the port but not in base. This requires replacing a shared libkrb5profile.so with libkrb5profile.a (with -fPIC so it can be used by shared libraries). We do this by making libkrb5profile INTERNALLIB. Base currently has libkrb5profile in a shared library. The patch moves those functions to the various "consumer" libraries as the port does. Symbols that should be in the other libraries are in libkrb5profile.so. This is causing some ports issues. PR: 291695 Reported by: michaelo, markj, Chris Inacio <inacio@andrew.cmu.edu> Tested by: michaelo Fixes: ae07a5805b19 Reviewed by: michaelo (previous version) MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D54323
* nanobsd: Fix typosJose Luis Duran2026-01-173-4/+4
| | | | MFC after: 1 week
* nanobsd: Add a NO_ROOT build optionJose Luis Duran2026-01-173-9/+151
| | | | | | | | | | | | | | Add a -U option to build NanoBSD images without root privileges. It relies on makefs/mkimg and metalog (mtree) files, similar to what release engineering uses to build images. Keep the current way to build NanoBSD images untouched. Once this method gets battle tested, it may be used to build images as root as well. Reviewed by: imp, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48793
* nanobsd: Add a provisional populate /data functionJose Luis Duran2026-01-171-0/+4
| | | | | | | | | | Add a provisional _populate_data_part function. It populates the optional /data partition, but using makefs(8), which is more in-line with what release engineering uses to create images. Reviewed by: emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48792
* nanobsd: Add a provisional populate /cfg functionJose Luis Duran2026-01-171-0/+4
| | | | | | | | | | Add a provisional _populate_cfg_part function. It populates the /cfg partition, but using makefs(8), which is more in-line with what release engineering uses to create images. Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48791
* nanobsd: Add a provisional populate_part functionJose Luis Duran2026-01-171-0/+44
| | | | | | | | | | | | | | | Add a _populate_part(ition) function that mimics the current populate_slice. Note however, that this function is not backward-compatible with populate_slice, hence the different name. A "_" is prepended to signal that it still experimental. It can be used to populate the /cfg and /data partition using makefs(8). Initially not wired. Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48790
* nanobsd: Add a nano_makefs functionJose Luis Duran2026-01-172-0/+25
| | | | | | | | | | | | | | | Add a NANO_MAKEFS global variable with options equivalent to NANO_NEWFS to be used with a nano_makefs function for creating images. Also add a function that adjusts the code size calculation, so makefs -s won't error about the minimum rounded size. Ideally this shim should be removed, therefore the suspicious _xxx prefix. Initially not wired. Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48789
* nanobsd: Switch the / partition in fstabJose Luis Duran2026-01-171-0/+16
| | | | | | | | | Introduce a function tgt_switch_root_fstab() that switches the root partition in the target file system tab file. Initially not wired. Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48788
* nanobsd: Add a NANO_TIMESTAMP variableJose Luis Duran2026-01-171-0/+5
| | | | | | | | | | | Initially not wired, this variable will hold the time stamp for all the files of the final image. By default uses the last commit time stamp, if empty, it will use the start time of the NanoBSD build. Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48787
* nanobsd: Add a function to create directoriesJose Luis Duran2026-01-171-0/+19
| | | | | | | | | Add tgt_dir(), that creates and adds directory entries to the metalog specification file. Initially not wired. Reviewed by: imp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48786
* nanobsd: Prefer tgt_touch() instead of touchJose Luis Duran2026-01-171-1/+1
| | | | | | | | Prefer tgt_touch() as it adds an entry to the metalog file. Reviewed by: imp, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48785
* nanobsd: Set the proper mode for /tmpJose Luis Duran2026-01-171-1/+1
| | | | | | | | | The correct mode for /tmp is 1777, keep the same mode when symlinking it to /var/tmp. Reviewed by: imp, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48784
* nanobsd: Prefer tgt_dir2symlink() to create symlinksJose Luis Duran2026-01-171-1/+1
| | | | | | | | | Prefer tgt_dir2symlink() to create symlinks, as it has the benefit of appending the entry to the metalog file. Reviewed by: imp, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48783
* nanobsd: Make tgt_dir2symlink() take a modeJose Luis Duran2026-01-171-5/+6
| | | | | | | | | | Make tgt_dir2symlink() take an optional third argument that sets the mode. By default, assume an absolute mode of 0777, to maintain backward compatibility. Reviewed by: imp, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48782
* nanobsd: Add uname/gname to the specJose Luis Duran2026-01-171-2/+8
| | | | | | | | | | | Also include the default NanoBSD uname/gname in the specification file. By default, NANO_DEF_UNAME and NANO_DEF_GNAME map to root and wheel respectively. Reviewed by: imp, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48781
* nanobsd: Prefer nano_umount to umountJose Luis Duran2026-01-172-4/+4
| | | | | | | | | | | | | nano_umount[^1] is a convenience routine used to override issues with umount(8) without changing the nanobsd.sh source code. There were a few places where it was not being used. [^1]: Introduced in 6d12b61a88a6 ("Add a routine for easy workaround any umount issues w/o hacking nanobsd.sh.") Reviewed by: imp, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D48780
* libc: drop NO_FP_LIBC supportXin LI2026-01-171-3/+0
| | | | | | | | | | | NO_FP_LIBC was added in 2004 to save space by disabling FP support in *printf()/*scanf(). The size benefit is negligible on modern systems and conflicts with assumptions made by current base utilities. Remove the option and always build libc with floating-point support. Reported by: Oskar Holmlund <eovholmlund at gmail com> MFC after: 2 weeks
* exterr: Sort output from make_libc_exterr_cat_filenames.shMark Johnston2026-01-161-1/+1
| | | | | | | | | Otherwise the script may permute the order of entries in the file since find(1) output is not stable. Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54669
* depend-cleanup.sh: Clean up the old arm64 memset.SAndrew Turner2026-01-151-0/+6
| | | | | | | | | | This has moved from a generated file in objdir to the source tree. Remove the old file and any .depend files that reference it. Reviewed by: bapt (via IRC) Fixes: 41ccf82b29f3 ("libc/aarch64: Use MOPS implementations of memcpy/memmove/memset where availble") Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D54729
* ncurses: merge update to ncurses 6.6Baptiste Daroussin2026-01-141-3/+0
| | | | | | | 6.6 is ABI compatible with 6.5 (tested with abidiff) Remove html documentation to ease updates MFC After: 1 month
* src.opts: Introduce MK_SOUNDChristos Margiolis2026-01-122-0/+14
| | | | | | | | PR: 291853 Sponsored by: The FreeBSD Foundation MFC after: 1 week Reviewed by: zarychtam_plan-b.pwste.edu.pl, markj Differential Revision: https://reviews.freebsd.org/D54456
* tools: remove powerpcspeMinsoo Choo2026-01-092-5/+1
| | | | | | | | | | | | As reported on the freebsd-announce mailing list[1] FreeBSD is continuing to retire 32-bit support. Remove powerpcspe from boot test tools. [1] https://lists.freebsd.org/archives/freebsd-announce/2024-February/000117.html Signed-off-by: Minsoo Choo <minsoochoo0122@proton.me> Reviewed by: jhibbits, emaste Pull request: 698d3c98d8f5814f705908d5bc6d930e3d4c4eda
* cam: Dtrace scripts to help diagnose weird thingsWarner Losh2026-01-093-0/+670
| | | | | | | | | | These are sample dtrace scripts that likely need to be modified for whatever problem you are chasing. Unfortuneately, you have to read the driver extensively to understand them or how to use them. But studying the completion routine of mpr/mps will help understand many of the error and recovery paths. Sponsored by: Netflix
* tools/cam: Start to add the testing tools for CAMWarner Losh2026-01-082-0/+98
| | | | | | | | | | | | Create a directory for testing tools arond CAM. These are snippets of what will eventually be camio. At the moment, it was written using fbt traces. This is OK, but fragile, so they need to be re-written with the cam provider. cam_all_but_scsi.d is the first step. It shows how to do this with the new cam dtrace provider. Sponsored by: Netflix Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D54472
* Extend the script to collect gprof dataGeorge V. Neville-Neil2026-01-081-4/+27
| | | | While we're at it, switch to simple waiting from communicate() calls.
* Split counting from sampling.George V. Neville-Neil2026-01-061-4/+21
|
* Correct the data collection arguments. Add proper tempdirs.George V. Neville-Neil2026-01-061-3/+6
|
* git-arc: Try to improve documentationMark Johnston2026-01-052-113/+64
| | | | | | | | | | | | | | | When I originally wrote git-arc, the usage string was the documentation. Later, a man page was added, largely copied from the usage string. Over time they have diverged slightly. It is silly to have two copies of the same information, so let's make the man page the source of truth. While here, document some options for git-arc-patch and rewrite a few sentences here and there in a way that I hope is clearer. Reviewed by: ziaee, ngie, adrian Differential Revision: https://reviews.freebsd.org/D54405
* git-arc: Try to make patching more usefulMark Johnston2026-01-051-9/+70
| | | | | | | | | | | | | | | | Add a raw mode, which fetches the patch file and applies it manually rather than using arc patch. This is handy because arc patch will always try to fetch your remotes if it can't find the base commit in your repo (even if you ask it not to make a commit). This is basically unusable in some of my workspaces where I have 20+ remotes configured, some of which may be unreachable. Add a stack mode, which causes git-arc to recursively apply parent revisions, going up the patch stack. Thus, to apply a full patch stack, just apply the final patch with -s. Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D54403
* Start adding an exercise mode for programs under test.George V. Neville-Neil2026-01-051-9/+24
| | | | | In exercise mode we collect data for every available counter on a program and keep all of that in a directory in /tmp.