Linux – installing perf on RedHat


I read about perf tool and I was interested in using in my RedHat.
On Ubuntu it is enough to call sudo apt-get install linux-tools-2.6.38-11.

What about RED HAT? I tried both:

yum install linux-tools
yum install perf

…but it doesn't work.

Do you know where I can get the source code so that I can compile it on my own?
Currently the YUM repository is pointing to a server having most packages we usually install, but maybe it is missing this package.

What repository can I add to download it?

Are my call to yum correct? I read that call from

Thanks a lot

p.s. below details about my machine

uname -a
Red Hat Enterprise Linux Server release 5.3 (Tikanga)

cat /etc/redhat-release
Linux lndbxdev01 #1 SMP PREEMPT RT Mon Mar 23 10:58:10 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

This is the error message

Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
myrepository                                           |  951 B     00:00     
Setting up Install Process
Parsing package install arguments
No package perf available.
Nothing to do

Best Answer

perf is new enough that it's not available in RHEL 5.x, IIRC it was added only in kernel 2.6.31. It's there in RHEL 6, though.

Related Question