Relative Content

Tag Archive for ebpfcilium

libbpf: Error loading .BTF into kernel: -22. Error: failed to open object file, vlen != 0

I am now trying to insert some bpf code into kernel based on cilium. Through this tutorial I step by step follow the instructions to compile using its provided Makefile and then using bpftool to try to load the object file into kernel, unfortunately it always shows the errors like the picture, I am very sure that I have installed all the related dependencies and also upgrade my kernel to the newest one, the link is tutorial https://github.com/cilium/cilium/tree/main/bpf/custom
maybe someone has idea why my load fails