]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Add BPF_MAP_TYPE_SK_STORAGE test to test_maps
authorMartin KaFai Lau <kafai@fb.com>
Fri, 26 Apr 2019 23:39:52 +0000 (16:39 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 27 Apr 2019 16:07:05 +0000 (09:07 -0700)
commit454b5990cbc6f2dc7949bbe4bb8ae25f2ec2f393
tree68ed375e561e470a8140778bd9e9b963c9a95fb6
parentcddf8db6d6d2edecba45671016ee9856a1625e36
bpf: Add BPF_MAP_TYPE_SK_STORAGE test to test_maps

This patch adds BPF_MAP_TYPE_SK_STORAGE test to test_maps.
The src file is rather long, so it is put into another dir map_tests/
and compile like the current prog_tests/ does.  Other existing
tests in test_maps can also be re-factored into map_tests/ in the
future.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/map_tests/sk_storage_map.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_maps.c
tools/testing/selftests/bpf/test_maps.h [new file with mode: 0644]