Hello
I have a Pentium M machine that is Family 6 / Model 14. Current perfmon
gives the following error when trying to do any measurements:
cannot configure events: invalid parameters
I've tracked this down to "pmu_version" never being set for this
family/model combo. Since it is never explicitly set, it is equal to 0,
leading to the error.
This patch makes things work, although it probably is not be the right
fix:
--- libpfm-3.2-071017/lib/pfmlib_gen_ia32.c.orig 2007-11-05
16:40:08.000000000 -0500
+++ libpfm-3.2-071017/lib/pfmlib_gen_ia32.c 2007-11-05 16:40:32.000000000
-0500
@@ -353,6 +353,8 @@
pfm_regmask_set(&gen_ia32_impl_pmcs, i);
pfm_regmask_set(&gen_ia32_impl_pmds, i);
}
+ pmu_version=1;
+
return PFMLIB_SUCCESS;
}
return PFMLIB_ERR_NOTSUPP;
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/