Hi,
I was trying to build papi 5.0.1 with the bundled libpfm and found that it
wouldn't build on 32-bit processors because one of the bit fields was too large
and didn't fit in 32-bit. I ended up working the following patch to split the
reserved field into something that would fit in 32-bits. Is there any
particular reason that field needs to be a single 58-bit quantity?
-Will
diff -up papi-5.0.1/src/libpfm4/lib/pfmlib_intel_snbep_unc_perf_event.c.i686 papi-5.0.1/src/libpfm4/lib/pfmlib_intel_snbep_unc_perf_event.c
diff -up papi-5.0.1/src/libpfm4/lib/pfmlib_intel_snbep_unc_priv.h.i686 papi-5.0.1/src/libpfm4/lib/pfmlib_intel_snbep_unc_priv.h
--- papi-5.0.1/src/libpfm4/lib/pfmlib_intel_snbep_unc_priv.h.i686 2012-09-21 19:51:56.700000553 -0400
+++ papi-5.0.1/src/libpfm4/lib/pfmlib_intel_snbep_unc_priv.h 2012-09-21 19:52:18.967000007 -0400
@@ -166,7 +166,8 @@ typedef union {
} ha_addr;
struct {
unsigned long opc:6; /* opcode match */
- unsigned long res1:58; /* reserved */
+ unsigned long res1:26; /* reserved */
+ unsigned long res2:32; /* reserved */
} ha_opc;
} pfm_snbep_unc_reg_t;
------------------------------------------------------------------------------
How fast is your code?
3 out of 4 devs don\\\'t know how their code performs in production.
Find out how slow your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219672;13503038;z?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel