perf top: fix segfault
authorMike Galbraith <efault@gmx.de>
Sun, 24 May 2009 06:35:49 +0000 (08:35 +0200)
committerIngo Molnar <mingo@elte.hu>
Sun, 24 May 2009 06:57:08 +0000 (08:57 +0200)
commitc2990a2a582d73562d4dcf2502c39892a19a691d
tree840d7c137214e3dd1885e07b81f7bef35bbd1aa3
parent475c55797323b67435083f6e2eb8ee670f6410ec
perf top: fix segfault

c6eb13 increased stack usage such that perf-top now croaks on startup.

Take event_array and mmap_array off the stack to prevent segfault on boxen
with smallish ulimit -s setting.

Signed-off-by: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: John Kacur <jkacur@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Documentation/perf_counter/builtin-top.c