Score:1

I can not get perf on freshly installed 22.04.2 LTS

lv flag

I have uname -r as 5.19.0-32-generic.

I have tried to install linux-tools-5.19.0-32-generic, but that package does not exist.

If I install linux-tools-common and linux-tools-generic, I get linux-tools-5.15.0-76 and linux-tools-5.15.0-76-generic, but when I run perf I get this output

WARNING: perf not found for kernel 5.19.0-32

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

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

The package linux-tools-5.19.0-32-generic that does not exist and linux-tools-generic was already installed.

Does Ubuntu not keep perf up-to-date? Can I build it from source and get it to work?

I found perf headers in ../../linux-hwe-5.19-headers-5.19.0-32/tools/perf I tried to make it, but

  BUILD:   Doing 'make -j8' parallel build
Makefile.perf:8: ../scripts/utilities.mak: No such file or directory
make[1]: *** No rule to make target '../scripts/utilities.mak'.  Stop.
make: *** [Makefile:70: all] Error 2

and yea, that target does not exist.

Do I have to downgrade to get perf working?

user535733 avatar
cn flag
Does it truly need to be 5.19.0-32? The current is 5.19.0-46.
user535733 avatar
cn flag
`linux-tools-5.19.0-46-generic` is currently available for Jammy.
John Glen avatar
lv flag
I installed Fedora instead and sudo yum install perf worked right away. Much better UX.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.