]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8f0421588d738a17bb94b1d8b245f53bbbdf7e67
tree7f6f598f052e2dd7c07e9aae27c455e061fb06e2
parent8138b991b4e062eb74fed48b744be1595caa2b8d
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