Perf安装:
Perf的源代码,一般都是内置在linux内核源码的tool目录下的。
一般如下是可以的:
sudo apt-get install linux-source
sudo apt-get install elfutils-dev libdw-dev systemtap-sdt-dev libaudit-dev libssl-dev libslang2-dev libgtk2.0-dev libperl-dev libperl-dev libiberty-dev python-dev liblzma-dev libbfd-dev libunwind-dev
cd /usr/src
cd tools/perf
make && make install
sudo cp ./perf /usr/bin/perf