stephane eranian <eran...@googlemail.com> wrote on 06/19/2009 12:27:31 PM:

> On Fri, Jun 19, 2009 at 9:20 PM, stephane 
> eranian<eran...@googlemail.com> wrote:
> > On Fri, Jun 19, 2009 at 9:03 PM, Corey J Ashford<cjash...@us.ibm.com> 
wrote:
> >> Hi Stephane,
> >>
> >> For these sort of events which require multiple pmds, how does libpfm
> >> describe to the caller the formula for combining the values from the 
pmds?
> >>  Or is it expected that the caller knows how?
> >
> > It is expected the caller knows.
> Well, libpfm4 would need to provide some help, at least to detect 
> that an event
> description is indeed special.
> 
> For instance, on AMD64, if I pass IBSOP_EVENT:m=0xfff0, then I will get
> back one PMC and 7 PMDS. The tool somehow need to know user has 
requested
> IBS and that special handling is required.
> 
> We could do something such as:
>  int pfm_amd64_event_ibsop(const char *str);
>  int pfm_amd64_event_ibsfetch(const char *);

Sorry, I'm not following this.  The tool calls them with a full event 
string returns a boolean which says yes or no that the user requested IBS 
?  What does the ibsfetch vs. ibsop do?

Originally, I thought you were talking not about PEBS/IBS so much as 
events similar to PAPI's preset events, or the generic events in PCL which 
can require multiple counters to implement.

- Corey


------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to