summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Explicitly return None for negative event indices. Prior to this,jhb2014-09-301-1/+1
| | | | | | eventat(-1) would return the next-to-last event causing the back button to cycle back to the end of an event source instead of stopping at the start.
* Import pjdfstest from ↵ngie2014-09-24212-10470/+0
| | | | | | | | | | | | | | | | | | | | ^/vendor/pjdfstest/abf03c3a47745d4521b0e4aa141317553ca48f91 - Remove tools/regression/pjdfstest - Add upgrade directions for contrib/pjdfstest - Add a note to UPDATING for the move (the reachover Makefiles are coming soon) Functional differences: - ftruncate testcases are added from upstream (github) Non-functional differences: - The copyright for the project has been updated to 2012 - pjd's contact information has been updated Discussed with: -testing, jmmv, pjd MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Don't install /etc/rc.d/keyserv unless MK_OPENSSL == yesngie2014-09-231-3/+3
| | | | Sponsored by: EMC / Isilon Storage Division
* Ignore a test program which doesn't compile at the moment. It will bemarkj2014-09-211-1/+2
| | | | addresed properly when integrating the DTrace tests with Kyua.
* Don't install /etc/rc.d/ftp-proxy unless MK_PF == yesngie2014-09-201-0/+1
| | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Don't install /etc/rc.d/rwho unless MK_RCMDS == yesngie2014-09-201-0/+1
| | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Use 'cc' for the C compiler instead of 'gcc'.will2014-09-181-1/+1
| | | | | | MFC after: 1 week Sponsored by: Spectra Logic MFSpectraBSD: 1079507 on 2014/07/24
* Use a devd event to start hv_kvpd instead of doing so in rc.d script.delphij2014-09-171-1/+1
| | | | | | | | This is cleaner and eliminates the unneeded startup of KVP daemon on systems that do not run as a Hyper-V guest. Submitted by: hrs X-MFC-with: 271493, 271688, 271699
* Import HyperV Key-Value Pair (KVP) driver and daemon code by Microsoft,delphij2014-09-133-0/+12
| | | | | | | | | | | | | | many thanks for their continued support of FreeBSD. While I'm there, also implement a new build knob, WITHOUT_HYPERV to disable building and installing of the HyperV utilities when necessary. The HyperV utilities are only built for i386 and amd64 targets. This is a stable/10 candidate for inclusion with 10.1-RELEASE. Submitted by: Wei Hu <weh microsoft com> MFC after: 1 week
* Fix ACL tests to correctly work with ZFS; previous version used wrongtrasz2014-09-123-3/+3
| | | | | | | | paths. PR: 191545 MFC after: 1 week Sponsored by: The FreeBSD Foundation
* Conditionalize build of etcupdate(8) on MK_RCS. Since etcupdate callsasomers2014-09-102-1/+5
| | | | | | | | | merge(1), which is part of the RCS package, it must not be installed if WITHOUT_RCS update is set. Otherwise, it will produce confusing errors. CR: https://reviews.freebsd.org/D691 MFC after: 1 week Sponsored by: Spectra Logic
* Add diagnostic printfs and disable test # 4 on i386ngie2014-09-101-0/+9
| | | | | | | | Reviewed by: jmmv, rpaulo MFC after: 3 days Phabric: D749 PR: 191676 Sponsored by: EMC / Isilon Storage Division
* Expand the tests structure in test_small(..) to workaround thengie2014-09-091-19/+14
| | | | | | | | | "initializer not constant" warning with gcc Approved by: jmmv (mentor) MFC after: 3 days Phabric: D744 Sponsored by: EMC / Isilon Storage Division
* Be ANSI-C compliant when defining CX_LIMITED_RANGE #pragmangie2014-09-092-2/+2
| | | | | | | | | This mutes warnings with clang Approved by: rpaulo (mentor) Reviewed by: das, kargl (both as part of a larger patch) Phabric: D742 Sponsored by: EMC / Isilon Storage Division
* Avoid rs(1) hitting LINE_MAX with custom trees that have large dependencies.bdrewery2014-09-081-3/+3
|
* Fix debug output that has erroneously been committed with the last update.se2014-09-041-1/+1
| | | | | Obtained from: Jan Beich MFC after: 3 days
* Import a hackish tool I use to examine the skew of the TSC acrossjhb2014-09-032-0/+203
| | | | | | CPUs in a system. The tool queries the kernel for its set of CPUs and compares TSC values on each of the additional CPUs to the first CPU in turn. It then outputs a table of simple statistics.
* Final patches to the tools used to convert syscons keymaps for use withse2014-09-012-4/+4
| | | | | | vt. MFC after: 3 days
* add scripts for generating a diff from p4...jmg2014-08-272-0/+61
| | | | | | | | | | | awkdiff is the script from scottl that he got from ken a long time ago... It no longer lives in his home dir, so give it a new home... This does simple massaging of p4 output to create a useful diff... The script p4diffbranch will create a diff that includes new and deleted files unlike the normal diff2 -b command... So will be useful for extracting patches from p4... It does take a changeset that will be used to diff against...
* Update these to make them actually compile!adrian2014-08-252-4/+5
| | | | | | Tested: * cross compilation to MIPS
* Allow it to compile again.adrian2014-08-251-2/+2
|
* Modify a few output file names as used with vt.se2014-08-211-2/+2
| | | | MFC after: 3 days
* The conversion tools have been further improved and some erroneousse2014-08-203-53/+94
| | | | | | | | | | | | | | | | conversions have been detected and fixed. It is now possible to add options after the encoding in the parameter list for convert-keymap.pl. This is currently used to selectively enable interpretation of the ISO8859-1 currency symbol as the Euro sign found in ISO5589-15, or to add a Yen symbol in place of '\' for specific Japanese keyboards. The option are appended to the parameter list, as in e.g. "convert-keymap.pl german.iso.kbd ISO5589-1 EURO". The options are appended to the encoding in the form "+EURO" or "+YEN" in KBDFILES.map, to keep the meaning of the columns intact. MFC after: 3 days
* Fix further conversion errors found while testing the converted keymaps.se2014-08-202-8/+25
| | | | MFC after: 3 days
* Don't stop other legs of a parallel build due to a failure in make_check.ian2014-08-201-0/+3
| | | | | The whole point is to see if there's any failure, which is handled by building a newer version of make.
* Add missing WITHOUT_CUSE file.hselasky2014-08-191-0/+2
|
* Revert r267233 for now. PIE support needs to be reworked.bdrewery2014-08-191-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | 1. 50+% of NO_PIE use is fixed by adding -fPIC to INTERNALLIB and other build-only utility libraries. 2. Another 40% is fixed by generating _pic.a variants of various libraries. 3. Some of the NO_PIE use is a bit absurd as it is disabling PIE (and ASLR) where it never would work anyhow, such as csu or loader. This suggests there may be better ways of adding support to the tree. Many of these cases can be fixed such that -fPIE will work but there is really no reason to have it in those cases. 4. Some of the uses are working around hacks done to some Makefiles that are really building libraries but have been using bsd.prog.mk because the code is cleaner. Had they been using bsd.lib.mk then NO_PIE would not have been needed. We likely do want to enable PIE by default (opt-out) for non-tree consumers (such as ports). For in-tree though we probably want to only enable PIE (opt-in) for common attack targets such as remote service daemons and setuid utilities. This is also a great performance compromise since ASLR is expected to reduce performance. As such it does not make sense to enable it in all utilities such as ls(1) that have little benefit to having it enabled. Reported by: kib
* Add support for -X, which installs the native cross tools for qemuimp2014-08-191-1/+21
| | | | operations. Doesn't install qemu nor setup the jail, yet.
* Minor fixes to convert-keymap.pl (conversion of 8bit characters in the formse2014-08-182-12/+12
| | | | | | | 'x' with high bit set) and to KBDFILES.map (fix encodings and comment out a few redundant keymap files). MFC after: 3 days
* Import the tools used to convert the keymap files from SYSCONS (in localese2014-08-185-0/+469
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | dependent encoding) to NEWCONS (Unicode). The file "LANG.map" is used to convert INDEX.keymaps. It has 3 columns: - the language ID as used in the source file - the language ID to be used in the generated file (e.g. "iw" -> "he") - the encoding of the menu texts for this language The conversion result is written to STDOUT. The file "KBDFILES.map" is used to batch convert keymap files. It's columns are: - the encoding used for the keymap sounce file - the name of the source file - the name of the generated file The output files are created in the TEMP sub-directory of the vt keymap directory, in order to preserve (possibly uncommitted) keymap files in /usr/src/share/vt/keymaps. The convert-keymap.pl script can be directly executed by passing the source file name and the encoding on the command line. It writes to STDOUT and generates hex Unicode codepoints by default. (This can be changed to decimal in the script.) While written for the one-time conversion of the SYSCONS keymaps into the format required for NEWCONS, I think these tools may be useful for easy conversion of possible further SYSCONS keymap files, that have not been committed to the source tree.
* Update to the current version of netmap.luigi2014-08-162-35/+177
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Mostly bugfixes or features developed in the past 6 months, so this is a 10.1 candidate. Basically no user API changes (some bugfixes in sys/net/netmap_user.h). In detail: 1. netmap support for virtio-net, including in netmap mode. Under bhyve and with a netmap backend [2] we reach over 1Mpps with standard APIs (e.g. libpcap), and 5-8 Mpps in netmap mode. 2. (kernel) add support for multiple memory allocators, so we can better partition physical and virtual interfaces giving access to separate users. The most visible effect is one additional argument to the various kernel functions to compute buffer addresses. All netmap-supported drivers are affected, but changes are mechanical and trivial 3. (kernel) simplify the prototype for *txsync() and *rxsync() driver methods. All netmap drivers affected, changes mostly mechanical. 4. add support for netmap-monitor ports. Think of it as a mirroring port on a physical switch: a netmap monitor port replicates traffic present on the main port. Restrictions apply. Drive carefully. 5. if_lem.c: support for various paravirtualization features, experimental and disabled by default. Most of these are described in our ANCS'13 paper [1]. Paravirtualized support in netmap mode is new, and beats the numbers in the paper by a large factor (under qemu-kvm, we measured gues-host throughput up to 10-12 Mpps). A lot of refactoring and additional documentation in the files in sys/dev/netmap, but apart from #2 and #3 above, almost nothing of this stuff is visible to other kernel parts. Example programs in tools/tools/netmap have been updated with bugfixes and to support more of the existing features. This is meant to go into 10.1 so we plan an MFC before the Aug.22 deadline. A lot of this code has been contributed by my colleagues at UNIPI, including Giuseppe Lettieri, Vincenzo Maffione, Stefano Garzarella. MFC after: 3 days.
* Make the USB and ZFS devd configuration files optional depending on thengie2014-08-151-3/+5
| | | | | | | | | | | values of MK_USB/MK_ZFS Making zfs.conf optional resolves PR # 186971 PR: 186971 Phabric: D606 Approved by: jmmv (mentor) Sponsored by: EMC / Isilon Storage Division
* create_$ARCH_diskimage never really took off. Collapse back down toimp2014-08-143-20/+2
| | | | just one.
* Only install the boot loader if it actually exists. This is a stop-gapimp2014-08-141-2/+8
| | | | | change, since larger changes to use geom more exclusively to create partitions is in th works.
* Make the libbsdstat useful again.adrian2014-08-132-4/+5
|
* Integrate lib/libutil into the build/kyuangie2014-08-1312-1448/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | Remove the .t wrappers Rename all of the TAP test applications from test-<test> to <test>_test to match the convention described in the TestSuite wiki page humanize_number_test.c: - Fix -Wformat warnings with counter variables - Fix minor style(9) issues: -- Header sorting -- Variable declaration alignment/sorting in main(..) -- Fit the lines in <80 columns - Fix an off by one index error in the testcase output [*] - Remove unnecessary `extern char * optarg;` (this is already provided by unistd.h) Phabric: D555 Approved by: jmmv (mentor) MFC after: 2 weeks Obtained from: EMC / Isilon Storage Division [*] Submitted by: Casey Peel <cpeel@isilon.com> [*] Sponsored by: EMC / Isilon Storage Division
* Port date/bin/tests to ATFngie2014-08-131-0/+1
| | | | | | | | | Phabric: D545 Approved by: jmmv (mentor) Submitted by: keramida (earlier version) MFC after: 2 weeks Sponsored by: Google, Inc Sponsored by: EMC / Isilon Storage Division
* Convert bin/sh/tests to ATFngie2014-08-131-0/+1
| | | | | | | | | | | | | The new code uses a "test discovery mechanism" to determine what tests are available for execution The test shell can be specified via: kyua test -v test_suites.FreeBSD.bin.sh.test_shell=/path/to/test/sh Sponsored by: EMC / Isilon Storage Division Approved by: jmmv (mentor) Reviewed by: jilles (maintainer)
* Complete the usr.bin/yacc kyua integration work I originallyngie2014-08-121-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | submitted via r268811 - Install the Kyuafile by adding FILES to FILESGROUPS - Run the testcases with an unprivileged user Some of the testcases depend upon behavior that's broken when run as root on FreeBSD because of how permissions are treated with access(2) vs eaccess(2), open(2), etc - Simplify the test driver to just inspect the exit code from run_test because it now exits with 0 if successful and exits with !0 if unsuccessful - Don't do ad hoc temporary directory creation/deletion; let Kyua handle that - Add entries for files removed in r268811 to OptionalObsoleteFiles.inc PR: 191020 X-MFC with: r268811 Approved by: jmmv (mentor) Reviewed by: bapt Sponsored by: EMC / Isilon Storage Division
* Fix paths.adrian2014-08-101-1/+1
|
* Add more tools to the build.adrian2014-08-091-1/+1
|
* Update athpoke/athregs to use the modified register read diagnostic API.adrian2014-08-092-5/+6
|
* Fix athdecode to actually work.adrian2014-08-061-1/+4
| | | | | | | | * Add AR9287 and AR9331 chipset support - it just uses the AR5416 support for now so some of the register mappings are wrong, but it works well enough. * don't call exit() from opmark().
* Integrate lib/libnv into the build/kyuangie2014-08-057-1441/+0
| | | | | | | | | Rename all of the TAP test applications from <test> to <test>_test to match the convention described in the TestSuite wiki page Phabric: D538 Approved by: jmmv (mentor) Sponsored by: EMC / Isilon Storage Division
* Integrate lib/libmp into the build/kyuangie2014-08-043-233/+0
| | | | | | | | | | | | | - Remove the .t wrapper - Fix -Wreturn-type warnings with clang This change has been tested on amd64/i386 Phabric: D530 Reviewed by: jmmv Approved by: jmmv (co-mentor) MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
* Sort switch statements.imp2014-08-021-6/+6
|
* Sort usage options.imp2014-08-021-2/+2
|
* Add a new -K to suppress installing the kernel. Useful for creatingimp2014-08-021-3/+13
| | | | | | chroots that may never boot (such as build environments), or for platforms that don't really need the kernel installed into the filesystem.
* NANO_OBJ shouldn't end with a '/', so remove it here. This makes theimp2014-08-011-1/+1
| | | | | | | pathnames printed not have the dreaded // which makes it hard to cut and paste into an emacs find file command... MFC After: 3 days
* Use rm -x only on FreeBSD 10 and newer. Many people still build fromimp2014-08-011-12/+21
| | | | | | older hosts, which still works, so don't break that gratuitously. MFC After: 3 days
OpenPOWER on IntegriCloud