diff options
| author | Andrey Ignatov <[email protected]> | 2020-06-19 21:11:45 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2020-06-22 20:22:59 +0000 |
| commit | b1b53d413f16c6b5078edb127e660e67332e4d2f (patch) | |
| tree | 063a66799b0a01640a1b0b36ce3107011b4be423 /tools/testing/selftests/bpf/progs/test_autoload.c | |
| parent | bpf: Set map_btf_{name, id} for all map types (diff) | |
| download | kernel-b1b53d413f16c6b5078edb127e660e67332e4d2f.tar.gz kernel-b1b53d413f16c6b5078edb127e660e67332e4d2f.zip | |
selftests/bpf: Test access to bpf map pointer
Add selftests to test access to map pointers from bpf program for all
map types except struct_ops (that one would need additional work).
verifier test focuses mostly on scenarios that must be rejected.
prog_tests test focuses on accessing multiple fields both scalar and a
nested struct from bpf program and verifies that those fields have
expected values.
Signed-off-by: Andrey Ignatov <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: John Fastabend <[email protected]>
Acked-by: Martin KaFai Lau <[email protected]>
Link: https://lore.kernel.org/bpf/139a6a17f8016491e39347849b951525335c6eb4.1592600985.git.rdna@fb.com
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions
