Hi, On Mon, Jun 21, 2010 at 9:55 AM, lulu he <lolos...@gmail.com> wrote: > Hi, > > I wanna collect statistics of paralle applications every 10M > instructions or 100M. > > I know serveral tools may do this, > ie. oprofile, pfmon, PAPI, VTune. > > My question is this , I am not really sure what the above 4 tools > share in common? > A common kernel interface? OR a common library? > As far as I know, pfmon needs perfmon2 kernel patch, PAPI needs > perfctr kernel patch? > They do not share must in common, though PAPI can work on top of perfctr or perfmon and soon perf_events.
The perf_events interface is now the official kernel API to access the performance counters. So I advise you to use this API and tools. You need a kernel >= 2.6.31. I recommend using 2.6.34. As for the tool, it is called perf. It comes from the kernel sources. Some distros may already provide a package for it, otherwise compile it from the kernel source tree in tools/perf. The perf tool can collect profiles. You can chose the event and the sampling period. This is what you need. > And which library(libpfmon,or?) should I use for collecting statistics > every 10M instructions? > > Thanks. > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > perfmon2-devel mailing list > perfmon2-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/perfmon2-devel > ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel