Friday, April 26, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 7845  / 3 Years ago, fri, july 23, 2021, 2:34:55

I want to use profiling tools in linux. I see some information say Oprofile is not support in Ubuntu 12.04 and the alternate is perf. So I try to install perf.



I installed linux-tools-common, linux-base and linux-tools.



Then I type perf in the terminal and it returns:



perf not found for kernel 3.12.6
You may need to install linux-tools-3.12.6-3.12.6


But I could not install either linux-tools-3.12.6-3.12.6 (I think it's a wrong name) or linux-tools-3.12.6.



Is it a wrong way to install and use perf in that way, or is it the kernel problem(the kernel is compiled by myself)?


More From » apt

 Answers
5

You may need to build the tools since you are using a custom kernel. If you want to use linux tools from the repositories, you need to use the kernel provided by Ubuntu. Linux tools checks your kernel version and if it don't match it's own it will not run.


[#27841] Sunday, July 25, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
erranbe

Total Points: 118
Total Questions: 95
Total Answers: 117

Location: Virgin Islands (U.S.)
Member since Tue, Jul 7, 2020
4 Years ago
erranbe questions
;