]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/bpf: Add test for new bpf_cpumask_first_and() kfunc
authorDavid Vernet <void@manifault.com>
Sat, 10 Jun 2023 03:50:50 +0000 (22:50 -0500)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 12 Jun 2023 22:09:11 +0000 (15:09 -0700)
commit58476d8a24bd94b96ac1ab78baba8af1cc89fbeb
treea2f4e10f06ced6c5f9a7d0cdd79f94c683c78134
parent5ba3a7a851e3ebffc4cb8f052a4581c4d8af3ae3
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>
tools/testing/selftests/bpf/prog_tests/cpumask.c
tools/testing/selftests/bpf/progs/cpumask_common.h
tools/testing/selftests/bpf/progs/cpumask_success.c