From: Darren H. <dv...@us...> - 2008-10-22 20:25:12
|
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 <gil...@bu...> > --- > + /* 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 |