Replies: 3 comments 3 replies
|
Are you using |
2 replies
|
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. |
1 reply
|
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 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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 supportedIn 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 sectionIt 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.
All reactions