Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing perf on old linux kernel [closed]

I have linux 2.6.18 running on my servers and would like to use 'perf' subsytem. This kernel version doesn't have perf. So I downloaded latest version linux 2.6.38 and traversed to the /tools/perf/ and installed it.

From command line, I can list the available performance counters. But when I try getting one event's features, it is showing up

"Error: open_counter returned with 38 (Function not implemented). /bin/dmesg may provide additional information.

Fatal: Not all events could be opened."

Does the old linux kernel support perf. Please suggest how can I get it running given the restriction that I can't update the kernel version on my server.

like image 338
marc Avatar asked Nov 21 '11 15:11

marc


1 Answers

Does the old linux kernel support perf.

No, it does not. The performance counters subsystem has undergone significant recent changes, and you are exceedingly unlikely to get perf working on any kernel below 2.6.31.

like image 178
Employed Russian Avatar answered Sep 23 '22 13:09

Employed Russian