Jason,
 
I tried that as well and get similar error. The oprofile shipped with redhat is in /usr/bin.
 
 /usr/bin/opcontrol --version
opcontrol: oprofile 0.8.1 compiled on Oct 15 2004 15:23:20
 
/usr/bin/opcontrol --init
cat: /dev/oprofile/cpu_type: No such file or directory
Unable to open cpu_type file for reading
Make sure you have done opcontrol --init
cpu_type '(null)' is not valid
 
4 such CPUs on the server
cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 33
model name      : Dual Core AMD Opteron(tm) Processor 285
stepping        : 2
cpu MHz         : 2592.676
cache size      : 1024 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext lm 3dnowext 3dnow pni ts fid
bogomips        : 4964.35
TLB size        : 1088 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp
:
:
:
 
 
Am I missing anything ?
 
-Safder
 
 
 
-------------- Original message --------------
From: "Yeh, Jason" <jason.yeh@amd.com>

Safder,

 

Are you trying to run the Oprofile downloaded from the website?  If you are, you really need to use the Oprofile shipped with Red Hat. 

 

Jason

 


From: oprofile-list-bounces@lists.sourceforge.net [mailto:oprofile-list-bounces@lists.sourceforge.net] On Behalf Of safkhan@comcast.net
Sent: Thursday, August 03, 2006 12:31 PM
To: oprofile-list@lists.sourceforge.net
Subject: Unable to run oprofile on a AMD opteron system

 

I have a AMD opteron linux (RHEL4 2.6.9-22.0.2.EL) system and am unable to initialize oprofile. I get the following message.

----

opcontrol --init
cat: /dev/oprofile/cpu_type: No such file or directory
Unable to open cpu_type file for reading
Make sure you have done opcontrol --init
cpu_type 'unset' is not valid

----

 

Following information maybe helpful.

 

 uname -a
Linux wauwinet 2.6.9-22.0.2.ELsmp #1 SMP Thu Jan 5 17:11:56 EST 2006 x86_64 x86_64 x86_64 GNU/Linux

opcontrol --version
opcontrol: oprofile 0.9.1 compiled on Aug  1 2006 16:41:22

rpm -qi oprofile
Name        : oprofile                     Relocations: (not relocatable)
Version     : 0.8.1                             Vendor: Red Hat, Inc.
Release     : 11                            Build Date: Fri 15 Oct 2004 03:24:41 PM EDT
Install Date: Sat 22 Jul 2006 12:31:01 AM EDT      Build Host: thor.perf.redhat.com
Group       : Development/System  &nb sp;         Source RPM: oprofile-0.8.1-11.src .rpmSize        : 6106218                          License: GPL
Signature   : DSA/SHA1, Wed 20 Oct 2004 01:19:02 PM EDT, Key ID b44269d04f2a6fd2
Packager    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>
URL         : http://oprofile.sf.net
Summary     : System wide profiler for ix86 processors.
Description :
oprofile is a profiling system for x86 systems running Linux 2.2/2.4.
Profiling runs transparently during the background, and profile data
can be collected at any time. oprofile makes use of t he hardware performance
counters provided on Intel P6, and AMD Athlon family processors, and can use
the RTC for p rofili ng on othe x86 processor types.

 

Please let me know if you need any more information. Any help would be greatly appreciated.

 

Thanks

 

-Safder