On a pentium M machine I was getting crashes with new libpfm. I tracked the
problem down the incorrect initializers. Attached it the simple patch to
correctly initialize the field for the static structure.
-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
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel