On Thu, May 19, 2022 at 11:14 AM Vincent Li <vincent.mc.li@xxxxxxxxx> wrote: > > Hi, > > Here is my step to run bpf selftest on Ubuntu 20.04.2 LTS > > git clone https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git > cd bpf-next; cp /boot/config-5.10.0-051000-generic .config; yes "" | > make oldconfig; make bzImage; make modules; cd > tools/testing/selftests/bpf/; make > > then below, am I missing something in kernel config to cause "libbpf: > failed to load program 'vxlan_get_tunnel_src'" > > ./test_progs -a tunnel > > invalid func unknown#177 Yes, you are missing bpf_trace_vprintk() (that's helper #177), which is called through log_err() -> bpf_printk() -> bpf_trace_vprintk(). Either use recent enough kernel or remove log_err() statements. [...]