On Wed, Sep 8, 2010 at 3:57 PM, Peter Zijlstra <pet...@infradead.org> wrote: > On Wed, 2010-09-08 at 15:56 +0200, stephane eranian wrote: >> On Wed, Sep 8, 2010 at 3:52 PM, Peter Zijlstra <pet...@infradead.org> wrote: >> > On Wed, 2010-09-08 at 15:30 +0200, Stephane Eranian wrote: >> >> + } times[NR_CPUS] ____cacheline_aligned_in_smp; >> > >> > That's fail! NR_CPUS can be like 4k for distro configs. >> > >> How do you do this on struct that are dynamically allocated? >> The number of css is dynamic. > > alloc_percpu()? > Ok, I will look into this. Thanks. Clearly we can kmalloc() the array. But it would be nicer to have one struct allocated per-cpu (avoid the cacheline_aligned_in_smp stuff).
------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd _______________________________________________ perfmon2-devel mailing list perfmon2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/perfmon2-devel