CO:RE Support: Add support for embedding and loading BTF for the running host #715
Labels
area/eBPF
Something involving eBPF
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
Using https://github.com/aquasecurity/btfhub, we can download the specific BTF definitions for the major kernel versions and embed those BTF definitions into the binaries.
CONFIG_DEBUG_INFO_BTF=y
is enabled in the Kernel config; it's easy to find BTF definitions for the kernel under/sys/kernel/btf/vmlinux
. However, if it's not there, we need a way to provide them if we claim that we're truly CO:RE.BTF definitions for the major Kernel versions can be downloaded from the hub, embedded, and loaded with the correct definitions when initializing the libbpf loader.
Tracee does this, and this article explains the process in detail https://opensource.com/article/22/9/ebpf-monitor-traffic-tracee
The text was updated successfully, but these errors were encountered: