selftest: epoll_busy_poll: epoll busy poll tests
authorJoe Damato <jdamato@fastly.com>
Wed, 8 May 2024 18:40:04 +0000 (18:40 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 9 May 2024 19:36:46 +0000 (12:36 -0700)
commit60e0f986e89f10f2de874ff3ce8e2230701c9706
tree9046f98335ac723c60d30d7281be70500528aa78
parente7073830cc8b52ef3df7dd150e4dac7706e0e104
selftest: epoll_busy_poll: epoll busy poll tests

Add a simple test for the epoll busy poll ioctls, using the kernel
selftest harness.

This test ensures that the ioctls have the expected return codes and
that the kernel properly gets and sets epoll busy poll parameters.

The test can be expanded in the future to do real busy polling (provided
another machine to act as the client is available).

Signed-off-by: Joe Damato <jdamato@fastly.com>
Link: https://lore.kernel.org/r/20240508184008.48264-1-jdamato@fastly.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/.gitignore
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/epoll_busy_poll.c [new file with mode: 0644]