aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/perf_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/perf_event.c')
-rw-r--r--kernel/perf_event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/perf_event.c b/kernel/perf_event.c
index 75ab8a2df6b2..f416aef242c3 100644
--- a/kernel/perf_event.c
+++ b/kernel/perf_event.c
@@ -1772,7 +1772,7 @@ struct callchain_cpus_entries {
1772 struct perf_callchain_entry *cpu_entries[0]; 1772 struct perf_callchain_entry *cpu_entries[0];
1773}; 1773};
1774 1774
1775static DEFINE_PER_CPU(int, callchain_recursion[4]); 1775static DEFINE_PER_CPU(int, callchain_recursion[PERF_NR_CONTEXTS]);
1776static atomic_t nr_callchain_events; 1776static atomic_t nr_callchain_events;
1777static DEFINE_MUTEX(callchain_mutex); 1777static DEFINE_MUTEX(callchain_mutex);
1778struct callchain_cpus_entries *callchain_cpus_entries; 1778struct callchain_cpus_entries *callchain_cpus_entries;
@@ -1828,7 +1828,7 @@ static int alloc_callchain_buffers(void)
1828 if (!entries) 1828 if (!entries)
1829 return -ENOMEM; 1829 return -ENOMEM;
1830 1830
1831 size = sizeof(struct perf_callchain_entry) * 4; 1831 size = sizeof(struct perf_callchain_entry) * PERF_NR_CONTEXTS;
1832 1832
1833 for_each_possible_cpu(cpu) { 1833 for_each_possible_cpu(cpu) {
1834 entries->cpu_entries[cpu] = kmalloc_node(size, GFP_KERNEL, 1834 entries->cpu_entries[cpu] = kmalloc_node(size, GFP_KERNEL,