perf report: Fix initializion of annotate symbol priv area
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 11 Feb 2011 14:09:54 +0000 (12:09 -0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 11 Feb 2011 14:09:54 +0000 (12:09 -0200)
commit0849327d13a0bd7f6512b7c21f4b3e79efb2076d
tree2a63d79f17dff257b8ac160f0138bdb00f6e4747
parent7c940c18c57e45910f7dd9a4011c4658cacba4b6
perf report: Fix initializion of annotate symbol priv area

We only allocate it when in TUI mode. In --stdio mode unconditionally
initializing this area leads to memory corruption.

Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-report.c