Skip to content

Latest commit

 

History

History
21 lines (18 loc) · 522 Bytes

README.md

File metadata and controls

21 lines (18 loc) · 522 Bytes

linux source + BPF headers preparation

generate bpf_helpers.h, bpf_helper_defs.h, bpf_endian.h

apt get linux-source
cp /usr/src/linux-source-X.X.X/linux-source-X.X.X.tar.bz2 .
tar -xvf linux-source-X.X.X.tar.bz2
mv linux-source-X.X.X linux-source
cd linux-source
make -C tools/lib/bpf

Copy into the include directory

mkdir -p include
cp linux-source/tools/lib/bpf/bpf_endian.h \
   linux-source/tools/lib/bpf/bpf_helper_defs.h \
   linux-source/tools/lib/bpf/bpf_helpers.h \
   include/