summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Catch up with new driver ioctls in cxgbe.np2011-12-161-0/+175
| | | | MFC after: 1 month
* Many updates to cxgbe(4)np2011-12-161-29/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Device configuration via plain text config file. Also able to operate when not attached to the chip as the master driver. - Generic "work request" queue that serves as the base for both ctrl and ofld tx queues. - Generic interrupt handler routine that can process any event on any kind of ingress queue (via a dispatch table). - A couple of new driver ioctls. cxgbetool can now install a firmware to the card ("loadfw" command) and can read the card's memory ("memdump" and "tcb" commands). - Lots of assorted information within dev.t4nex.X.misc.* This is primarily for debugging and won't show up in sysctl -a. - Code to manage the L2 tables on the chip. - Updates to cxgbe(4) man page to go with the tunables that have changed. - Updates to the shared code in common/ - Updates to the driver-firmware interface (now at fw 1.4.16.0) MFC after: 1 month
* Fix last-minute typo.fjoe2011-12-151-1/+1
|
* Add job error output test.fjoe2011-12-155-0/+146
| | | | | make(1) with openpty() currently fails this test: there's a race condition and error output is sometimes lost.
* Add a test for r228510.jilles2011-12-141-0/+67
|
* Add more files to cleanup with 'make delete-old' when WITHOUT_CLANG isdim2011-12-111-0/+35
| | | | | | in effect. MFC after: 1 week
* - Add a test for PR 151758.jhb2011-12-091-26/+54
| | | | | | | | | | | | | - While here, make this compile and work on non-i386: - Use CMSG_SPACE(), CMSG_LEN(), and CMSG_FIRSTHDR() instead of ignoring padding between 'struct cmsghdr' and control message payloads. - Don't initialize the control message before calling recvmsg(). Instead, check that we get a valid control message on return from recvmsg(). - Use errx() instead of err() for some errors that don't report failures that set errno. Requested by: kib (1)
* 1. Fix the handling of link reset while in netmap more.luigi2011-12-051-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A link reset now is completely transparent for the netmap client: even if the NIC resets its own ring (e.g. restarting from 0), the client will not see any change in the current rx/tx positions, because the driver will keep track of the offset between the two. 2. make the device-specific code more uniform across different drivers There were some inconsistencies in the implementation of the netmap support routines, now drivers have been aligned to a common code structure. 3. import netmap support for ixgbe . This is implemented as a very small patch for ixgbe.c (233 lines, 11 chunks, mostly comments: in total the patch has only 54 lines of new code) , as most of the code is in an external file sys/dev/netmap/ixgbe_netmap.h , following some initial comments from Jack Vogel about making changes less intrusive. (Note, i have emailed Jack multiple times asking if he had comments on this structure of the code; i got no reply so i assume he is fine with it). Support for other drivers (em, lem, re, igb) will come later. "ixgbe" is now the reference driver for netmap support. Both the external file (sys/dev/netmap/ixgbe_netmap.h) and the device-specific patches (in sys/dev/ixgbe/ixgbe.c) are heavily commented and should serve as a reference for other device drivers. Tested on i386 and amd64 with the pkt-gen program in tools/tools/netmap, the sender does 14.88 Mpps at 1050 Mhz and 14.2 Mpps at 900 MHz on an i7-860 with 4 cores and 82599 card. Haven't tried yet more aggressive optimizations such as adding 'prefetch' instructions in the time-critical parts of the code.
* Fix some uninitialized variables in pipe regression tests that result ineadler2011-12-053-3/+5
| | | | | | | | | failure. PR: misc/161175 Submitted by: gianni@ Approved by: nwhitehorn@ MFC after: 1 week
* Support domain-search in dhclient(8)dumbbell2011-12-044-1/+405
| | | | | | | | | | | | | | | | | | | | | The "domain-search" option (option 119) allows a DHCP server to publish a list of implicit domain suffixes used during name lookup. This option is described in RFC 3397. For instance, if the domain-search option says: ".example.org .example.com" and one wants to resolve "foobar", the resolver will try: 1. "foobar.example.org" 2. "foobar.example.com" The file /etc/resolv.conf is updated with a "search" directive if the DHCP server provides "domain-search". A regression test suite is included in this patch under tools/regression/sbin/dhclient. PR: bin/151940 Sponsored by Yakaz (http://www.yakaz.com)
* Revert to conservative defaults. WITH_PROFILE is a default now.fjoe2011-12-022-2/+2
| | | | | NO_PROFILE overrides in Makefile.inc1 and bsd.own.m are left intact so that the reversal to the WITHOUT_PROFILE will be easier in future.
* Add a simple test for pipe inode numbers reported by fstat(2).kib2011-12-011-0/+66
| | | | | Submitted by: gianni MFC after: 1 week
* Add WITH_CTF description.fjoe2011-11-301-0/+4
|
* Add three execution tests for make(1):fjoe2011-11-3015-0/+102
| | | | | | | | | | | | | - plus: execute "+command" when run with -jX -n - ellipsis: ellipsis ("...") from variable - empty: empty command (from variable) Currently make(1) fails all three tests: - plus: segmentation fault due to incorrect command list handling - ellipsis: works in compat mode but fails in job (-jX) mode - empty: - compat mode: prints error message - job mode: works but prints empty string
* Turn off profiled libs build by default.fjoe2011-11-292-2/+2
| | | | Can be enabled back using WITH_PROFILE=yes in /etc/src.conf
* test: Add more testcases.jilles2011-11-281-4/+38
| | | | | | | The new testcases pass even on old stable/7, but some other implementations manage to get them wrong. Also remove a few duplicate testcases.
* Add WITH_LIBCPLUSPLUS under tools/build/options; the knob itself wasdim2011-11-281-0/+2
| | | | already added in a previous revision.
* Add a comment that shows how to limit the build to the specific list of arches.fjoe2011-11-281-0/+2
|
* sh: Add tests for some corner cases of 'case' exit status.jilles2011-11-262-0/+12
| | | | These already work properly.
* Add missing ;;fjoe2011-11-241-0/+1
|
* Utility script to build specific parts of the source tree on all archesfjoe2011-11-241-0/+58
|
* Tidy up the statistic documentation.adrian2011-11-231-2/+2
| | | | Sponsored by: Hobnob, Inc.
* Add the new statistics introduced in r227868.adrian2011-11-231-7/+14
| | | | Sponsored by: Hobnob, Inc.
* sh: Allow unsetting OPTIND.jilles2011-11-201-0/+3
| | | | Note that only assigning the decimal value 1 resets getopts, as before.
* Revert r227538, since it doesn't compile with clang at all (it doesn'tdim2011-11-172-60/+0
| | | | | | | | | | | allow the built-in operations to be redefined, at least not without excessive force). Instead, just disable LLVM's support for atomic operations for now. Nothing in either clang or the tablegen tools currently depends on it. This still allows users of head built before r198344 to upgrade to top-of-head seamlessly.
* Bring in support for netmap, a framework for very efficient packetluigi2011-11-177-0/+2294
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I/O from userspace, capable of line rate at 10G, see http://info.iet.unipi.it/~luigi/netmap/ At this time I am bringing in only the generic code (sys/dev/netmap/ plus two headers under sys/net/), and some sample applications in tools/tools/netmap. There is also a manpage in share/man/man4 [1] In order to make use of the framework you need to build a kernel with "device netmap", and patch individual drivers with the code that you can find in sys/dev/netmap/head.diff The file will go away as the relevant pieces are committed to the various device drivers, which should happen in a few days after talking to the driver maintainers. Netmap support is available at the moment for Intel 10G and 1G cards (ixgbe, em/lem/igb), and for the Realtek 1G card ("re"). I have partial patches for "bge" and am starting to work on "cxgbe". Hopefully changes are trivial enough so interested third parties can submit their patches. Interested people can contact me for advice on how to add netmap support to specific devices. CREDITS: Netmap has been developed by Luigi Rizzo and other collaborators at the Universita` di Pisa, and supported by EU project CHANGE (http://www.change-project.eu/) The code is distributed under a BSD Copyright. [1] In my opinion is a bad idea to have all manpage in one directory. We should place kernel documentation in the same dir that contains the code, which would make it much simpler to keep doc and code in sync, reduce the clutter in share/man/ and incidentally is the policy used for all of userspace code. Makefiles and doc tools can be trivially adjusted to find the manpages in the relevant subdirs.
* LLVM uses atomic operations, which are not supported on i386 and GCCdim2011-11-152-0/+60
| | | | | | | | | | | emits calls for them, rather than expanding them inline. Older FreeBSD versions compile for i386 by default and as such we end up with unresolved symbols when we build LLVM's TableGen utility as a build tool on them. Add the functions that GCC emits here, but don't bother to make them atomic. Such is not needed. Submitted by: marcel MFC after: 1 week
* A regression test to ensure that arc4random returns different sequencesdas2011-11-152-1/+91
| | | | in parent and child processes after a fork.
* Add IPv6 support to netblast/netsend/netreceivecognet2011-11-083-50/+159
| | | | | PR: bin/161368 Submitted by: Olivier Cochard-Labbe <olivier AT cochard doT me>
* fifo_misc test: Fix swapped lseek arguments.jilles2011-11-051-1/+1
| | | | It worked regardless because SEEK_CUR happens to be 1.
* sh: Add test for exit status of for loop without items.jilles2011-10-281-0/+4
| | | | | | POSIX says the exit status of a for loop without any items shall be 0. There are no exceptions if the exit status of the previous command was not 0 or if the item list contains a command substitution with non-zero exit status.
* Bring over the new aggregate statistics from the 11n branch.adrian2011-10-261-12/+85
| | | | | Some of these values are currently updated by the driver (the 11n RX related statistics) so they are immediately useful.
* Fix resize regressions tests - we need to destroy BSDlabel before we canpjd2011-10-251-0/+1
| | | | | | create GPT. MFC after: 3 days
* Add a "-P olddistfiles" facility to prefetch ports distfiles, using anphk2011-10-231-12/+43
| | | | | | | | | | | | | old distfile directory as primary source: mkdir /freebsd/ports/distfiles.old mv /freebsd/ports/distfiles/* /freebsd/ports/distfiles.old sh sysbuild.sh -c $yourconfig -P /freebsd/ports/distfiles.old rm -rf /freebsd/ports/distfiles.old Unfortunately bsd.ports.mk does not attempt to use a hard-link so while this runs you need diskspace for both your old and your "new" distfiles.
* Because ZFS boot code was very fragile in the past and real PITA to debug,pjd2011-10-212-0/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | introduce zfsboottest.sh script that will verify if it will be possible to boot from the given pool. # zfsboottest.sh system Where "system" is pool name of the pool we want to boot from. What is being verified by the script: - Does the pool exist? - Does it have bootfs property configured? - Is mountpoint property of the boot dataset set to 'legacy'? Dataset configured in bootfs property has to be mounted to perform more checks: - Does the /boot directory in boot dataset exist? - Is this dataset configured as root file system in /etc/fstab or set in vfs.root.mountfrom variable in /boot/loader.conf? By using zfsboottest tool the script will read all the files in /boot directory using ZFS boot code and calculate their checksums. Then, it will walk /boot directory using find(1) though regular file sytem and also read all the files in /boot directory and calculate their checksums. If any of the files cannot be looked up, read or checksum is invalid it will be reported and booting off of this pool is probably not possible. Some additional checks may be interesting as well. For example if the disks contain proper pmbr and gptzfsboot code or if all expected files in /boot/ are present. When upgrading FreeBSD, one should snapshot datasets that contain operating system, upgrade (install new world and kernel) and use zfsboottest.sh to verify if it will be possible to boot from new configuration. If all is good one should upgrade boot blocks, by eg.: # gpart -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1 If something is wrong, one should rollback datasets and report the problems. MFC after: 3 days
* - Allow to specify multiple files to check, eg.pjd2011-10-212-35/+69
| | | | | | | | | | zfsboottest gpt/system0 gpt/system1 - /boot/kernel/kernel /boot/zfsloader - Instead of printing file's content calculate MD5 hash of the file, so it can be easly compared to the hash calculated via file system. - Some other minor improvements. MFC after: 3 days
* Add regression tests for modf{,f,l}().das2011-10-211-26/+108
|
* Tests for complex trig and hyperbolic functions.das2011-10-213-1/+552
|
* Tests for cancellation in fma(). Also include more tests for 128-bitdas2011-10-211-3/+63
| | | | | long doubles. Thanks for clusteradm (simon) for making the needed hardware available.
* Fix some memory errors in *at() regression tests.jilles2011-10-181-6/+9
|
* Add some tests for corner cases of log() in unusual rounding modes.das2011-10-151-2/+29
| | | | I wrote these ages ago, but they've been failing until now.
* Add some tests for double-rounding bugs in fma().das2011-10-151-1/+54
|
* Fix build after TARGET_BIG_ENDIAN was nuked from orbit.thompsa2011-10-111-2/+1
|
* - Add missing interdependencies to kerberos libraries. Some of thestas2011-09-271-1/+1
| | | | | | | | | kerberos libraries were not linked properly (missing dependencies), which causes 3rd party applications linking to fail when --as-needed ld flag is used. I also added the --no-undefined ld(1) flag to make sure that there're no missing dependencies. MFC after: 3 days
* zfsboottest: some additional enhancementsavg2011-09-161-5/+10
| | | | | | | | | | - redirect diagnostics printfs in the boot code to stderr - do not read trailing garbage from a trailing block of a file Also add my copyright to the file after making so many changes. Approved by: re (kib) MFC after: 1 week
* zfstest: rename to zfsboottest and move to toolsavg2011-09-162-0/+167
| | | | | Approved by: re (kib) MFC after: 1 week
* Fix alignment assumptions.marius2011-09-022-6/+4
| | | | | | PR: 160289 Approved by: re (kib) MFC after: 3 days
* Add support for IPv6 to ipfw fwd:bz2011-08-201-0/+369
| | | | | | | | | | | | | | | | | | | Distinguish IPv4 and IPv6 addresses and optional port numbers in user space to set the option for the correct protocol family. Add support in the kernel for carrying the new IPv6 destination address and port. Add support to TCP and UDP for IPv6 and fix UDP IPv4 to not change the address in the IP header. Add support for IPv6 forwarding to a non-local destination. Add a regession test uitilizing VIMAGE to check all 20 possible combinations I could think of. Obtained from: David Dolson at Sandvine Incorporated (original version for ipfw fwd IPv6 support) Sponsored by: Sandvine Incorporated PR: bin/117214 MFC after: 4 weeks Approved by: re (kib)
* Test process descriptors.jonathan2011-08-185-0/+221
| | | | | | | | | | Ensure that process descriptors work as expected. We should be able to: - pdfork(), like regular fork(), but producing a process descriptor - pdgetpid() to convert a PD into a PID - pdkill() to send signals to a process identified by a PD Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc
* poll(2) implementation for capabilities.jonathan2011-08-161-2/+16
| | | | | | | | When calling poll(2) on a capability, unwrap first and then poll the underlying object. Approved by: re (kib), mentor (rwatson) Sponsored by: Google Inc
OpenPOWER on IntegriCloud