user6600604
user6600604

Reputation:

I can't run the "perf" command. Perf is a linux profiler for stack traces

Trying to use the perf profiler. I've installed linux generic tools, but no luck. Here is the message I'm getting:


r@r-K55A:~$ perf
WARNING: perf not found for kernel 3.16.0-45

  You may need to install the following packages for this specific kernel:
    linux-tools-3.16.0-45-generic
    linux-cloud-tools-3.16.0-45-generic

  You may also want to install one of the following packages to keep up to date:
    linux-tools-generic
    linux-cloud-tools-generic

I've tried to install the above packages, but I get the following error:


Unable to locate package linux-tools-3.16.0-45-generic
E: Couldn't find any package by regex 'linux-tools-3.16.0-45-generic'

Upvotes: 2

Views: 6355

Answers (2)

Oleg Chirukhin
Oleg Chirukhin

Reputation: 1000

You can safely use this snippet:

sudo apt install linux-tools-common linux-tools-generic linux-tools-$(uname -r)

Upvotes: 10

user6600604
user6600604

Reputation:

I could never get it working. Updated my Kernal to newest stable version and tried to download the above packages from sudo apt-get install. I finally found the packages manually online, and it's working fine.

Upvotes: 0

Related Questions