Thanks for the reply, Stephane, "stephane eranian" <eran...@googlemail.com> wrote on 12/11/2008 05:35:21 PM:
> Corey, > > On Fri, Dec 12, 2008 at 1:48 AM, Corey Ashford > <cjash...@linux.vnet.ibm.com> wrote: > > Hi Stephane, > > > > We are working through the example programs in the libpfm distribution and > > came across multiplex.c and multiplex2.c > > > > After fixing a superficial problem with get_cpu_speed(), we find that on > > ppc970mp we are getting an error in pfm_write_pmds, where the smpl_pmds > > field is set to some large (bogus) value and is causing the program to exit > > with an error. Similarly, on Power6, this same test is exiting with an > > error in pfm_write_pmcs, where the flags are set to an illegal value. > > > > Looking more carefully at the test, it appears to be pretty old and may > > pre-date the multiplexing built into perfmon itself. > > > That is correct. > > > Is this example still valid? Would you expect it to run on other hardware > > with modification? It looks like it was designed for Itanium initially. > > > I think you can ignore that program for now. I know it has problems. I fixed > some of them but clearly there are others. I am assuming your looking at > the current CVS code, right? Yes. Looking a bit further, I see that a call to calloc is made for the pmcs and pmds arrays, so I'm not sure how we're ending up with bogus values in those fields. For the time being though, I'm going to lower the priority of fixing this one. Multiplex2 does work fine on both ppc970 and power6. Regards, - Corey Corey Ashford Software Engineer IBM Linux Technology Center, Linux Toolchain Beaverton, OR 503-578-3507 cjash...@us.ibm.com ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel