Yes, at compile time, that would be very useful.
On Apr 3, 2008, at 1:07 PM, stephane eranian wrote: > Phil, > > > The patch does: > > static void adjust_sys_base(int version) > { > switch(version) { > case 25: > sys_base = 288; > break; > case 24: > default: /* 2.6.24 as default */ > sys_base = 286; > } > #endif > } > > Are you suggesting your want to force it to a particular version? > > On Thu, Apr 3, 2008 at 6:35 PM, Philip Mucci <[EMAIL PROTECTED]> wrote: >> Ok, but it would be nice to be able to set a variable at compile >> time, so we >> can still use the latest source code base. >> >> Even something that would refer to a macro like: >> >> #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) >> >> I know it's a no-n for user codes, but it's better than using stale >> codes... >> ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel