记录下Ubuntu 21(impish) bpf 编译过程。
安装基础及下载代码apt update
apt install build-essential git make libelf-dev clang strace tar bpfcc-tools linux-headers-$(uname -r) gcc-multilib
apt install libreadline-dev binutils-dev flex bison llvm
git clone --depth 1 git://kernel.ubuntu.com/ubuntu/ubuntu-impish
#https://github.com/bpftools/linux-observability-with-bpf
cd /root/impish/tools/bpf
make && make install prefix=/usr/local
find /usr/local -name “bpf*”
/usr/local/sbin/bpftool
/usr/local/bin/bpf_asm
/usr/local/bin/bpf_dbg
/usr/local/bin/bpf_jit_disasm
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)