bpf/selftests: Verify struct_ops prog sleepable behavior
authorDavid Vernet <void@manifault.com>
Wed, 25 Jan 2023 16:47:35 +0000 (10:47 -0600)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 25 Jan 2023 18:25:57 +0000 (10:25 -0800)
commit7dd880592a88799f3ef48fda507849a75f11cbf0
tree86fdb6a4bd97f6de4ff32ddfc2ca8d83fa9666d6
parent51a52a29ebaa8395de090fa415c6e1b2899a50f1
bpf/selftests: Verify struct_ops prog sleepable behavior

In a set of prior changes, we added the ability for struct_ops programs
to be sleepable. This patch enhances the dummy_st_ops selftest suite to
validate this behavior by adding a new sleepable struct_ops entry to
dummy_st_ops.

Signed-off-by: David Vernet <void@manifault.com>
Link: https://lore.kernel.org/r/20230125164735.785732-5-void@manifault.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/linux/bpf.h
net/bpf/bpf_dummy_struct_ops.c
tools/testing/selftests/bpf/prog_tests/dummy_st_ops.c
tools/testing/selftests/bpf/progs/dummy_st_ops_fail.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/dummy_st_ops_success.c [moved from tools/testing/selftests/bpf/progs/dummy_st_ops.c with 72% similarity]