mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 17:54:13 +08:00
e734568b67
The OProfile perf backend uses a static array to keep track of the perf events on the system. When compiling with CONFIG_CPUMASK_OFFSTACK=y && SMP, nr_cpumask_bits is not a compile-time constant and the build will fail with: oprofile_perf.c:28: error: variably modified 'perf_events' at file scope This patch uses NR_CPUs instead of nr_cpumask_bits for the array initialisation. If this causes space problems in the future, we can always move to dynamic allocation for the events array. Cc: Matt Fleming <matt@console-pimps.org> Reported-by: Russell King - ARM Linux <linux@arm.linux.org.uk> Signed-off-by: Will Deacon <will.deacon@arm.com> Cc: <stable@vger.kernel.org> # v2.6.37+ Signed-off-by: Robert Richter <robert.richter@amd.com> |
||
---|---|---|
.. | ||
buffer_sync.c | ||
buffer_sync.h | ||
cpu_buffer.c | ||
cpu_buffer.h | ||
event_buffer.c | ||
event_buffer.h | ||
nmi_timer_int.c | ||
oprof.c | ||
oprof.h | ||
oprofile_files.c | ||
oprofile_perf.c | ||
oprofile_stats.c | ||
oprofile_stats.h | ||
oprofilefs.c | ||
timer_int.c |