How to install "perf" monitoring tool?
On Ubuntu 14.04 I had to install three packages:
apt-get install linux-tools-common linux-tools-generic linux-tools-`uname -r`
The perf
utility can be found in the linux-tools
package.
Make sure you are installing this tool for the right Kernel release. If you just type:
sudo apt-get install linux-tools
It will install it for the latest Linux release in your machine and in case you are booting a previous version (say for stability reason), it will err. In my case it installed for .45 instead of .43 and I had to use the following command to install it:
sudo apt-get install linux-tools-3.2.0.43
You can find your Kernel release by typing :
uname -r
To make sure it's working right you can try this:
perf record /bin/ls
Just in case you are going to install Zoom tool, you need to have Perf installed for being able to use all its utilities.