Gilles Carry wrote: > Dimension (128) of statistics arrays must be a multiple of number of cpu. > This is a hassle as you have to recompile every time your arch changes > or if you want to disable cpus. > Failing to do so causes segfault when requiring statistics if > 128 modulo nr_cpus != 0 > > This patch adds option -i to specify how many iterations are wanted > (still defaulting to 128). > It rounds up iterations to the nearest multiple of online cpus. > > Signed-off-by: Gilles Carry <[EMAIL PROTECTED]> > ---
> + /* Line below rounds up iterations to a multiple > + * of numcpus. > + * Without this, having iterations not a mutiple > + * of numcpus causes stats to segfault (overflow > + * stats array). > + */ Well... I really do want to see this paragraph properly line wrapped. -- Darren Hart IBM Linux Technology Center Real-Time Linux Team ------------------------------------------------------------------------- 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=/ _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
