Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip

* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
perf tools: Fix sample type size calculation in 32 bits archs
profile: Use vzalloc() rather than vmalloc() & memset()

+3 -5
+2 -4
kernel/profile.c
··· 126 126 if (prof_buffer) 127 127 return 0; 128 128 129 - prof_buffer = vmalloc(buffer_bytes); 130 - if (prof_buffer) { 131 - memset(prof_buffer, 0, buffer_bytes); 129 + prof_buffer = vzalloc(buffer_bytes); 130 + if (prof_buffer) 132 131 return 0; 133 - } 134 132 135 133 free_cpumask_var(prof_cpu_mask); 136 134 return -ENOMEM;
+1 -1
tools/perf/util/event.c
··· 42 42 int i; 43 43 44 44 for (i = 0; i < 64; i++) { 45 - if (mask & (1UL << i)) 45 + if (mask & (1ULL << i)) 46 46 size++; 47 47 } 48 48