Re: [PATCH net-next 3/4] selftests: net: declare section names for bpf_offload

2024-04-09 Thread Alexei Starovoitov
On Mon, Apr 8, 2024 at 8:17 PM Jakub Kicinski wrote: > > Non-ancient ip (iproute2-5.15.0, libbpf 0.7.0) refuses to load > the sample with maps because we don't generate BTF: > >libbpf: BTF is required, but is missing or corrupted. >ERROR: opening BPF object file failed > > Enable BTF by

[PATCH net-next 3/4] selftests: net: declare section names for bpf_offload

2024-04-08 Thread Jakub Kicinski
Non-ancient ip (iproute2-5.15.0, libbpf 0.7.0) refuses to load the sample with maps because we don't generate BTF: libbpf: BTF is required, but is missing or corrupted. ERROR: opening BPF object file failed Enable BTF by adding -g to clang flags. With that done neither of the programs