Skip to content
Commit 830154cd authored by JP Kobryn's avatar JP Kobryn Committed by Alexei Starovoitov
Browse files

bpf/selftests: coverage for bpf_map_ops errors



These tests expose the issue of being unable to properly check for errors
returned from inlined bpf map helpers that make calls to the bpf_map_ops
functions. At best, a check for zero or non-zero can be done but these
tests show it is not possible to check for a negative value or for a
specific error value.

Signed-off-by: default avatarJP Kobryn <inwardvessel@gmail.com>
Tested-by: default avatarEduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20230322194754.185781-2-inwardvessel@gmail.com


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent d9d93f3b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment