summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r290572,r290646,r290848,r290849:ngie2015-11-2310-1/+1690
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r290572: Integrate tools/regression/lib/libc/gen into the FreeBSD test suite as lib/libc/tests/gen The code in test-fnmatch that was used for generating: - bin/sh/tests/builtins/case2.0 - bin/sh/tests/builtins/case3.0 has been left undisturbed. The target `make sh-tests` has been moved over from tools/regression/lib/libc/gen/Makefile to lib/libc/tests/gen/Makefile and made into a PHONY target case2.0 and case3.0 test input generation isn't being done automatically. This needs additional discussion. Sponsored by: EMC / Isilon Storage Division r290646: Add missing licensing boilerplate to test-fnmatch.c Carry over licensing author info from fnmatch_test.c (jilles@) Sponsored by: EMC / Isilon Storage Division r290848: Fix -Wunused warnings Sponsored by: EMC / Isilon Storage Division r290849: Fix -Wmissing-braces warnings by adding braces around all the testcase inputs Sponsored by: EMC / Isilon Storage Division
* MFC r290870:ngie2015-11-231-2/+2
| | | | | | Add NO_WERROR and WARNS to PROG_OVERRIDE_VARS for bsd.prog.mk compatibility Sponsored by: EMC / Isilon Storage Division
* MFC r291047:ngie2015-11-231-0/+1
| | | | | | | | | Don't leak work if __mlx4_register_vlan(..) fails in mlx4_master_immediate_activate_vlan_qos(..) Differential Revision: https://reviews.freebsd.org/D4203 Submitted by: Miles Olrich <miles.olrich@isilon.com> Sponsored by: EMC / Isilon Storage Division
* MFC r290650, r290709, r291067, r291068, r291069 and r291070:hselasky2015-11-2344-0/+27451
| | | | | | | | | | | | | | | | Add mlx5 and mlx5en driver(s) for ConnectX-4 and ConnectX-4LX cards from Mellanox Technologies. The current driver supports ethernet speeds up to and including 100 GBit/s. Infiniband support will be done later. The code added is not compiled by default, which will be done by a separate commit. Sponsored by: Mellanox Technologies Differential Revision: https://reviews.freebsd.org/D4177 Differential Revision: https://reviews.freebsd.org/D4178 Differential Revision: https://reviews.freebsd.org/D4179 Differential Revision: https://reviews.freebsd.org/D4180
* MFC r290914:ngie2015-11-2317-429/+575
| | | | | | | | | | | | | | Integrate tools/regression/pipe in to the FreeBSD test suite as tests/sys/kern/pipe - Fix style(9) bugs - Fix compiler warnings - Use `nitems(x)` instead of `sizeof(x) / sizeof(*x)` pattern The testcases will be converted over to ATF eventually, but for now will be integrated in as plain C tests Sponsored by: EMC / Isilon Storage Division
* MFC r290909:ngie2015-11-232-0/+239
| | | | | | Add some initial tests for SLIST and STAILQ macros Sponsored by: EMC / Isilon Storage Division
* MFC r290911,r290912:ngie2015-11-232-0/+11
| | | | | | | | | | | | | | | | | | | r290911: Ignore EINTR from usleep(3) in try_locks(..) NetBSD's usleep(3) only returns -1/sets errno=EINVAL when `microseconds` is one million or more Submitted by: pho Sponsored by: EMC / Isilon Storage Division r290912: Integrate contrib/netbsd-tests/kernel/t_lockf.c into the FreeBSD test suite as tests/sys/kern/lockf_test Sponsored by: EMC / Isilon Storage Division
* MFC r290532,r290561,r290843,r290844,r290845:ngie2015-11-2335-933/+843
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r290532: Integrate tools/regression/lib/libc/locale into the FreeBSD test suite as lib/libc/tests/locale Sponsored by: EMC / Isilon Storage Division r290561: Delete leftover printfs from when these were TAP tests Sponsored by: EMC / Isilon Storage Division r290843: Polish up the tests a bit more after projects/collation was merged to head Provide more meaningful diagnostic messages if LC_CTYPE can't be set properly instead of segfaulting, because setlocale returns NULL and strcmp(NULL, b) will always segfault Split up the testcases so one failing (in this case en_US.ISO8859-15) won't cause the rest of the testcases to be skipped Remove some unused variables Sponsored by: EMC / Isilon Storage Division r290844: Polish up iswctype_test - Split up the testcases into C locale and ja_JP.eucJP testcases. - Avoid a segfault in the event that setlocale fails, similar to r290843 - Replace `sizeof(x) / sizeof(*x)` pattern with `nitems(x)` Sponsored by: EMC / Isilon Storage Division r290845: Remove unused variables; sort by alignment where needed Sponsored by: EMC / Isilon Storage Division
* MFC r290850:ngie2015-11-231-0/+6
| | | | | | | | | Cast xdr_void to xdrproc_t to mute -Wincompatible-pointer-types warnings from clang This pattern is used in other areas of lib/libc/rpc Sponsored by: EMC / Isilon Storage Division
* MFC r290869:ngie2015-11-231-12/+10
| | | | | | | | | Redo r290847: use #ifdef __NetBSD__ on all the non-public APIs to mute -Wunused-but-set-variable warnings with gcc dealing with the function calls Reported by: gcc Sponsored by: EMC / Isilon Storage Division
* MFC r290563,r290868,r291038:ngie2015-11-2310-318/+277
| | | | | | | | | | | | | | | | | | | | | | | | | | | r290563: Integrate tools/regression/lib/libc/net into the FreeBSD test suite as lib/libc/tests/net Also, fix eui64_aton_test:test_str(..). The test was comparing the result of eui64_aton to a pointer of the expected result. Sponsored by: EMC / Isilon Storage Division r290868: Fix -Wformat issues Reported by: gcc Sponsored by: EMC / Isilon Storage Division r291038: Do not print out errno if the call succeeded unexpectedly; this was a mistake made in r290868 Reported by: jilles Sponsored by: EMC / Isilon Storage Division
* MFC r290907:ngie2015-11-231-0/+4
| | | | | | Expect all testcases dealing with invalid salts to fail on FreeBSD Sponsored by: EMC / Isilon Storage Division
* MFC r290905,r290922:ngie2015-11-237-169/+257
| | | | | | | | | | | | | | | | | | | r290905: Integrate acct(2) testcase in as tests/sys/kern/acct/acct_test The :encode_tv_random_million testcase fails the epsilon tests a few thousand times out of one million, so expect the testcase to fail Submitted by: keramida Sponsored by: EMC / Isilon Storage Division r290922: Remove directory made obsolete by r290905 X-MFC note: stable/10 only Sponsored by: EMC / Isilon Storage Division
* MFC r290492:kib2015-11-212-9/+8
| | | | Move intmax_t and uintmax_t type declarations to sys/_stdint.h.
* MFC r290367, r290370, r290437:ume2015-11-201-10/+16
| | | | | | | Change to not truncate an interface name when -W option is specified. MFC Requested by: Jim Thompson <jim__at__netgate.com>
* MFC 290662jpaetzel2015-11-201-8/+8
| | | | | | | | | | | | | Fix a bug in the CPU % limiting code If you attempt to set a pcpu limit that is higher than 110% using rctl (for instance, you want a jail to be able to use 2 cores on your system so you set pcpu to 200%) the thing you are trying to limit becomes unthrottled. PR: 189870 Submitted by: dustinwenz@ebureau.com Reviewed by: trasz
* MFC 290416:jhb2015-11-191-0/+29
| | | | | | | | | | | | Chelsio T5 chips do not properly echo the No Snoop and Relaxed Ordering attributes when replying to a TLP from a Root Port. As a workaround, disable No Snoop and Relaxed Ordering in the Root Port of each T5 adapter during attach so that CPU-initiated requests do not contain these flags. Note that this affects CPU-initiated requests to all devices under this root port. Sponsored by: Chelsio
* MFC r290400asomers2015-11-191-7/+4
| | | | Update authors' contact info and fix grammar bugs.
* MFC r290639:hselasky2015-11-192-106/+281
| | | | | | | | Update the wsp driver to support newer touch pads, like found in MacBookPro11,4 and MacBook12,1. This update adds support for the force touch parameter. PR: 204420
* MFC r290542:hselasky2015-11-192-39/+143
| | | | | | | Avoid using the bounce buffer when the source or destination buffer is 32-bits aligned. Merge the two bounce buffers into a single one. Some rough tests showed that the DWC OTG throughput on RPI2 increased by 10% after this patch.
* MFC r290489:hselasky2015-11-192-0/+32
| | | | | Add helper function to check if a USB page cache buffer is properly aligned to reduce the use of bounce buffers in PIO mode.
* MFC: r290549,r290729ache2015-11-191-22/+7
| | | | | | | | | | | | | | r290549: Reorganize code to elimitate one _sseek() call for append modes. r290729: 1) Remove my overcomplicated error fallback and just return error immediatelly as old code does, now for append modes too. Real use case for such fallback is impossible (unless specially crafted). 2) Remove now unneded include I forgot to remove in prev. commits.
* MFC r290847:ngie2015-11-192-0/+6
| | | | | | | Fix -Wunused warnings with variables used unlit code by adding appropriate #ifdef guards around the variables Sponsored by: EMC / Isilon Storage Division
* MFC r290645:ngie2015-11-191-5/+2
| | | | | | | | | | | Fix some trivial warnings with bootparamd/main.c - Convert K&R to something a bit less ancient - Remove an incorrect, duplicate prototype for bootparamprog_1(..) PR: 71667 Submitted by: bcran Sponsored by: EMC / Isilon Storage Division
* Document EN-15:19.kqueue, EN-15:20.vm, SA-15:25.ntpgjb2015-11-172-0/+23
| | | | Sponsored by: The FreeBSD Foundation
* MFC r289888:avatar2015-11-171-4/+8
| | | | | | | - Plugging a memory leak when malloc() failed during initialisation; - Plugging another memory leak inside the destructor. Reviewed by: matk
* MFC r290452: zfsboottest: catch up with r241289, call zfs_spa_init() foravg2015-11-171-7/+9
| | | | all found pools
* MFC r290451: zfsboottest: build as a 32 bit applicationavg2015-11-171-0/+1
|
* MFC r290253:ngie2015-11-1610-49/+25
| | | | | | | Remove unnecessary `if (x)` tests before calling `free(x)`; free(3) already employs this check Sponsored by: EMC / Isilon Storage Division
* MFC r290567:ngie2015-11-164-0/+80
| | | | | | Add some basic tests that exercise cputime limits with limits(1) Sponsored by: EMC / Isilon Storage Division
* Follow up to r290255ngie2015-11-161-1/+0
| | | | | | | The utimensat testcase was never integrated into stable/10 because the syscall is not present on stable/10 Sponsored by: EMC / Isilon Storage Division
* MFC r290255:ngie2015-11-164-37/+68
| | | | | | | Add _test suffix to multiple tests in lib/libc to conform to the design noted in the FreeBSD Test Suite wiki Sponsored by: EMC / Isilon Storage Division
* Remove tools/regression/acltoolsngie2015-11-1613-3295/+0
| | | | | | Should have been done with r290894 Sponsored by: EMC / Isilon Storage Division
* MFC r289446:ngie2015-11-1616-0/+3345
| | | | | | | | | | | | | | Integrate tools/regression/acltools into the FreeBSD test suite as tests/sys/acl - Make the requirements more complete for the testcases - Detect prerequisites so the tests won't fail (zfs.ko is loaded, zpool(1) is available, ACL support is enabled with UFS, etc). - Work with temporary files/directories/mountpoints that work with atf/kyua - Limit the testcases to work on temporary filesystems to reduce tainting the test host Reviewed by: trasz (earlier version) Differential Revision: https://reviews.freebsd.org/D3810
* MFC r289195:ngie2015-11-1512-673/+688
| | | | | | | | | | | | | | | | | | | | | | Integrate the tests from lib/libarchive, usr.bin/cpio, and usr.bin/tar in to the FreeBSD test suite functional_test.sh was ported from bin/sh/tests/functional_test.sh, as a small wrapper around libarchive_test, bsdcpio_test, and bsdtar_test provided by upstream. A handful of testcases in lib/libarchive/tests have been disabled as they were failing when run with kyua test (see BROKEN_TESTS in lib/libarchive/tests/Makefile) As a sidenote: this removes the check/test targets from the Makefiles as they don't match the pattern used in the rest of the FreeBSD test suite. Sponsored by: EMC / Isilon Storage Division Conflicts: lib/libarchive/test usr.bin/cpio/test
* MFC r289195:ngie2015-11-1512-412/+800
| | | | | | | | | | | | | | | | | | | | | | Integrate the tests from lib/libarchive, usr.bin/cpio, and usr.bin/tar in to the FreeBSD test suite functional_test.sh was ported from bin/sh/tests/functional_test.sh, as a small wrapper around libarchive_test, bsdcpio_test, and bsdtar_test provided by upstream. A handful of testcases in lib/libarchive/tests have been disabled as they were failing when run with kyua test (see BROKEN_TESTS in lib/libarchive/tests/Makefile) As a sidenote: this removes the check/test targets from the Makefiles as they don't match the pattern used in the rest of the FreeBSD test suite. Sponsored by: EMC / Isilon Storage Division Conflicts: lib/libarchive/test usr.bin/cpio/test
* MFC r283245:ngie2015-11-151-1/+0
| | | | | | r283245 (by imp): Remove stray DEBUG_FLAGS=-g that snuck in with r184761.
* Bump .Ddngie2015-11-151-1/+1
|
* MFC r290259,r290601:ngie2015-11-151-15/+16
| | | | | | | | | | | | | | | | | | | | | | | | r290259: Sync makefs(8) content a bit with src/usr.sbin/makefs/makefs.8@1.53 Sections involving unimplemented filesystems (chfs, msdosfs, udf, v7fs) and options have been omitted. Obtained from: NetBSD Sponsored by: EMC / Isilon Storage Division r290601: Follow up to r290259 dealing with makefs(8) - Don't use contractions (don't -> do not) - Change "throw away" to "discard" when describing the -o keep-bad-images option - Revert author e-mail split I brought over from NetBSD, effectively reverting the change bapt made in r267668 Submitted by: bjk Sponsored by: EMC / Isilon Storage Division
* MFC r290260,r290262:ngie2015-11-151-6/+20
| | | | | | | | | | | | | | | | | | | r290260: Document undocumented long options for -t cd9660 Note which options have been implemented and which options haven't been implemented Submitted as the following NetBSD PRs: bin/50390 and bin/50392 Sponsored by: EMC / Isilon Storage Division r290262: Fix spelling of `isolevel` cd9660 option Sponsored by: EMC / Isilon Storage Division
* MFC r290571:ngie2015-11-151-6/+3
| | | | | | | | | Fix some TAP -> ATF conversion errors - Remove a leftover printf from when this was a TAP based testcase - Catch mmap failures properly Sponsored by: EMC / Isilon Storage Division
* MFC r290659,r290660:ngie2015-11-153-4/+14
| | | | | | | | | | | | | | | | | | | r290659: - Move ng_bluetooth.4 under MK_BLUETOOTH != no - Move all section 5 bluetooth manpages under MK_BLUETOOTH != no PR: 193260 Reported by: Philippe Michel <philippe.michel7@sfr.fr> Sponsored by: EMC / Isilon Storage Division r290660: Move the MK_BLUETOOTH block down below the architecture specific sections by the other generic options PR: 193260 Sponsored by: EMC / Isilon Storage Divisions
* MFC r289896:ngie2015-11-151-4/+8
| | | | | | | | | | | | | | | | Make vers.c creation atomic by using a temporary file, then moving the temporary file to vers.c at the end of the script The previous logic wrote out to vers.c multiple times, so the file could be incorrectly interpreted as being completely written out after one of the echo calls with recursive make, when in reality it was only partially written. Also, in the event the build was interrupted when creating vers.c (small race window), it would have a leftover file that needed to be cleaned up before resuming the build. Sponsored by: EMC / Isilon Storage Division
* MFC r290538:ngie2015-11-1510-374/+354
| | | | | | | | | | Integrate tools/regression/lib/libc/stdlib into the FreeBSD test suite as lib/libc/tests/stdlib - Make the code a bit more style(9) compliant - Convert a sizeof(x)/sizeof(x[0]) to nitems Sponsored by: EMC / Isilon Storage Division
* MFC r290539:ngie2015-11-159-284/+401
| | | | | | | Integrate tools/regression/lib/libc/string into the FreeBSD test suite as lib/libc/tests/string Sponsored by: EMC / Isilon Storage Division
* MFC r290174:delphij2015-11-151-2/+3
| | | | | | | In pw_userlock, set 'name' to NULL when we encounter an all number string because it is also used as an indicator of whether a name or an UID is being used and we may have undefined results as 'name' may contain uninitialized stack contents.
* MFC r290173:delphij2015-11-151-2/+1
| | | | Use strlcpy().
* MFC r290428:bdrewery2015-11-141-1/+1
| | | | remove \, it confuses things.
* MFC 290414,290415:jhb2015-11-144-3/+180
| | | | | | | | | | | | | | | | | Additional PCI helper functions. 290414: Add helper routines for PCI device drivers to read, write, and modify PCI-Express capability registers (that is, PCI config registers in the standard PCI config space belonging to the PCI-Express capability register set). Note that all of the current PCI-e registers are either 16 or 32-bits, so only widths of 2 or 4 bytes are supported. 290415: Add a new helper function for PCI devices to locate the upstream PCI-express root port of a given PCI device.
* MFC 290412:jhb2015-11-131-0/+4
| | | | Note if relaxed ordering or no snoop is enabled for each PCI-express device.
OpenPOWER on IntegriCloud