diff options
author | David Vernet <void@manifault.com> | 2023-06-09 22:50:50 -0500 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2023-06-12 15:09:11 -0700 |
commit | 58476d8a24bd94b96ac1ab78baba8af1cc89fbeb (patch) | |
tree | a2f4e10f06ced6c5f9a7d0cdd79f94c683c78134 /tools/testing/selftests/bpf/prog_tests/cpumask.c | |
parent | 5ba3a7a851e3ebffc4cb8f052a4581c4d8af3ae3 (diff) |
selftests/bpf: Add test for new bpf_cpumask_first_and() kfunc
A prior patch added a new kfunc called bpf_cpumask_first_and() which
wraps cpumask_first_and(). This patch adds a selftest to validate its
behavior.
Signed-off-by: David Vernet <void@manifault.com>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20230610035053.117605-2-void@manifault.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/cpumask.c')
-rw-r--r-- | tools/testing/selftests/bpf/prog_tests/cpumask.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/cpumask.c b/tools/testing/selftests/bpf/prog_tests/cpumask.c index d89191440fb1b..756ea8b590b6f 100644 --- a/tools/testing/selftests/bpf/prog_tests/cpumask.c +++ b/tools/testing/selftests/bpf/prog_tests/cpumask.c @@ -10,6 +10,7 @@ static const char * const cpumask_success_testcases[] = { "test_set_clear_cpu", "test_setall_clear_cpu", "test_first_firstzero_cpu", + "test_firstand_nocpu", "test_test_and_set_clear", "test_and_or_xor", "test_intersects_subset", |