mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
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>
This commit is contained in:
parent
51a52a29eb
commit
7dd880592a
5 changed files with 93 additions and 24 deletions
|
@ -1474,6 +1474,7 @@ struct bpf_dummy_ops {
|
|||
int (*test_1)(struct bpf_dummy_ops_state *cb);
|
||||
int (*test_2)(struct bpf_dummy_ops_state *cb, int a1, unsigned short a2,
|
||||
char a3, unsigned long a4);
|
||||
int (*test_sleepable)(struct bpf_dummy_ops_state *cb);
|
||||
};
|
||||
|
||||
int bpf_struct_ops_test_run(struct bpf_prog *prog, const union bpf_attr *kattr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue