aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorDavid Vernet <[email protected]>2023-01-25 10:47:32 -0600
committerAlexei Starovoitov <[email protected]>2023-01-25 10:25:57 -0800
commit1e12d3ef47d228e4e7d30f9bc5e6744ede90319c (patch)
tree920700d659b11adaaa5812ac4639cc006d7f4de6 /tools/testing/selftests/bpf/prog_tests/autoload.c
parent2514a31241e1e9067d379e0fbdb60e4bc2bf4659 (diff)
bpf: Allow BPF_PROG_TYPE_STRUCT_OPS programs to be sleepable
BPF struct_ops programs currently cannot be marked as sleepable. This need not be the case -- struct_ops programs can be sleepable, and e.g. invoke kfuncs that export the KF_SLEEPABLE flag. So as to allow future struct_ops programs to invoke such kfuncs, this patch updates the verifier to allow struct_ops programs to be sleepable. A follow-on patch will add support to libbpf for specifying struct_ops.s as a sleepable struct_ops program, and then another patch will add testcases to the dummy_st_ops selftest suite which test sleepable struct_ops behavior. Signed-off-by: David Vernet <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions