diff options
author | Prashant Bhole <[email protected]> | 2018-10-09 10:04:54 +0900 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2018-10-09 21:52:20 -0700 |
commit | 7c85c448e7d74c4ddd759440a2141eab663567cf (patch) | |
tree | 498d230771d811b1153e5a9eae801ecc7a675dc8 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 908142e61b2e9c2411e8bc4e5092a6ab06eca8e4 (diff) |
selftests/bpf: test_verifier, check bpf_map_lookup_elem access in bpf prog
map_lookup_elem isn't supported by certain map types like:
- BPF_MAP_TYPE_PROG_ARRAY
- BPF_MAP_TYPE_STACK_TRACE
- BPF_MAP_TYPE_XSKMAP
- BPF_MAP_TYPE_SOCKMAP/BPF_MAP_TYPE_SOCKHASH
Let's add verfier tests to check whether verifier prevents
bpf_map_lookup_elem call on above programs from bpf program.
Signed-off-by: Prashant Bhole <[email protected]>
Acked-by: Alexei Starovoitov <[email protected]>
Acked-by: Song Liu <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions