ubuntu17.04 调试系统工具bcc,systamtap安装
发行版 ubuntu17.04
cat lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=17.04
DISTRIB_CODENAME=zesty
DISTRIB_DESCRIPTION="Ubuntu 17.04"
查看自带的LINUX内核版本
uname -a
Linux server1 4.10.0-19-generic #21-Ubuntu SMP Thu Apr 6 17:04:57 UTC 2017 x86_64 x86_64 x86_64 GNU/Lin
内核符号下载:
http://ddebs.ubuntu.com/pool/main/l/linux/linux-image-4.10.0-19-generic-dbgsym_4.10.0-19.21_amd64.ddeb
sudo dpkg -i linux-image-4.10.0-19-generic-dbgsym_4.10.0-19.21_amd64.ddeb
systemtap安装:
sudo apt-get install systemtap
sudo apt-get install systemtap-sdt-dev
bcc 安装:
sudo apt-get -y install bison build-essential cmake flex git libedit-dev libllvm3.7 llvm-3.7-dev libclang-3.7-dev python zlib1g-dev libelf-dev
sudo apt-get -y install luajit luajit-5.1-dev
git clone https://github.com/iovisor/bcc.git
mkdir bcc/build; cd bcc/build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
make
sudo make install
sudo apt-get -y install netperf iperf
OK