opnsense-src/tests/sys
Doug Moore b1290f4746 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

(cherry picked from commit 84e2ae64c5)
2022-07-11 00:54:06 -05:00
..
acl Drop "All rights reserved" from all my stuff. This includes 2020-10-28 13:46:11 +00:00
aio aio_md_test: label the md 2022-03-02 15:56:30 -06:00
audit swapon(8): adapt to the new swapoff(2) interface 2021-12-20 02:29:11 +02:00
auditpipe Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
capsicum Simplify the capsicum-test wrapper script 2021-03-17 22:22:49 +00:00
cddl zfs: Update test format strings to match variable typtes 2022-03-07 19:33:21 -05:00
common pf tests: test ALTQ CBQ on top of if_vlan 2021-09-01 15:27:01 +02: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 Have path_test ask the kernel for the page size 2022-05-03 15:04:04 +01:00
fs fusefs: handle evil servers that return illegal inode numbers 2022-06-18 08:16:20 -06:00
geom gmultipath failloop test: Add a checker for dtrace executes successfully or not 2021-09-30 11:57:06 +08:00
kern Prevent running sigwait tests in parallel 2022-06-17 22:35:24 +03:00
kqueue kqueue tests: Simplify the test runner 2022-06-07 20:42:28 -04: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 if: avoid interface destroy race 2022-05-27 18:25:10 +02:00
netgraph tests/netgraph: Tests for ng_vlan_rotate 2021-06-16 13:25:04 +02:00
netinet poll(2): Add POLLRDHUP. 2022-06-17 22:22:13 +03:00
netinet6 Add arp/ndp tests in addition to rtsock ll tests. 2021-08-24 09:02:15 +02:00
netipsec ping: fix some man pages and tests after r368045 2020-11-26 04:55:02 +00:00
netmap Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00
netpfil pf tests: pfsync and route_to test case 2022-06-18 09:30:11 +02:00
opencrypto crypto: Test all of the AES-CCM KAT vectors. 2021-10-21 14:19:24 -07: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-10 09:05:12 -05:00
sys vm_reserv: use enhanced bitstring for popmaps 2022-07-11 00:54:06 -05:00
vfs tests/sys/vfs/lookup_cap_dotdot: No longer aborts after ATF update 2021-03-17 12:22:03 +00:00
vm mmap map_at_zero test: handle W^X 2022-03-03 08:20:07 -06:00
vmm vmm: Add credential to cdev object 2021-09-01 09:07:42 -04:00
Makefile vmm: Add credential to cdev object 2021-09-01 09:07:42 -04:00
Makefile.depend DIRDEPS_BUILD: Connect MK_TESTS. 2016-03-09 22:46:01 +00:00
Makefile.inc Do a sweep and remove most WARNS=6 settings 2020-10-01 01:10:51 +00:00