On Wed, Apr 22, 2026 at 06:20:24PM +0200, Alexis Lothoré (eBPF Foundation) wrote: > 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) <[email protected]>
Acked-by: Paul Chaignon <[email protected]> > --- > tools/testing/selftests/bpf/prog_tests/btf_dump.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tools/testing/selftests/bpf/prog_tests/btf_dump.c > b/tools/testing/selftests/bpf/prog_tests/btf_dump.c > index f1642794f70e..9f1b50e07a29 100644 > --- a/tools/testing/selftests/bpf/prog_tests/btf_dump.c > +++ b/tools/testing/selftests/bpf/prog_tests/btf_dump.c > @@ -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); > > -- > 2.53.0 > >

