selftests/bpf: move test_section_names into test_progs and fix it
Subsystems (5)
PATCH 1/1 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 <[email protected]>
Signed-off-by Andrii Nakryiko <[email protected]>
---
tools/testing/selftests/bpf/Makefile | 2 +-
.../section_names.c} | 90 +++++++------------
2 files changed, 31 insertions(+), 61 deletions(-)
rename tools/testing/selftests/bpf/{test_section_names.c => prog_tests/section_names.c} (73%)tools/testing/selftests/bpf/Makefile +1 -1
@@ -28,7 +28,7 @@ LDLIBS += -lcap -lelf -lrt -lpthread TEST_GEN_PROGS = test_verifier test_tag test_maps test_lru_map test_lpm_map test_progs \ test_align test_verifier_log test_dev_cgroup test_tcpbpf_user \ test_sock test_btf test_sockmap get_cgroup_id_user test_socket_cookie \ - test_cgroup_storage test_select_reuseport test_section_names \ + test_cgroup_storage test_select_reuseport \ test_netcnt test_tcpnotify_user test_sock_fields test_sysctl test_hashmap \ test_cgroup_attach xdping test_progs-no_alu32
tools/testing/selftests/bpf/prog_tests/section_names.c renamed from tools/testing/selftests/bpf/test_section_names.c +30 -60
145 lines not on this page · raw message
Signature · 1 line
2.17.1
Alexei Starovoitov
AppliedQuoted 7 lines · Andrii Nakryiko
Make
test_section_namesintotest_progstest. 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 <[email protected]>Signed-off-by Andrii Nakryiko <[email protected]>
Applied. Thanks