improvement(ebpf-Linux): enhance eBPF object loading for kernel compatibility and update attach points
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user