I'm trying to use AF_XDP sockets in my software. This works fine on amd64 architecture but on the Raspberry-Pi my bpf and xdp-loader programs fail to load with errors:
BPF program load failed: invalid argument.btf_vmlinux is malformed
The directory where vmlinux should reside (/sys/kernel/btf) is missing from the RPi version of Ubuntu which suggest that the kernel has not been built with BTF support (CONFIG_DEBUG_INFO_BTF=y).
BTF is compiled into the kernel for amd64.So, was this an accident or intentional to build the latest RPi kernel without BTF?
If it is intentional, does this suggest that Ubuntu cannot be used on the RPi if you need to use XDP?