selftests/bpf: Update bpf_cpumask_any* tests to use bpf_cpumask_any_distribute*
authorDavid Vernet <void@manifault.com>
Sat, 10 Jun 2023 03:50:52 +0000 (22:50 -0500)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 12 Jun 2023 22:09:11 +0000 (15:09 -0700)
commit5a73efc7d1b4b48ccb74fb399a818dfbd2250c89
treea21fa02e4ca69c05a174247b828819971504ed9d
parentf983be917332ea5e03f689e12c6668be48cb4cfe
selftests/bpf: Update bpf_cpumask_any* tests to use bpf_cpumask_any_distribute*

In a prior patch, we removed the bpf_cpumask_any() and
bpf_cpumask_any_and() kfuncs, and replaced them with
bpf_cpumask_any_distribute() and bpf_cpumask_any_distribute_and().
The advertised semantics between the two kfuncs were identical, with the
former always returning the first CPU, and the latter actually returning
any CPU.

This patch updates the selftests for these kfuncs to use the new names.

Signed-off-by: David Vernet <void@manifault.com>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/20230610035053.117605-4-void@manifault.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/progs/cpumask_common.h
tools/testing/selftests/bpf/progs/cpumask_success.c