-
README.md states that cilium/ebpf support linux kernels 4.9+. However I cannot understand how applyRelocations() should work - BTF supported only form linux kernel 4.18. Is there any way to load BPF program on 4.9 kernel? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
So, When you say |
Beta Was this translation helpful? Give feedback.
So,
bpf2go
is a way for you to compile C to BPF and ship it in your go binary. It doesn't have a kernel dependency.When you say
applyRelocations
, I'm assuming you're talking about CO-RE? The library allows you to provide your own BTF using ProgramOptions.KernelTypes. You can combine this with btfhub which has BTF for popular distros / older kernels.