]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
selftests/bpf: Make btf_dump use xdp_dummy rather than xdping_kern
authorAlexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
Wed, 22 Apr 2026 16:20:24 +0000 (18:20 +0200)
committerMartin KaFai Lau <martin.lau@kernel.org>
Fri, 24 Apr 2026 18:07:57 +0000 (11:07 -0700)
In order to prepare xdping tool removal from the BPF selftests
directory, make the btf_dump test use another BPF program for the btf
datasec dump test. Use xdp_dummy.bpf.o, as it is already used by various
other tests.

Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Acked-by: Paul Chaignon <paul.chaignon@gmail.com>
Link: https://patch.msgid.link/20260422-xdping-v2-1-c0f8ccedcf91@bootlin.com
tools/testing/selftests/bpf/prog_tests/btf_dump.c

index f1642794f70ed6d57afd1ea3ec9b44fc41169511..9f1b50e07a2980bc57a6c6a49f6e4a256ac63b3b 100644 (file)
@@ -1027,8 +1027,8 @@ static void test_btf_dump_datasec_data(char *str)
        char license[4] = "GPL";
        struct btf_dump *d;
 
-       btf = btf__parse("xdping_kern.bpf.o", NULL);
-       if (!ASSERT_OK_PTR(btf, "xdping_kern.bpf.o BTF not found"))
+       btf = btf__parse("xdp_dummy.bpf.o", NULL);
+       if (!ASSERT_OK_PTR(btf, "xdp_dummy.bpf.o BTF not found"))
                return;
 
        d = btf_dump__new(btf, btf_dump_snprintf, str, NULL);