bpf/selftests: Update local storage selftest for sleepable programs
authorKP Singh <kpsingh@kernel.org>
Fri, 24 Dec 2021 15:29:16 +0000 (15:29 +0000)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 30 Dec 2021 01:54:40 +0000 (17:54 -0800)
commit0ae6eff2978ee118ce2b536090af0682db13bb83
tree7f6f598f052e2dd7c07e9aae27c455e061fb06e2
parent0fe4b381a59ebc53522fce579b281a67a9e1bee6
bpf/selftests: Update local storage selftest for sleepable programs

Remove the spin lock logic and update the selftests to use sleepable
programs to use a mix of sleepable and non-sleepable programs. It's more
useful to test the sleepable programs since the tests don't really need
spinlocks.

Signed-off-by: KP Singh <kpsingh@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20211224152916.1550677-3-kpsingh@kernel.org
tools/testing/selftests/bpf/prog_tests/test_local_storage.c
tools/testing/selftests/bpf/progs/local_storage.c