安装环境:ubuntu18.04
安装步骤
1. 打开命令行,输入以下命令
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4052245BD4284CDD
echo "deb https://repo.iovisor.org/apt/xenial xenial main" | sudo tee /etc/apt/sources.list.d/iovisor.list
sudo apt-get update
sudo apt-get install -y bcc-tools libbcc-examples linux-headers-$(uname -r)
2. 查找 bcc 安装目录
whereis bcc
cd usr/share/bcc/tools
3. 运行cachestat
sudo ./cachestat