Re: [perfmon2] [Perfapi-devel] FW: Proposed enhancement to libpfm4.

2014-05-07 Thread Gary Mohr
Hi Stephane, I am still looking at this code with the idea of trying to eliminate the libpfm4 changes while at the same time not duplicating libpfm4 code in PAPI. I found the libpfm4 function pfm_get_event_next which I now use to step through the events on a pmu when PAPI lists events. This ha

Re: [perfmon2] [Perfapi-devel] FW: Proposed enhancement to libpfm4.

2014-05-07 Thread Stephane Eranian
On Wed, May 7, 2014 at 9:10 PM, Gary Mohr wrote: > Hi Stephane, > > > > I am still looking at this code with the idea of trying to eliminate the > libpfm4 changes while at the same time not duplicating libpfm4 code in PAPI. > > > > I found the libpfm4 function pfm_get_event_next which I now use

Re: [perfmon2] [Perfapi-devel] FW: Proposed enhancement to libpfm4.

2014-05-07 Thread Gary Mohr
Stephane, That gave me exactly what I needed, thanks for the tip. Both the list code and the code that adds events to event sets in papi seems to be working now with the PFM_OS_PERF_EVENT_EXT mode set. I still have a couple of things that need to be fixed but so far things are looking pretty g