selftests/bpf: Add selftest suite for cpumask kfuncs
authorDavid Vernet <void@manifault.com>
Wed, 25 Jan 2023 14:38:13 +0000 (08:38 -0600)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 25 Jan 2023 15:57:50 +0000 (07:57 -0800)
commit7b6abcfa15cd18de21e5bfb952df57268af2f041
treedee8ec06e5f220b358e9b90014c4d0651c57e51f
parenta6541f4d280465e3dff08a45734c0d4ac3f363a4
selftests/bpf: Add selftest suite for cpumask kfuncs

A recent patch added a new set of kfuncs for allocating, freeing,
manipulating, and querying cpumasks. This patch adds a new 'cpumask'
selftest suite which verifies their behavior.

Signed-off-by: David Vernet <void@manifault.com>
Link: https://lore.kernel.org/r/20230125143816.721952-5-void@manifault.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/DENYLIST.s390x
tools/testing/selftests/bpf/prog_tests/cpumask.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/cpumask_common.h [new file with mode: 0644]
tools/testing/selftests/bpf/progs/cpumask_failure.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/cpumask_success.c [new file with mode: 0644]