selftests/bpf: Move test_section_names into test_progs and fix it
authorAndrii Nakryiko <andriin@fb.com>
Wed, 23 Oct 2019 06:09:13 +0000 (23:09 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 23 Oct 2019 17:06:46 +0000 (10:06 -0700)
commit9bc6384b364407381cc24c2150d13dd29f5bfdd2
tree3058dd6eaedbd04de6b66cf8dae1c991dac84a46
parentd7d962a095474fcd94861d5f4cccada2e4215aae
selftests/bpf: Move test_section_names into test_progs and fix it

Make test_section_names into test_progs test. Also fix ESRCH expected
results. Add uprobe/uretprobe and tp/raw_tp test cases.

Fixes: dd4436bb8383 ("libbpf: Teach bpf_object__open to guess program types")
Reported-by: kernel test robot <rong.a.chen@intel.com>
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20191023060913.1713817-1-andriin@fb.com
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/prog_tests/section_names.c [new file with mode: 0644]
tools/testing/selftests/bpf/test_section_names.c [deleted file]