freebsd-nq/tests/sys
Doug Moore 84e2ae64c5 vm_reserv: use enhanced bitstring for popmaps
vm_reserv.c uses its own bitstring implemenation for popmaps. Using
the bitstring_t type from a standard header eliminates the code
duplication, allows some bit-at-a-time operations to be replaced with
more efficient bitstring range operations, and, in
vm_reserv_test_contig, allows bit_ffc_area_at to more efficiently
search for a big-enough set of consecutive zero-bits.

Make bitstring changes improve the vm_reserv code.  Define a bit_ntest
method to test whether a range of bits is all set, or all clear.
Define bit_ff_at and bit_ff_area_at to implement the ffs and ffc
versions with a parameter to choose between set- and clear- bits.
Improve the area_at implementation.  Modify the bit_nset and
bit_nclear implementations to allow code optimization in the cases
when start or end are multiples of _BITSTR_BITS.

Add a few new cases to bitstring_test.

Discussed with:	alc
Reviewed by:	markj
Tested by:	pho (earlier version)
Differential Revision:	https://reviews.freebsd.org/D33312
2022-01-12 11:03:53 -06:00
..
acl tests/sys/acl: Add ATF C test for newly added acl_* functions. 2021-08-27 11:52:21 +03:00
aio Temporarily skip flaky tset cases under sys.aio.aio_test in CI 2021-09-29 03:32:47 +08:00
audit swapon(8): adapt to the new swapoff(2) interface 2021-12-09 02:48:59 +02:00
auditpipe Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
capsicum Fix MK_TESTS build with MK_ASAN/MK_UBSAN 2021-08-02 14:33:24 +01:00
cddl tests/sys/cddl: correctly quote atf_set "require.progs" 2021-03-08 09:38:27 +00:00
common tests/divert: fix after 2ce85919bb (IP source address validation) 2021-11-12 11:20:06 -08:00
devrandom Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
fifo Avoid hard-coding pipe buffer sizes in the pipe and fifo kqueue tests. 2020-05-20 17:48:18 +00:00
file vfs: Permit unix sockets to be opened with O_PATH 2021-09-17 14:19:06 -04:00
fs fusefs: implement VOP_ALLOCATE 2021-12-31 21:05:28 -07:00
geom gmultipath tests: Re-enable the failloop test in CI 2021-10-04 12:28:27 -04:00
kern tests: Add some regression tests for a couple of KERN_PROC_* sysctls 2021-12-17 13:10:52 -05:00
kqueue fifos: delegate unhandled kqueue filters to underlying filesystem 2021-10-12 02:43:07 -05:00
mac Resolve conflict between the fusefs(5) and mac_bsdextended(4) tests 2020-05-02 20:14:59 +00:00
mqueue Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
net tests: sys.net.if_bridge_test.span is failing in CI 2021-12-15 18:32:37 -07:00
netgraph Remove riscv workaround in sys.netgraph.hub.loop test 2021-12-05 11:12:40 -04:00
netinet tests/libalias: Portrange 2021-12-27 14:54:57 +01:00
netinet6 ndp tests: fix cleanup 2021-12-13 18:14:59 +01:00
netipsec ping: fix some man pages and tests after r368045 2020-11-26 04:55:02 +00:00
netmap netmap: update unit tests with libnetmap tests 2021-04-02 14:39:30 +00:00
netpfil tests: sys.netpfil.pf.pfsync.defer fails in CI 2021-12-16 13:09:59 +01:00
opencrypto ossl: Add support for AES-CBC cipher 2021-11-08 10:53:31 +01:00
pjdfstest Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
posixshm posixshm tests: Fix occasional largepage_mprotect failures 2022-01-03 13:00:50 -05:00
sys vm_reserv: use enhanced bitstring for popmaps 2022-01-12 11:03:53 -06:00
vfs tests/sys/vfs/lookup_cap_dotdot: No longer aborts after ATF update 2021-02-04 17:57:27 +00:00
vm shared shadow vm object invalidation regression test 2021-04-07 12:39:05 -07:00
vmm vmm: Add credential to cdev object 2021-08-18 13:41:33 -04:00
Makefile vmm: Add credential to cdev object 2021-08-18 13:41:33 -04:00
Makefile.depend
Makefile.inc Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00