Replies: 3 comments 2 replies
-
Are you using |
Beta Was this translation helpful? Give feedback.
-
That error means the This may be a bug, because it shouldn't need that section for just loading the kernel BTF. I think it is reusing the same function that is used to read eBPF object files. |
Beta Was this translation helpful? Give feedback.
-
I meet the same problem on 4.9 kernel, then I change the btf file and the problem is solved. maybe you need double check your btf file |
Beta Was this translation helpful? Give feedback.
-
First, I write a program on a machine with kernel version 5.10.134 and remove all the features that on supported by 5.x kernel, then I want to run(from the binary or compile a new binary on old kernel machine) this program on the old kernel machine, but I found it is not work. the source code is
First the error information is:
loading objects error: field KprobeIpOutput: program kprobe_ip_output: apply CO-RE relocations: load kernel spec: no BTF found for kernel version 4.19.91-27.5.al7.x86_64: not supported
In order to explore running this program with a btf file, I download the btf file from https://mirrors.openanolis.cn/coolbpf/btf/x86_64/ and place the file under /boot,then the error information changes to
loading objects error: field KprobeIpOutput: program kprobe_ip_output: apply CO-RE relocations: load kernel spec: can't read symbols: no symbol section
It seems that the library can not work with the hacked btf file.
So I wonder how to run the ebpf program without the advanced feature in kernel 5.x on an old kernel machine.
Beta Was this translation helpful? Give feedback.
All reactions