Hello Victor,

Thank you for taking the time post about this issue.

Power6's PMC 5 & 6 are a little problematic.  There are several issues 
with these counters:

- They count continuously (cannot be disabled), which means that in order 
to use them on a per-thread basis, we have to virtualize them in the 
kernel.
- They count while in kerne/user/hypervisor mode always.  We didn't make 
an attempt to emulate counting in different modes using kernel software, 
so if you use these counters, you must specify that your PLM value to 
include all states (user + kernel + hypervisor).
- They don't support interrupt on overflow.

So they are very restricted.  If you supply those two events to libpfm, 
and set your PLM mask to all modes, you should get a group which will use 
PMC 5 & 6.  If you have an example where that fails to work, please post 
it, and I will get a fix to you as soon as I can.

Regards,

- Corey

Corey Ashford
Software Engineer
IBM Linux Technology Center, Linux Toolchain
Beaverton, OR 
503-578-3507 
cjash...@us.ibm.com



victor jimenez <betaband...@gmail.com> wrote on 03/23/2009 10:29:26 AM:

> Hello,
> 
> I am working with POWER6 and I would like to use PMC5 and PMC6. I
> looked at the kernel patch and it seems everything is implemented and
> ready for PMC5/6 to work OK. However, it seems that libpfm (I am using
> version 3.8) is not supporting those virtual registers yet.
> 
> The problem comes when pfm_dispatch_events() is called, since there is
> no way to set PM_INST_CMPL on PMC5 and PM_RUN_CYC on PMC6. I modified
> a bit the code in power6_events.h so both PM_INST_CMPL and PM_RUN_CYC
> are mapped to PMC5 and PMC6. In fact it worked for some of the event
> combinations, but I do not understand some parts of the
> implementation, so it was not always working.
> 
> My question is whether there is already some way to access PMC5 and
> PMC6 that I am not aware of. If it is not possible yet, are there any
> plans to fix this?
> 
> Thanks in advance,
> Victor
> 
> 
------------------------------------------------------------------------------
> Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
> powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
> easily build your RIAs with Flex Builder, the Eclipse(TM)based 
development
> software that enables intelligent coding and step-through debugging.
> Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
> _______________________________________________
> perfmon2-devel mailing list
> perfmon2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/perfmon2-devel


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to