stephane eranian wrote:
Hi,event name: L2_LD event name: L2_LINES_IN event name: L2_LINES_OUT event name: L2_M_LINES_OUTM event name: (null) Segmentation fault (core dumped)I think there is something wrong with the event names (strings). There is no L2_M_LINES_OUTM event, there is: { .pme_name = "L2_M_LINES_OUT", .pme_code = 0x27, .pme_flags = PFMLIB_CORE_CSPEC, .pme_desc = "Modified lines evicted from the L2 cache", .pme_umasks = { INTEL_CORE_SPECIFICITY_UMASKS, INTEL_CORE_HW_PREFETCH_UMASKS }, .pme_numasks = 4 }, So it looks like something gets overwritten. Not clear what. I don't have the problem myself, so it must be compiler version dependent.
That failure mode sounds similar to what I encounted a week or so ago running things on a pentium M. Might try the attached patch and see if that resolves the problem.
-Will
Index: lib/pfmlib_i386_p6.c =================================================================== RCS file: /cvsroot/perfmon2/libpfm/lib/pfmlib_i386_p6.c,v retrieving revision 1.26 diff -u -r1.26 pfmlib_i386_p6.c --- lib/pfmlib_i386_p6.c 30 Jul 2008 04:08:06 -0000 1.26 +++ lib/pfmlib_i386_p6.c 12 Aug 2008 03:33:29 -0000 @@ -572,8 +572,7 @@ .get_event_counters = pfm_i386_p6_get_event_counters, .dispatch_events = pfm_i386_p6_dispatch_events, .pmu_detect = pfm_i386_p6_detect_pii, - .pmu_detect = pfm_i386_p6_init_pii, - .pmu_init = pfm_i386_p6_init_ppro, + .pmu_init = pfm_i386_p6_init_pii, .get_impl_pmcs = pfm_i386_p6_get_impl_perfsel, .get_impl_pmds = pfm_i386_p6_get_impl_perfctr, .get_impl_counters = pfm_i386_p6_get_impl_counters,
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ perfmon2-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/perfmon2-devel
