本文最后更新于 2025-04-05T11:56:53+08:00
WSL2安装BCC_bcc wsl-CSDN博客
遇到问题:
1 LD vmlinux BTFIDS vmlinux FAILED: load BTF from vmlinux: No such file or directory make: *** [Makefile:1226 : vmlinux] Error 255 make: *** Deleting file 'vmlinux'
尝试方法:
在”scripts\pahole-flags.sh”文件下添加
1 2 3 4 if [ "${pahole_ver} " -ge "124" ]; then extra_paholeopt="${extra_paholeopt} --skip_encoding_btf_enum64" fi
失败
1 2 3 4 5 [wsl2] memory =8 GB swap =4 GB kernelCommandLine =sysctl.vm.overcommit_memory=1 processors =4
每次开始前:
1 2 3 4 5 export KERNELRELEASE =$(uname -r) make KERNELRELEASE =$KERNELRELEASE -j 4 make KERNELRELEASE =$KERNELRELEASE modules -j 4 sudo make KERNELRELEASE =$KERNELRELEASE modules_install
ubuntu22.04安装bcc
https://pqcu77.github.io/2025/03/29/ubuntu22-04安装bcc/