Well I have some good news and some not so good news.

 I have the perf_events component restructured to eliminate the call to 
pfm_find_event (plus several other libpfm4 calls) and it looks like it is 
working when adding events to an event set.  I figured out how to get the fully 
qualified event string back from the encode function and now use that to fill 
in the information needed by the papi event table.  There is a lot less code 
executed now when doing an add event and it is much easier to follow what is 
happening.  This new code supports the cpu=x  mask (I get the value back from 
the encode function but still have not made papi changes to use it).

The not so good news is that the code which was modified is also used by the 
papi enumeration code to list events for the component.  The PAPI enumerate 
code now only lists 2  core events on my SNBEP system.  So these changes are 
not very friendly to the list facilities.  Time to look at the list code to see 
what is required to make it work again.

Gary

> -----Original Message-----
> From: Vince Weaver [mailto:vincent.wea...@maine.edu]
> Sent: Tuesday, April 22, 2014 9:26 PM
> To: Gary Mohr
> Cc: Heike McCraw; Philip Mucci; eran...@gmail.com; <perfapi-
> de...@eecs.utk.edu>; perfmon2-devel
> Subject: Re: [perfmon2] [Perfapi-devel] FW: Proposed enhancement to
> libpfm4.
> 
> On Tue, 22 Apr 2014, Gary Mohr wrote:
> 
> > My first impression was to ask Vince and Phil if they could explain why
> PAPI
> > uses pfm_find_event.  But Phil beat me to it so I decided to have a look at
> > the PAPI source code to see if I could figure it out instead.  After a quick
> > check of the source, it looks like the calls to pfm_find_event may be
> > unnecessary so I will try to bypass them and see what happens.
> 
> Anything PAPI/libpfm4 related you can blame me, as I wrote all of that
> code.
> 
> If it's doing something weird, it's almost certainly due to event/umask
> enumeration.  That was the big problem with moving PAPI to libpfm4.
> 
> The PAPI event enumeration code really wants to be able to take an
> arbitrary event name and say "give me the next event", same with umasks.
> It's hard to do that with libpfm4, which is why the code is a bit of a mess.
> 
> Vince
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to