Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 24103  / 1 Year ago, sat, january 7, 2023, 6:37:13

I am using performance counters (https://perf.wiki.kernel.org/index.php/Main_Page) on Ubuntu 13.10 x86_64. If I type perf I get:



perf not found for kernel 3.11.0-031100
You may need to install linux-tools-3.11.0-031100-generic


But apt-get install ... does not find it



E: Unable to locate package linux-tools-3.11.0-031100-generic


uname -r returns 3.11.0-031100-generic, i.e., a slightly different kernel name (Ubuntu default is 3.11.0-13-generic)



How can I by default install the correct binaries matching the kernel (and/or what repositories do I have to add for this)?



(I know I can work around this by compiling it from the kernel sources in /tools/perf/; this works, but ideally I want to have it done automatically via apt.)


More From » apt

 Answers
0

You need to have both linux-tools and the kernel in the same version or it won't work:



sudo apt-get install linux-tools linux-generic
sudo reboot


If you are using mainline kernels you must compile perf against the mainline sources, otherwise it will not work.


[#28160] Saturday, January 7, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ameatoes

Total Points: 321
Total Questions: 106
Total Answers: 112

Location: Belarus
Member since Sat, Jul 18, 2020
4 Years ago
ameatoes questions
Tue, Aug 16, 22, 22:50, 2 Years ago
Fri, May 14, 21, 03:36, 3 Years ago
Sat, Oct 8, 22, 01:00, 2 Years ago
Fri, Feb 17, 23, 14:44, 1 Year ago
;