diff options
author | Stanislav Fomichev | 2019-01-28 18:21:15 +0100 |
---|---|---|
committer | Daniel Borkmann | 2019-01-31 10:13:21 +0100 |
commit | e8ddbfb4bcb2254acb71f2ad9008d736f45273a7 (patch) | |
tree | b34fb0ede966bfac46fa1c5b7864fe53655f531c /tools/testing/selftests/bpf/test_verifier.c | |
parent | Merge branch 'hns3-next' (diff) | |
download | kernel-qcow2-linux-e8ddbfb4bcb2254acb71f2ad9008d736f45273a7.tar.gz kernel-qcow2-linux-e8ddbfb4bcb2254acb71f2ad9008d736f45273a7.tar.xz kernel-qcow2-linux-e8ddbfb4bcb2254acb71f2ad9008d736f45273a7.zip |
selftests/bpf: skip sockmap in test_maps if kernel doesn't have support
Use recently introduced bpf_probe_map_type() to skip test_sockmap()
if map creation fails. The skipped test is indicated in the output.
Example:
test_sockmap SKIP (unsupported map type BPF_MAP_TYPE_SOCKMAP)
Fork 1024 tasks to 'test_update_delete'
...
test_sockmap SKIP (unsupported map type BPF_MAP_TYPE_SOCKMAP)
Fork 1024 tasks to 'test_update_delete'
...
test_maps: OK, 2 SKIPPED
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/testing/selftests/bpf/test_verifier.c')
0 files changed, 0 insertions, 0 deletions