Question

The only source code related to perf I could find is in the kernel source, so am not sure what I need to do to get the latest perf.

If I upgrade the kernel version (leavin the rest of my distro unchanged), will I now get the latest version of perf or is there a user space library that I also need to rebuild?

Edit - I see that the perf source is not actually in the kernel source but in a separate tools directory and I can just build this directory.

Was it helpful?

Solution

In deb based distribution perf is usually provided by a package with a name starting with linux-tools and yes, the version X of perf it's not designed to run on the kernel number Y, it's a program that is strictly tied to the kernel.

For example on Debian/Ubuntu you can write

sudo apt-get install linux-tools-$(uname -r)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top