Jason,

On Thu, May 25, 2006 at 09:35:16AM -0500, Yeh, Jason wrote:
> Hi Stephane,
> 
> I tried to send the following mail to the perfmon list, but I believe it
> is still held up for moderator approval.
> Would you please forward this mail, or if you have any suggestion,
> please let me know.  Thank you.

I am on vacation currently and cannot easily access the mailing-list
admin web page. I'll do that next week.

See below for some comments.

> 
> Jason
> 
> > ______________________________________________ 
 > From:        Yeh, Jason  
> > Sent:       Tuesday, May 23, 2006 10:04 AM
> > To: '[email protected]'
> > Subject:    Perfmon on x86-64
> > 
> > Hello,
> > 
> > I have been trying to install and test Perfmon2 on a 4-way Opteron
> > system for past few days without much success.  The system is loaded
> > with a Red Hat Enterprise 4 with the 2.6.16 patched with the Perfmon2
> > patches.  The kernel is patched and re-compiled without any error, and
> > booted with the follow Perfmon messages in the log:
> > 
> >     Initializing CPU#0
> >     perfmon: installed CPU0 gate
> >     .....
> >     perfmon: version 2.2
> >     perfmon: added sampling format default
> >     .....
> > 
> > libpfm-3.2-060512 also compiled and installed without any error.
> > However, when I try to run examples in libpfm directory,
> > "pfm_create_context" would always fail even though everything seems to
> > be installed correctly.  The output of "whichcpu" seems to be correct
> > as well:
> >     
> >     PMU model detected by pfmlib: AMD X86-64
> >     number of PMD registers     : 4
> >     implemented PMD registers   : [ 0  1  2  3  ]
> >     number of PMC registers     : 4
> >     implemented PMC registers   : [ 0  1  2  3  ]
> >     number of counters          : 4
> >     implemented counters        : [ 0  1  2  3  ]
> >     hardware counter width      : 48
> >     number of events supported  : 209
> > 
> > I found couple interesting things when I run strace on the "self"
> > executable in the example directory:
> > 1. "/sys/kernel/perfmon/pmu_desc/mappings" does not exist in the
> > system.
> > 2. "/sys/kernel/perfmon/pmu_model" is Unknown.
> > 
> > Can anyone suggest how I can farther identify why "pfm_create_context
> > always failed?
> > Thanks.
> > 
A couple of things:
        - the test of libpfm above does not make any perfmon system calls
        - Did you check the system calls numbers. I think this patch was for 
2.6.17-rc4
          awhere they've added some new syscalls.
        - By default, the PMU description table which drives the x86-64 perfmon 
code is not compiled in.
          This is in the perfmon_amd.ko kernel module.  If you did not run make 
modules_install then  the module
          is  not in the right place and cannot be automatically loaded on 
first pfm-create_context().
         You can always insmod the module yourself.
If that does not work, let me know.


-Stephane
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/

Reply via email to