aboutsummaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Remove objcopy from BINUTILS option descriptionsEd Maste2018-06-154-4/+4
| | | | | | | | | | | | As of r306649 objcopy is always ELF Tool Chain's elfcopy; binutils objcopy is never used. PR: 229046 MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=335210
* WITHOUT_NLS cleanup of more empty dirs.Sean Bruno2018-06-121-0/+158
| | | | | | | | | Reviewed by: emaste Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D15626 Notes: svn path=/head/; revision=335011
* Add ZFS+GPT EFI and LEGACY+EFI to rootgen.sh and installboot.shAllan Jude2018-06-092-2/+119
| | | | | | | | | Reviewed by: imp (maintainer) Sponsored by: Klara Systems Differential Revision: https://reviews.freebsd.org/D15700 Notes: svn path=/head/; revision=334888
* Change rootgen.sh to use the default ZFS boot environment nameAllan Jude2018-06-091-4/+4
| | | | | | | | | Reviewed by: imp (maintainer) Sponsored by: Klara Systems Differential Revision: https://reviews.freebsd.org/D15699 Notes: svn path=/head/; revision=334887
* Add missed libc++ entries to (Optional)ObsoleteFiles.incDimitry Andric2018-06-091-3/+3
| | | | | | | | | | Some of these were removed during the libc++ 5.0.0 import, others were added in the libc++ 6.0.0 import. MFC after: 3 days Notes: svn path=/head/; revision=334886
* Remove NLS support from BSD grepBaptiste Daroussin2018-06-061-10/+0
| | | | | | | | | | | | | | | | | | | GNU grep as in actually in base does not have any translations support compiled in, so no functionnality loss. We do support 193 locales in base, we will never catch up on that number of translation with bsd grep. Removing NLS support make bsd grep consistent with the other binaries in base which are not translated, and also reduce a little bit the code. Reviewed by: kevans Approved by: kevans Discussed with: kevans @BSDCan Differential Revision: https://reviews.freebsd.org/D15682 Notes: svn path=/head/; revision=334744
* makeroot.sh: allow duplicate entries even with -f <filelist>Ed Maste2018-05-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | makefs disallows duplicate entries unless the -D option is specified. Previously makeroot.sh enabled -D unless a filelist was provided via the -f options. The filelist logic creates an mtree manifest from the METALOG and the provided filelist by passing them through `sort -u`, so duplicates were not expected. However, duplicates can still occur when a directory appears in multiple packages -- for example, ./etc/pam.d type=dir uname=root gname=wheel mode=0755 ./etc/pam.d type=dir mode=0755 tags=package=runtime ./etc/pam.d type=dir mode=0755 tags=package=at ./etc/pam.d type=dir mode=0755 tags=package=ftp ./etc/pam.d type=dir mode=0755 tags=package=telnet For the purposes of makefs these directory entries are identical, but are of course not identical for sort -u. For now just leave the allow duplicates -D flag enabled. PR: 228606 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=334381
* src.conf: use more natural language for @generatedEitan Adler2018-05-261-2/+1
| | | | | | | Requested by: emaste Notes: svn path=/head/; revision=334247
* Remove extra space before parenthesis in src.conf(5)Rebecca Cran2018-05-251-1/+1
| | | | | | | | Reviewed by: eadler Differential Revision: https://reviews.freebsd.org/D15528 Notes: svn path=/head/; revision=334198
* Add missing file for WITH{OUT}_BSDINSTALEitan Adler2018-05-231-0/+1
| | | | | | | | PR: 227805 Submitted by: Dmitry Wagin <dmitry.wagin@ya.ru> Notes: svn path=/head/; revision=334082
* Add the text '@generated' to src.conf.5Eitan Adler2018-05-231-0/+2
| | | | | | | | | | This is a cross-tool approach to identifying generated code. Some tools, notably phabricator, handle this marker specially. See https://reviews.freebsd.org/differential/diff/42870/ for such an example. Notes: svn path=/head/; revision=334072
* Add a SPD cache to speed up lookups.Fabien Thomas2018-05-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | When large SPDs are used, we face two problems: - too many CPU cycles are spent during the linear searches in the SPD for each packet - too much contention on multi socket systems, since we use a single shared lock. Main changes: - added the sysctl tree 'net.key.spdcache' to control the SPD cache (disabled by default). - cache the sp indexes that are used to perform SP lookups. - use a range of dedicated mutexes to protect the cache lines. Submitted by: Emeric Poupon <emeric.poupon@stormshield.eu> Reviewed by: ae Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D15050 Notes: svn path=/head/; revision=334054
* intel-ucode-split: add -n flag to skip creating output filesEd Maste2018-05-221-33/+44
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=334046
* intel-ucode-split: incorporate review feedback, using asprintfEd Maste2018-05-171-10/+17
| | | | | | | | | | As reported by delphij in review D15443 asprintf cleans this up a little by avoiding hardcoded buffer sizes. Reported by: delphij Notes: svn path=/head/; revision=333742
* Retire vxge(4).Sean Bruno2018-05-178-3722/+0
| | | | | | | | | | | | | | | | This driver was merged to HEAD one week prior to Exar publicly announcing they had left the Ethernet market. It is not known to be used and has various code quality issues spotted by Brooks and Hiren. Retire it in preparation for FreeBSD 12.0. Submitted by: kbowling Reviewed by: brooks imp Relnotes: yes Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D15442 Notes: svn path=/head/; revision=333717
* Add intel-ucode-split to tools READMEEd Maste2018-05-161-0/+1
| | | | Notes: svn path=/head/; revision=333665
* intel-ucode-split: list platform ids based on processor_flagsEd Maste2018-05-161-1/+11
| | | | | | | | | | | The Intel CPU "Platform Id" is a 3-bit integer reported by a given MSR. Intel microcode updates have an 8-bit field to indicate Platform Id compatibility - one bit in the mask for each of the possible Platform Id values. To simplify interpretation, report the Platform Id mask also as a list. Notes: svn path=/head/; revision=333661
* intel-ucode-split: exit on unknown ucode header versionEd Maste2018-05-161-1/+3
| | | | Notes: svn path=/head/; revision=333660
* intel-ucode-split: add a -v verbose flagEd Maste2018-05-161-6/+23
| | | | | | | | | And be quiet by default. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=333657
* Add a tool to split Intel microcode into one file per Platform IdEd Maste2018-05-152-0/+175
| | | | | | | | | | | | | | | | | | | | | | Intel now releases microcode updates in files named after <family>-<model>-<stepping>. In some cases a single file may include microcode for multiple Platform Ids for the same family, model, and stepping. Our current microcode update tooling (/usr/sbin/cpucontrol) only processes the first microcode update in the file. This tool splits combined files into individual files with one microcode update each, named as <family>-<model>-<stepping>.<platform_id_mask>. Adding this to tools/ for experimentation and testing. In the future we'll want to have cpucontrol or other tooling work directly with the Intel-provided microcode files. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D15433 Notes: svn path=/head/; revision=333649
* TypoSevan Janiyan2018-05-131-1/+1
| | | | | | | | | Submitted by: jrm@ Approved by: bcr (mentor) Differential Revision: https://reviews.freebsd.org/D14836 Notes: svn path=/head/; revision=333588
* Rename all Unbound binaries and man pages from unbound* to local-unbound*.Dag-Erling Smørgrav2018-05-121-9/+9
| | | | | | | PR: 222902 Notes: svn path=/head/; revision=333573
* Add a test for vm86(2), simple to use and diagnose.Konstantin Belousov2018-05-123-0/+171
| | | | | | | | MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=333534
* Add the test program to examine CPU behaviour for pop ss issueKonstantin Belousov2018-05-101-0/+183
| | | | | | | | | | | CVE-2018-8897. Requested by: emaste Sponsored by: The FreeBSD Foundation MFC after: 3 days Notes: svn path=/head/; revision=333460
* Remove 'All Rights Reserved'Warner Losh2018-05-0922-22/+21
| | | | | | | | Remove this from some of the iXsystems stuff I did. OK'd by kmoore at iXsystems Notes: svn path=/head/; revision=333435
* nxge(4):Sean Bruno2018-05-088-3777/+0
| | | | | | | | | | | | | Remove nxge(4) and associated man page and tools in FreeBSD 12.0. Submitted by: kbowling Reviewed by: brooks Relnotes: yes Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D1529 Notes: svn path=/head/; revision=333388
* bsdgrep: annihilate our in-tree TRE, previously disabled by defaultKyle Evans2018-05-042-8/+0
| | | | | | | | | | | | | | | | It was an old TRE that had plenty of bugs and no performance gain over regex(3). I disabled it by default in r323615, and there was some confusion about what the knob does- likely due to poor naming on my part- to the tune of "well, it sounds like it should speed things up" (mentioned by multiple people). To compound this, I have no intention of maintaining a second regex implementation. If someone would like to step up and volunteer to maintain a lean-and-mean implementation for grep, this is OK, but we have very few volunteers to maintain even our primary regex implementation. Notes: svn path=/head/; revision=333236
* Retire ixgb(4)Sean Bruno2018-05-027-27/+0
| | | | | | | | | | | | | | This driver was for an early and uncommon legacy PCI 10GbE for a single ASIC, Intel 82597EX. Intel quickly shifted to the long lived ixgbe family. Submitted by: kbowling Reviewed by: brooks imp jeffrey.e.pieper@intel.com Relnotes: yes Sponsored by: Limelight Networks Differential Revision: https://reviews.freebsd.org/D15234 Notes: svn path=/head/; revision=333173
* Retire lmc(4)Ed Maste2018-05-011-21/+0
| | | | | | | | | | | | | | This driver supports legacy, 32-bit PCI devices, and had an ambiguous license. Supported devices were already reported to be rare in 2003 (when an earlier version of the driver was removed in r123201). Reviewed by: rgrimes Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D15245 Notes: svn path=/head/; revision=333144
* Use M. Warner Losh everywhere on my copyrights.Warner Losh2018-05-0121-21/+21
| | | | | | | Remove 'All Rights Reserved' where I can. Notes: svn path=/head/; revision=333143
* Use a script wrapper for <compress>grepBaptiste Daroussin2018-04-251-15/+0
| | | | | | | | | | | | | | | | | | | | | Import the wrapper script from zstdgrep (written by wiz@netbsd.org) Modify it to support more than just zstd (adding support for gzip, lzma, xz and bzip2) Write a simple manpage dedicated for it. Only use that new wrapper both for gnu grep and bsd grep Next step will be removing code related to compression format from bsdgrep Reviewed by: kevans Approved by: kevans MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D15193 Notes: svn path=/head/; revision=332993
* Fix incorrect output for a file consisting of a single full-sizeKirk McKusick2018-04-193-54/+76
| | | | | | | | | | | | | | | block followed by a discontiguous fragment. Add checks for unallocated inodes and inodes with unknown mode types. Cleanup variable declarations by changing from type `int' to types like ufs_lbn_t, ufs2_daddr_t, etc. Reported by: bde Notes: svn path=/head/; revision=332798
* Add sortbench.Brooks Davis2018-04-194-0/+366
| | | | | | | | | | | | This is a set of benchmarks of qsort, mergesort, heapsort, and optionally wikisort and a script to run them. Submitted by: Miles Fertel <milesfertel@college.harvard.edu> Sponsored by: Google Summer of Code 2017 Differential Revision: https://reviews.freebsd.org/D12677 Notes: svn path=/head/; revision=332796
* In addition to the existing argument format:Kirk McKusick2018-04-182-7/+32
| | | | | | | | | | | | | | | | | | | | prtblknos filesystem_device inode ... add an additional argument format: prtblknos file which is more convenient than figuring out the filesystem and inode number for "file". When given a list of multiple inodes, rather than exiting the program on an error with one of them, skip over it and continue with the next one. Submitted by: bde Notes: svn path=/head/; revision=332742
* Check the inode type and only attempt to print block lists forKirk McKusick2018-04-181-10/+59
| | | | | | | | | | | | | regular files, directories, and symbolic links that require external storage. Correct the handling of files with holes and files that have one or more large blocks and end with a fragment. Reported by: bde Notes: svn path=/head/; revision=332741
* Remove mention of tools/recoverdisk, now in sbinEd Maste2018-04-181-1/+0
| | | | | | | | PR: 227570 MFC after: 3 days Notes: svn path=/head/; revision=332673
* Add (intmax_t) type casts to some printf parameters to keep i386 happy.Kirk McKusick2018-04-081-1/+2
| | | | Notes: svn path=/head/; revision=332268
* Split tools/diag/prtblknos into two parts:Kirk McKusick2018-04-083-153/+169
| | | | | | | | | | | | | | | | main.c - opens disk and processes the argument list of inodes to be printed prtblknos.c - prints out the list of blocks used by an inode This change allows the fsdb program to import prtblknos() to use when printing out the set of blocks used by an inode. This program was switched to using the libufs library to ease its integration with fsdb and any other filesystem utility that might want to use it in the future. Notes: svn path=/head/; revision=332265
* cryptocheck: Add Chacha20 cipher to toolConrad Meyer2018-03-291-0/+3
| | | | Notes: svn path=/head/; revision=331726
* cryptotest: Add chacha20 cipherConrad Meyer2018-03-291-1/+3
| | | | Notes: svn path=/head/; revision=331725
* cryptotest: Add blake2 hashes to toolConrad Meyer2018-03-271-0/+5
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=331628
* Update the license to note my work on cryptocheck was sponsored.John Baldwin2018-03-261-1/+26
| | | | | | | Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=331597
* lua-lint: Hint that try_include is now an accepted globalKyle Evans2018-03-261-1/+1
| | | | | | | try_include was added in r331563. Notes: svn path=/head/; revision=331565
* cryptocheck: Add support for Blake2{B,S} hashesConrad Meyer2018-03-232-1/+10
| | | | | | | | | | Since they are not yet present in the version of openssl in base, this will require installing the ports openssl. Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=331418
* Bring in JHB's cryptocheck toolConrad Meyer2018-03-232-31/+1183
| | | | | | | | | | | | | | | | | It can be used to validate basic algorithm correctness on a variety of inputs, by comarison to openssl. While here, add some sanity to the crypto/Makefile. The tool may not be perfect, but getting it in tree where collaboration can happen is a nice first step. The pace of development outside of svn seems to have slowed down mid-2017. Obtained from: github bsdjhb/freebsd:cryptocheck Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=331417
* Add kernel and userspace code to dump the firmware state of supportedHans Petter Selasky2018-03-082-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | ConnectX-4/5 devices in mlx5core. The dump is obtained by reading a predefined register map from the non-destructive crspace, accessible by the vendor-specific PCIe capability (VSC). The dump is stored in preallocated kernel memory and managed by the mlx5tool(8), which communicates with the driver using a character device node. The utility allows to store the dump in format <address> <value> into a file, to reset the dump content, and to manually initiate the dump. A call to mlx5_fwdump() should be added at the places where a dump must be fetched automatically. The most likely place is right before a firmware reset request. Submitted by: kib@ MFC after: 1 week Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=330653
* lua-lint: Whitelist cli_execute_unparsed as a globalKyle Evans2018-03-071-1/+2
| | | | Notes: svn path=/head/; revision=330621
* Add --globals printc to lua-lintKyle Evans2018-03-021-1/+1
| | | | | | | | We provide a global 'printc' as of r330282; make luacheck aware of this fact so that we can use it without complaints. Notes: svn path=/head/; revision=330286
* Add descriptions for recently added loader optionsKyle Evans2018-03-014-0/+8
| | | | Notes: svn path=/head/; revision=330254
* Back out r330252; will reapply with an actual commit messageKyle Evans2018-03-014-8/+0
| | | | Notes: svn path=/head/; revision=330253