summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/strobemeta.h
diff options
context:
space:
mode:
authorDavid Vernet <void@manifault.com>2022-10-13 02:20:15 +0300
committerAndrii Nakryiko <andrii@kernel.org>2022-10-13 18:27:38 +0300
commit6e44b9f375a3135fc4960d76a9ea6720625cad73 (patch)
treebc4231cfacdb6fb9493d576ea718775f325086a0 /tools/testing/selftests/bpf/progs/strobemeta.h
parentc92a7a52243871eb10e0ea2260685def47fb5094 (diff)
downloadlinux-6e44b9f375a3135fc4960d76a9ea6720625cad73.tar.xz
selftests/bpf: Make bpf_user_ringbuf_drain() selftest callback return 1
In commit 1bfe26fb0827 ("bpf: Add verifier support for custom callback return range"), the verifier was updated to require callbacks to BPF helpers to explicitly specify the range of values that can be returned. bpf_user_ringbuf_drain() was merged after this in commit 205715673844 ("bpf: Add bpf_user_ringbuf_drain() helper"), and this change in default behavior was missed. This patch updates the BPF_MAP_TYPE_USER_RINGBUF selftests to also return 1 from a bpf_user_ringbuf_drain() callback so as to properly test this going forward. Signed-off-by: David Vernet <void@manifault.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20221012232015.1510043-3-void@manifault.com
Diffstat (limited to 'tools/testing/selftests/bpf/progs/strobemeta.h')
0 files changed, 0 insertions, 0 deletions