improvement(ebpf-Linux): enhance eBPF object loading for kernel compatibility and update attach points

This commit is contained in:
Alexandr Stelnykovych
2025-07-11 19:03:13 +03:00
parent 7946568b63
commit d5698270e9
7 changed files with 121 additions and 10 deletions

View File

@@ -14,4 +14,9 @@ headers=(
# Fetch libbpf release and extract the desired headers
curl -sL "https://github.com/libbpf/libbpf/archive/refs/tags/v${LIBBPF_VERSION}.tar.gz" | \
tar -xz --xform='s#.*/#bpf/#' "${headers[@]}"
tar -xz --xform='s#.*/#bpf/#' "${headers[@]}"
# To generate the vmlinux header file
# See "Export kernel information" at https://docs.ebpf.io/concepts/core/btf
#
# bpftool btf dump file /sys/kernel/btf/vmlinux format c > vmlinux-x86.h