aboutsummaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* MFH (r253138,r253258): install authpf-noipDag-Erling Smørgrav2013-07-131-0/+2
| | | | | | | Approved by: re (delphij) Notes: svn path=/stable/9/; revision=253320
* MFC r244236,r244408,r244915,r247054,r251512:Ed Maste2013-07-051-0/+7
| | | | | | | | | | | | | | | | Add a new knob WITH_DEBUG_FILES to control the building of standalone debug files for userland programs and libraries. The "-g" debug flag is automatically applied when WITH_DEBUG_FILES is set. The debug files are named ${prog}.debug and ${shlib}.debug for consistency with other systems and documentation. In addition they are installed under /usr/lib/debug, to simplify the process of installing them if needed after a crash. Users of bsd.{prog,lib}.mk outside of the base system place the standalone debug files in a .debug subdirectory. GDB automatically searches both of these directories for standalone debug files. Notes: svn path=/stable/9/; revision=252827
* MFC r251601, r251685:Ed Maste2013-07-051-5/+18
| | | | | | | Handle options that override other options Notes: svn path=/stable/9/; revision=252812
* Merge clang 3.3 release and various fixes: r241214, r246705, r248548,Dimitry Andric2013-07-041-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r249423, r249817, r250217, r250593, r250616, r250997, r251216, r251662, r251761, r251785, r251790, r252039. MFC r241214 (by jkim): Do not install incomplete unwind.h from clang. This header file was meant to be a wrapper for the canonical system header file. Unfortunately, we do not have one (yet) and some times it is causing weird failures when clang is used for building ports. More complete and correct file will come from libcxxrt in the future. Discussed with: dim, kib, theraven MFC r246705 (by andrew): Allow us to build clang for ARM EABI. Clang and llvm use the arm-gnueabi-freebsd10.0 triple for EABI. Use this when we are on arm or armv6 and are building for EABI. Reviewed by: dim MFC r248548 (by andrew): Pull in r177252 from upstream clang trunk: Make sure to use same EABI version for external assembler as for integrated as. This allows us to use gcc on a world built with clang on ARM. MFC r249423: Upgrade our copy of llvm/clang to trunk r178860, in preparation of the upcoming 3.3 release (branching and freezing expected in a few weeks). Preliminary release notes can be found at the usual location: <http://llvm.org/docs/ReleaseNotes.html> An MFC is planned once the actual 3.3 release is finished. MFC r249817: Pull in r180121 from upstream llvm trunk: LoopVectorizer: Fix 15830. When scalarizing and unrolling stores make sure that the order in which the elements are scalarized is the same as the original order. This fixes a miscompilation in FreeBSD's regex library. This should fix lib/libc/regex/regcomp.c at -O3 with clang 3.3 r178860 on CPUs with SSE. Before this change, the vectorizer could incorrectly rearrange the second loop in computejumps(), leading to possibly invalid entries in the re_gets::charjump table. The net result was that for example "sed s/@CC@/foo/" failed to work correctly, leading to trouble with many configure scripts. MFC r250217: Allow building clang on older FreeBSD releases, where log2() does not exist yet. With this change, I have verified that building head on 8.1-RELEASE works. Noticed by: Ryan Stone <rysto32@gmail.com> MFC r250593: Pull in r181286 from upstream llvm trunk: LoopVectorize: getConsecutiveVector must respect signed arithmetic We were passing an i32 to ConstantInt::get where an i64 was needed and we must also pass the sign if we pass negatives numbers. The start index passed to getConsecutiveVector must also be signed. Should fix PR15882. This should fix Firefox crashes some people have been reporting, when it is compiled with -O3. MFC r250616: Use an ugly hack to get around bootstrapping problems when building clang on head between r239347 and r245428. The former revision introduced CLOCK_PROCESS_CPUTIME_ID as a clock id for the clock_gettime() function and friends, but it was only added in <sys/time.h>, not in <time.h>. Any program including <time.h> would therefore not be able to use CLOCK_PROCESS_CPUTIME_ID, even though the value of _POSIX_CPUTIME indicates its existence. The latter revision synchronized the defines again. Work around this problem by defining the id on the command line for the particular .cpp file that needs it. If the id ever changes value, this hack will need to be updated. MFC r250997: Pull in r182656 from upstream llvm trunk: LoopVectorize: LoopSimplify can't canonicalize loops with an indirectbr in it, don't assert on those cases. Fixes PR16139. This should fix clang assertion failures when optimizing at -O3, similar to: Assertion failed: (TheLoop->getLoopPreheader() && "No preheader!!"), function canVectorize, file contrib/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp, line 2171. Reported by: O. Hartmann <ohartman@zedat.fu-berlin.de> PR: ports/178332, ports/178977 MFC r251216 (by ed): Pull in r183033 and r183036 from LLVM trunk: Add support for optimized (non-generic) atomic libcalls. For integer types of sizes 1, 2, 4 and 8, libcompiler-rt (and libgcc) provide atomic functions that pass parameters by value and return results directly. libgcc and libcompiler-rt only provide optimized libcalls for __atomic_fetch_*, as generic libcalls on non-integer types would make little sense. This means that we can finally make __atomic_fetch_* work on architectures for which we don't provide these operations as builtins (e.g. ARM). This should fix the dreaded "cannot compile this atomic library call yet" error that would pop up once every while. This should make it possible for me to get C11 atomics working on all of our platforms. MFC r251662: Upgrade our copy of llvm/clang to 3.3 release. Release notes are still in the works, these will follow soon. MFC r251761: Pull in r181620 from llvm trunk: [ms-inline asm] Fix a crasher when we fail on a direct match. The issue was that the MatchingInlineAsm and VariantID args to the MatchInstructionImpl function weren't being set properly. Specifically, when parsing intel syntax, the parser thought it was parsing inline assembly in the at&t dialect; that will never be the case. The crash was caused when the emitter tried to emit the instruction, but the operands weren't set. When parsing inline assembly we only set the opcode, not the operands, which is used to lookup the instruction descriptor. rdar://13854391 and PR15945 Also, this commit reverts r176036. Now that we're correctly parsing the intel syntax the pushad/popad don't match properly. I've reimplemented that fix using a MnemonicAlias. Pull in r183907 from llvm trunk: X86: Make the cmov aliases work with intel syntax too. These commits make a number of Intel-style inline assembly mnemonics aliases (occurring in several ports) work properly, which could cause assertions otherwise. Reported by: kwm, bapt MFC r251785 (by ed) Pull in r184040 from upstream clang trunk: Emit native implementations of atomic operations on FreeBSD/armv6. Just like on Linux, FreeBSD/armv6 assumes the system supports ldrex/strex unconditionally. It is also used by the kernel. We can therefore enable support for it, like we do on Linux. While there, change one of the unit tests to explicitly test against armv5 instead of armv7, as it actually tests whether libcalls are emitted. MFC r251790 (by andrew): Pull in r183926 from LLVM trunk: Allow clang to build __clear_cache on ARM. __clear_cache is special. It needs no signature, but is a real function in compiler_rt or libgcc. Patch by Andrew Turner. This allows us to build the __clear_cache function in compiler-rt. MFC r252039: Pull in r183984 from llvm trunk: Make PrologEpilogInserter save/restore all callee saved registers in functions which call __builtin_unwind_init() __builtin_unwind_init() is an undocumented gcc intrinsic which has this effect, and is used in libgcc_eh. Goes part of the way toward fixing PR8541. This obsoletes the ugly hack to libgcc's unwind code from r245272, and should also work for other arches, so revert the hack too. Notes: svn path=/stable/9/; revision=252723
* MFC r248349: sh: Recognize "--" and explicitly reject options in waitJilles Tjoelker2013-07-032-0/+7
| | | | | | | | | | | builtin. If syntactically invalid job identifiers are to be taken as jobs that exited with status 127, this should not apply to options, so that we can add options later if need be. Notes: svn path=/stable/9/; revision=252617
* MFC r245383,245392,247190,249220,251180,251797: New sh testcases.Jilles Tjoelker2013-07-0312-0/+102
| | | | | | | These already work on stable/9. Notes: svn path=/stable/9/; revision=252613
* MFC all cxgbe(4) changes missing from stable/9:Navdeep Parhar2013-07-022-7/+65095
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r248925, r249368, r249370, r249376, r249382, r249383, r249385, r249391, r249392, r249393, r249627, r249629, r250090, r250092, r250093, r250117, r250218, r250221, r250614, r251213, r251317, r251358, r251434, r251518, r251638, r252312, r252469, r252470, r250697(kib). r248925: Support for Chelsio's 40G Terminator 5 (aka T5) ASIC. ... r249368: Set and display the IP fragment bit correctly when dealing with the filter mode. r249370: cxgbe(4): Ensure that the MOD_LOAD handler runs before either t4nex or t5nex attach to their devices. r249376: - Explain clearly why a different firmware is being installed (if/when it is being installed). Improve other error messages while here. - Select special FPGA specific configuration profile when appropriate. r249382: There is no need for elaborate queries and error checking when trying to set FW4MSG_ENCAP. r249383: Get rid of a couple of stray \n's. r249385: cxgbe/tom: Slight simplification of code that calculates options2. r249391: Auto-reduce the holdoff timers that are greater than the maximum value allowed by the hardware. r249392: Cosmetic change (s/wrwc/wcwr/;s/WRWC/WCWR/). r249393: Add pciids of the T5 based cards. The ones that I haven't tested with cxgbe(4) are disabled for now. This will change. r249627: cxgbe/tom: Update the CLIP table on the chip when there are changes to the list of IPv6 addresses on the system. The table is used for TOE+IPv6 only. r249629: cxgbe(4): Refuse to install T5 firmwares on a T4 card (and vice versa). r250090: cxgbe(4): Some updates to shared code. r250092: - Provide accurate ifmedia information so that 40G ports/transceivers are displayed properly in ifconfig, etc. - Use the same number of tx and rx queues for a 40G port as for a 10G port. r250093: Attach to the T580 (2 x 40G) card. r250117: Fix DDP breakage introduced in r248925. Bitwise OR has higher precedence than ternary conditional. r250218: cxgbe/tom: Do not use M_PROTO1 to mark rx zero-copy mbufs as special. All the M_PROTOn flags are clobbered when an mbuf is appended to the socket buffer. r250221: cxgbe: Switch to a better way to install firmware. r250614: Deal correctly with 40G ports that don't have any transceiver plugged in. Do not claim that they have unknown tranceivers. r251213: cxgbe(4): Some more debug sysctls. These work on both T4 and T5 based cards. r251317: cxgbe(4): t4fw_cfg must be explicitly loaded if the driver is being loaded via loader.conf. r251358: cxgbe(4): Provide accurate hit count for filters on T5 cards. The location within the TCB and the size have both changed. r251434: cxgbe(4): Never install a firmware if hw.cxgbe.fw_install is 0. r251518: cxgbe/tom: Fix bad signed/unsigned mixup in the stid allocator. This fixes a panic when allocating a mixture of IPv6 and IPv4 stids. r251638: cxgbe/tom: Allow caller to select the queue (control or data) used to send the CPL_SET_TCB_FIELD request in t4_set_tcb_field(). r252312: Update T5 register ranges. This is so that regdump skips over registers with read side-effects. r252469: Add a sysctl to get the number of filters available. sysctl dev.t4nex.<N>.nfilters sysctl dev.t5nex.<N>.nfilters r252470: Count the number of hits for a filter by default. r250697: Add dependencies on the firmware, which allows the loading of the cxgb and cxgbe modules. Notes: svn path=/stable/9/; revision=252495
* MFC 246120,246148,246206,246587,247411,247415:John Baldwin2013-06-287-1/+691
| | | | | | | | | | Add fmemopen(3), open_memstream(3), and open_wmemstream(3) which provide stdio FILE objects for memory buffers. port exprun by: bdrewery Notes: svn path=/stable/9/; revision=252343
* MFC r251563:Glen Barber2013-06-171-0/+1
| | | | | | | | | | Add freebsd-update.conf(5) to OptionalObsoleteFiles.inc PR: 179437 Approved by: kib (mentor) Notes: svn path=/stable/9/; revision=251841
* MFC: r251368, r251382: Match the options of the kernel.David E. O'Brien2013-06-073-13/+58
| | | | Notes: svn path=/stable/9/; revision=251504
* MFC r250533:Eitan Adler2013-05-251-1/+0
| | | | | | | | | | Unconditionally install 210.backup-aliases as many MTAs other than sendmail support the use of /etc/aliases. PR: conf/176098 Notes: svn path=/stable/9/; revision=250983
* MFC: sync the version of netmap with the one in HEAD, including deviceLuigi Rizzo2013-05-107-931/+1367
| | | | | | | | | | drivers (mostly simplifying the code in the interrupt handlers). On passing, also merge r250414, which is related to netmap and the use of lem/em in virtual machines. Notes: svn path=/stable/9/; revision=250458
* MFC r243314:Sergey Kandaurov2013-04-293-1249/+1652
| | | | | | | | | | | | | Zero the whole struct not just the size of a pointer. MFC r246670: Major update for unix_cmsg. PR: bin/131567 Submitted by: Andrey Simonenko <simon@comsys.ntu-kpi.kiev.ua> Notes: svn path=/stable/9/; revision=250076
* Fix build.Sergey Kandaurov2013-04-291-2/+2
| | | | | | | | - pass a format string to printf - catch up with constifying uz_name Notes: svn path=/stable/9/; revision=250045
* MFC r245751,245893:Brooks Davis2013-03-151-4/+20
| | | | | | | | | | | | | | | | | | | r245751: Implement the -l option using ln(1) to facilitate boostrapping. Ignore the new options -D, -h, -T, and -U. Adjust -M support to ignore an argument. Sponsored by: DARPA, AFRL Reviewed by: ian, ray, rpaulo r245893: Use = not == in test arguments. Submitted by: Christoph Mallon <christoph.mallon@gmx.de> Notes: svn path=/stable/9/; revision=248332
* MFC r245311:Brooks Davis2013-03-151-0/+16
| | | | | | | | | | Add pwcache(3) and vis(3) to libegacy as install(1) is about to grow a dependency on them. Sponsored by: DARPA, AFRL Notes: svn path=/stable/9/; revision=248330
* MFC r247854:Navdeep Parhar2013-03-061-0/+1
| | | | | | | Fix compile warning by including ctype.h for isdigit(). Notes: svn path=/stable/9/; revision=247896
* MFH (r245527): add OPENSSH_NONE_CIPHER build optionDag-Erling Smørgrav2013-03-011-0/+9
| | | | Notes: svn path=/stable/9/; revision=247515
* MFC r245243, r245274, r245276, r245434, r245441, r245448, r245467,Navdeep Parhar2013-02-281-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r245468, r245517, r245518, r245520, r245567, r245933, r245935, r245936, r245937, r246093, r246385, r246575, r247062, r247122, r247289, r247291, r247347, r247355, and r241733. Note that TCP_OFFLOAD is not enabled in 9 yet and so some of these MFCs don't really affect functionality. But they do help future MFCs (related to TCP_OFFLOAD or not) by minimizing diffs with the driver in head. r245243: cxgbe(4): updates to the configuration file that controls how hardware resources are partitioned. - Reduce the number of virtual interfaces reserved for PF4. This leaves spare room in the source MAC table and allows the driver to setup filters that rewrite the source MAC address. - Reduce the number of filters and use the freed up space for the CLIP (Compressed Local IPv6 addresses) table. This is a prerequisite for IPv6 TOE support which will follow separately in a series of commits. r245274: cxgbe(4): Add functions to help synchronize "slow" operations (those not on the fast data path) and use them instead of frobbing the adapter lock and busy flag directly. Other changes made while reworking all slow operations: - Wait for the reply to a filter request (add/delete). This guarantees that the operation is complete by the time the ioctl returns. - Tidy up the tid_info structure. - Do not allow the tx queue size to be set to something that's not a power of 2. r245276: Overhaul the stid allocator so that it can be used for IPv6 servers too. The entry for an IPv6 server in the TCAM takes up the equivalent of two ordinary stids and must be properly aligned too. r245434: cxgbe(4): Updates to the hardware L2 table management code. - Add full support for IPv6 addresses. - Read the size of the L2 table during attach. Do not assume that PCIe physical function 4 of the card has all of the table to itself. - Use FNV instead of Jenkins to hash L3 addresses and drop the private copy of jhash.h from the driver. r245441: cxgbe/tom: Miscellaneous updates for TOE+IPv6 support (more to follow). - Teach find_best_mtu_idx() to deal with IPv6 endpoints. - Install correct protosw in offloaded TCP/IPv6 sockets when DDP is enabled. - Move set_tcp_ddp_ulp_mode to t4_tom.c so that t4_tom.h can be included without having to drag in t4_msg.h too. This was bothering the iWARP driver for some reason. r245448: cxgbe/tom: Basic CLIP table management. This is the Compressed Local IPv6 table on the chip. To save space, the chip uses an index into this table instead of a full IPv6 address in some of its hardware data structures. For now the driver fills this table with all the local IPv6 addresses that it sees at the time the table is initialized. I'll improve this later so that the table is updated whenever new IPv6 addresses are configured or existing ones deleted. r245467: cxgbe/tom: Add support for fully offloaded TCP/IPv6 connections (active open). r245468: cxgbe/tom: Add support for fully offloaded TCP/IPv6 connections (passive open). r245517: cxgbe: Fix the for_each_foo macros -- the last argument should not share its name with any member of struct sge. r245518: cxgbe: Do a more thorough job in the CLEAR_STATS ioctl. r245520: Allow "ivlan" (inner VLAN) to be used as an alias for "vlan" when specifying match criteria. "vlan" continues to be valid here, and it continues to be valid when deleting, rewriting, inserting, or stacking an 802.1q tag to a matching packet. r245567: cxgbe: Make the for_each macros safer to use by turning them into a single statement each. r245933: cxgbe/tom: List IFCAP_TOE6 as supported now that all the required pieces are in place. You still have to enable it explicitly, after loading the t4_tom KLD. r245935: Add a couple of missing error codes. Treat CPL_ERR_KEEPALV_NEG_ADVICE as negative advice and not a fatal error. r245936: Force the 404-BT card (4 x 1G) to use the "uwire" configuration file. r245937: Install an extra hold on the newly allocated synq entry so that it cannot be freed while do_pass_accept_req is running. This closes a race where do_pass_establish on another CPU (the driver chose a different queue for the new tid) expands the synq entry into a full PCB and then releases the only hold on it, all while do_pass_accept_req is still running. r246093: Provide a statistic to track the number of drops in each of the port's txq's buf_ring. The aggregate for all the queues of a port is already provided in ifnet->if_snd.ifq_drops. r246385: Busy-wait when cold. r246575: Do not hold locks around hardware context reads. r247062: cxgbe(4): Assume that CSUM_TSO in the transmit path implies CSUM_IP and CSUM_TCP too. They are all set explicitly by the kernel usually. r247122: cxgbe(4): Add sysctls to extract debug information from the chip: dev.t4nex.X.misc.cim_la logic analyzer dump dev.t4nex.X.misc.cim_qcfg queue configuration dev.t4nex.X.misc.cim_ibq_xxx inbound queues dev.t4nex.X.misc.cim_obq_xxx outbound queues r247289: cxgbe(4): Update firmware to 1.8.4.0. r247291: cxgbe(4): Ask the card's firmware to pad up tiny CPLs by encapsulating them in a firmware message if it is able to do so. This works out better for one of the FIFOs in the chip. r247347: cxgbe(4): Consider all the API versions of the interfaces exported by the firmware (instead of just the main firmware version) when evaluating firmware compatibility. Document the new "hw.cxgbe.fw_install" knob being introduced here. This should fix kern/173584 too. Setting hw.cxgbe.fw_install=2 will mostly do what was requested in the PR but it's a bit more intelligent in that it won't reinstall the same firmware repeatedly if the knob is left set. r247355: cxgbe(4): Report unusual out of band errors from the firmware. r241733 (by ed@): Prefer __containerof() over __member2struct(). The former works better with qualifiers, but also properly type checks the input pointer. Notes: svn path=/stable/9/; revision=247434
* MFC r246259:Dimitry Andric2013-02-102-0/+6
| | | | | | | | | | | | | | | | | | | Pull in r170135 from upstream clang trunk: Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user specifies not to. Dont build ASTMatchers with Rewriter disabled and StaticAnalyzer when it's disabled. Without all those three, the clang binary shrinks (x86_64) from ~36MB to ~32MB (unstripped). To disable these clang components, and get a smaller clang binary built and installed, set WITHOUT_CLANG_FULL in src.conf(5). During the initial stages of buildworld, those extra components are already disabled automatically, to save some build time. Notes: svn path=/stable/9/; revision=246637
* MFC r246119:Konstantin Belousov2013-02-061-7/+25
| | | | | | | | | | | Rework the handling of the children for the pthread_vfork_test. The trivial handler for SIGCHLD is installed, and SIGCHLD is blocked, to not abandon our zombies to init(8). This way, the zombies are around slightly longer, allowing to actually exercise the logic for p_pwait use by the test. Notes: svn path=/stable/9/; revision=246405
* MFH (r228082): add missing documentation for WITH_LIBCPLUSPLUSDag-Erling Smørgrav2013-02-042-0/+6
| | | | | | | MFH (r228159): add missing documentation for WITH_CTF Notes: svn path=/stable/9/; revision=246322
* MFC r244407,r244409:Eitan Adler2013-02-032-1/+6
| | | | | | | | | | | | | POSIX requires that non-existent or null arguments be treated as if a zero argument were supplied. Add regression tests to catch this case as well. PR: bin/174521 Approved by: cperciva (mentor, implicit) Notes: svn path=/stable/9/; revision=246277
* MFC r245606:Eitan Adler2013-02-022-0/+93
| | | | | | | | | | Add option to make pc-sysinstall optional PR: bin/173931 Approved by: cperciva (implicit) Notes: svn path=/stable/9/; revision=246264
* MFC r245382: sh: Fix crash when parsing '{ } &'.Jilles Tjoelker2013-01-201-0/+7
| | | | Notes: svn path=/stable/9/; revision=245690
* MFC r244562,245241,245435Brooks Davis2013-01-151-0/+9
| | | | | | | | | | | | | | | Add NetBSD's mtree to the tree and install it as nmtree. Always install our mtree as /usr/sbin/fmtree and link it as /usr/sbin/mtree by default. Add a src.conf option WITH_NMTREE that causes NetBSD's mtree to be linked as /usr/sbin/mtree as well as /usr/sbin/nmtree. Sponsored by: DARPA, AFRL Notes: svn path=/stable/9/; revision=245462
* MFC r244628:Dimitry Andric2013-01-141-0/+31
| | | | | | | | | | | | | Upgrade our copy of llvm/clang to 3.2 release. Release notes for llvm: http://llvm.org/releases/3.2/docs/ReleaseNotes.html Release notes for clang: http://llvm.org/releases/3.2/tools/clang/docs/ReleaseNotes.html Notes: svn path=/stable/9/; revision=245431
* MFC r242767,r243252: sh: Add tests for modifying an alias (r242766/r243402).Jilles Tjoelker2012-11-223-0/+25
| | | | Notes: svn path=/stable/9/; revision=243403
* Sync netmap pkt-gen with HEAD.Ed Maste2012-11-191-38/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC r238081, r238165, r238170, r238175, r239139, r239145, r240103, r238081: r238165: Allow threads to finish up when terminated by user Set a flag and allow worker threads to finish upon ^C, instead of immediately cancelling them, so that final packet count and rate stats can be displayed. r238170: Also report tx bandwidth with Ethernet overhead r238175: Allow continuous packet transmission (via -t 0) Also add a missing check for the cancel flag while waiting for the first packet in receive mode. r239139: Round displayed pps (instead of truncating) r239145: Be more descriptive about poll error / timeout when transmitting. r240103: Failure to open netmap device is unrecoverable. There's no reason to "fail later" since there's nothing this tool can do in netmap mode without /dev/netmap open. Sponsored by: ADARA Networks Notes: svn path=/stable/9/; revision=243299
* MFC r237729: Fix ioctl type for compiling with clangEd Maste2012-11-192-9/+27
| | | | | | | | | | | MFC r241169: Clean up compiler warnings. MFC r241464: Make local function static. Sponsored by: ADARA Networks Notes: svn path=/stable/9/; revision=243281
* MFC r239070:Andrey V. Elsukov2012-11-183-0/+235
| | | | | | | | | | | | Add simple test program that uses the partition tables handling code. It is useful to test and debug how boot loader handles partition tables metadata. MFC r239087: Add to the debug output the offset from the parent partitioning scheme. Notes: svn path=/stable/9/; revision=243244
* MFC r241844:Eitan Adler2012-11-042-2/+2
| | | | | | | | | remove duplicate semicolons where possible. Approved by: cperciva (implicit) Notes: svn path=/stable/9/; revision=242544
* MFC: r242137: Iterate rather than use recursion. We can blow out theDavid E. O'Brien2012-10-262-3/+198
| | | | | | | kernel stack if there is a long chain of fork(2)s. Notes: svn path=/stable/9/; revision=242142
* MFC r241828,r241891:Eitan Adler2012-10-261-2/+0
| | | | | | | | | Finish migration of MAINTAINER entries Approved by: cperciva (implicit) Notes: svn path=/stable/9/; revision=242112
* MFC r241832:Eitan Adler2012-10-251-7/+7
| | | | | | | | | Covert regression test to python 3 Approved by: cperciva (implicit) Notes: svn path=/stable/9/; revision=242041
* MFC r241401, r241416.Navdeep Parhar2012-10-151-0/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | r241401: Add an "i2c" subcommand to cxgbetool. You can use this to read information from the transceivers connected to the ports of a cxgbe(4) based card. # cxgbetool t4nex0 i2c <port_id> <dev_addr> <addr> [<count>] For example: # cxgbetool t4nex0 i2c 0 0xa0 3 0x10 [16] (As per SFF-8472 the SFP+ module is at 0xa0 and bit 4 in the value at address 3 indicates it's a 10Gbase-SR module, which it is.) r241416: Add a "clearstats" subcommand to cxgbetool that lets you clear the MAC statistics for any port. For example: # cxgbetool t4nex0 clearstats 0 Notes: svn path=/stable/9/; revision=241574
* MFC r240470:Eitan Adler2012-09-2511-1080/+0
| | | | | | | | | Remove scripts and tools which only functioned when src was using CVS Approved by: cperciva (implicit) Notes: svn path=/stable/9/; revision=240907
* MFC r239715:Dimitry Andric2012-09-031-0/+115
| | | | | | | Add libc++ and libcxxrt related files to OptionalObsoleteFiles.inc. Notes: svn path=/stable/9/; revision=240066
* MFC r238374:Konstantin Belousov2012-08-292-0/+181
| | | | | | | | Add a test program, written by Stephan Uphoff, which demonstrates the deadlock due to i/o performed over the buffers backed by file mappings. Notes: svn path=/stable/9/; revision=239853
* MFC r238721:Dimitry Andric2012-07-281-0/+24
| | | | | | | | | | | | When WITHOUT_CLANG is being used, also clean out the clang 3.1 headers in OptionalObsoleteFiles.inc. PR: misc/169902 Submitted by: Thomas Eberhardt <sneakywumpus@googlemail.com> Approved by: re (kib) Notes: svn path=/stable/9/; revision=238862
* MFC r237661:Konstantin Belousov2012-07-051-0/+8
| | | | | | | | | Add a test for number of CPUs configured/online. Approved by: re (kensmith) Notes: svn path=/stable/9/; revision=238139
* MFC: r236592 r236593 r236594 r236620 r236621 r236622 r236637 r237794: filemon(4)David E. O'Brien2012-06-293-0/+151
| | | | Notes: svn path=/stable/9/; revision=237795
* MFC r235392,235394,235395: fixes and cleanups for zfs boot MFCAndriy Gapon2012-06-291-3/+21
| | | | Notes: svn path=/stable/9/; revision=237770
* MFC r233648:Eitan Adler2012-06-183-9/+9
| | | | | | | | | Remove trailing whitespace per mdoc lint warning Approved by: cperciva (implicit) Notes: svn path=/stable/9/; revision=237216
* MFC: r236338, r236339, r236346, r236347, r236365, & r236977David E. O'Brien2012-06-1421-0/+79
| | | | | | | | | | | * Deprecate the FreeBSD make's ":U" (to-upper case) and ":L" (to-lower case) modifiers for ":tu" and ":tl". * make it easier to test newly-built make. * Add "-V '${VAR}'" variable expansion from Portable Berkeley Make. * regression test for '-V' command line option and the :t[lu] modifiers. Notes: svn path=/stable/9/; revision=237100
* MFC r236690:Konstantin Belousov2012-06-091-4/+9
| | | | | | | Do not execute a needed statement with side-effect in assert(). Notes: svn path=/stable/9/; revision=236798
* MFC r236686:Konstantin Belousov2012-06-091-0/+17
| | | | | | | Add gettimeofday() test. Notes: svn path=/stable/9/; revision=236797
* MFC r235130: zfsboottest.sh: correctly check and suggest value ofAndriy Gapon2012-06-021-2/+2
| | | | | | | vfs.root.mountfrom Notes: svn path=/stable/9/; revision=236460
* MFC r235129: zfsboottest.sh: gracefully handle default value of bootfsAndriy Gapon2012-06-021-2/+1
| | | | | | | property Notes: svn path=/stable/9/; revision=236459
* MFC r236274, r236278, r236279:Glen Barber2012-06-021-1/+1
| | | | | | | | | | | | | | r236274: - Fix an mdoc(7) formatting nit. r236278: - Fix mdoc(7) style nits. r236279: - Add '-width Pa' to src.conf.5 for mdoc(7) style consistency. Notes: svn path=/stable/9/; revision=236430