freebsd-dev/tests/sys
Eric Joyner 52e8f6a331 bitstring: add functions to find contiguous set/unset bit sequences
Add bit_ffs_area_at and bit_ffc_area_at functions for searching a bit
string for a sequence of contiguous set or unset bits of at least the
specified size.

The bit_ffc_area function will be used by the Intel ice driver for
implementing resource assignment logic using a bitstring to represent
whether or not a given index has been assigned or is currently free.

The bit_ffs_area, bit_ffc_area_at and bit_ffs_area_at functions are
implemented for completeness.

I'd like to add further test cases for the new functions, but I'm not
really sure how to add them easily. The new functions depend on specific
sequences of bits being set, while the bitstring tests appear to run for
varying bit sizes.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>

Submitted by:	Jacob Keller <jacob.e.keller@intel.com>
Reviewed by:	asomers@, erj@
MFC after:	1 week
Sponsored by:	Intel Corporation
Differential Revision:	https://reviews.freebsd.org/D22400
2019-11-21 19:57:56 +00:00
..
acl Set required program for all acl tests 2019-09-05 18:54:46 +00:00
aio Revert r337929 2018-08-16 22:04:00 +00:00
audit Fix and simplify code by using ATF_REQUIRE_FEATURE macro 2019-04-01 14:21:32 +00:00
auditpipe Introduce test program for auditpipe(4) 2018-07-26 00:16:41 +00:00
capsicum Integrate capsicum-test into the FreeBSD test suite 2019-04-01 21:24:50 +00:00
cddl zfs: multiple improvements to the zpool_add tests 2019-10-10 02:17:45 +00:00
common pkgbase: Put the sys/common test into the tests package 2019-09-05 14:14:07 +00:00
devrandom random(4): Fortuna: allow increased concurrency 2019-06-17 20:29:13 +00:00
fifo other: Fix several typos and minor errors 2017-12-27 03:23:58 +00:00
file Revert r337929 2018-08-16 22:04:00 +00:00
fs fusefs: initialize C++ classes the Coverity way 2019-09-16 15:56:21 +00:00
geom Remove tests for the deprecated algorithms in r348206 2019-05-31 04:29:29 +00:00
kern coredump_phnum_test: handle full file system gracefully 2019-10-11 21:23:46 +00:00
kqueue Temporarily skip flakey test cases 2018-12-06 09:22:35 +00:00
mac DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
mqueue DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
net tests: basic VLAN test 2019-10-15 04:50:08 +00:00
netinet Skip sys.netinet.socket_afinet.socket_afinet_bind_zero temporarily because it 2019-06-23 19:37:12 +00:00
netinet6 icmpv6: Fix mbuf change in mld 2019-11-18 21:59:47 +00:00
netipsec ipsec tests: Skip if ipsec.ko is not loaded 2019-05-16 02:18:57 +00:00
netmap netmap: add test cases for multiple host rings 2019-04-13 12:50:47 +00:00
netpfil Reenable netinet6 and netpfil tests on i386, net/scapy 2.4.3_2 contains the fix 2019-11-08 18:56:02 +00:00
opencrypto tests/sys/opencrypto: enable armv8crypto on aarch64 2019-08-10 15:53:42 +00:00
pjdfstest DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
posixshm Jail and capability mode for shm_rename; add audit support for shm_rename 2019-11-18 13:31:16 +00:00
sys bitstring: add functions to find contiguous set/unset bit sequences 2019-11-21 19:57:56 +00:00
vfs vfs_lookup: Allow PATH_MAX-1 symlinks 2017-11-17 19:25:39 +00:00
vm Adjust tests after page fault changes in r352807 2019-09-29 15:17:58 +00:00
Makefile frag6: import a set of test cases 2019-10-21 09:33:45 +00:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
Makefile.inc Use MK_CHECK_USE_SANDBOX in tests/..., to deal with the fact that 2017-08-02 22:24:08 +00:00