Hi,
The attached patch that sets PFMON_MAX_CPUS based on __CPU_SETSIZE.
I thought this had been changed a while ago, but now I see that it's
hardcoded to 2048. Hardcoding it to 2048 will cause it to fail for
larger machines.
It makes more sense to set it to __CPU_SETSIZE from glibc, just like
other applications do. On large machines, __CPU_SETSIZE will always
be set large enough; otherwise there would be glibc problems.
Thank you,
Tony
--
Tony Ernst
[EMAIL PROTECTED]
--- pfmon.h 2008-05-13 14:50:39.083219587 -0500
+++ pfmon.h 2008-05-13 14:50:45.875839710 -0500
@@ -117,7 +117,7 @@
/*
* max number of cpus (threads) supported
*/
-#define PFMON_MAX_CPUS 2048 /* MUST BE power of 2 */
+#define PFMON_MAX_CPUS __CPU_SETSIZE /* MUST BE power of 2 */
/*
* max number of PMU models supported
*/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
perfmon2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel