perf report: Enable integrated annotation only if possible
authorNamhyung Kim <namhyung.kim@lge.com>
Fri, 14 Sep 2012 08:35:28 +0000 (17:35 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Sep 2012 16:09:43 +0000 (13:09 -0300)
commit034a9265c289d5298bac7bfd824d3d5b9ec892b4
tree480fd6fccf08545c309dfe6263ba2b4656d94fde
parent1af556406670f2076ea235ba8ba16da13d227e99
perf report: Enable integrated annotation only if possible

The integrated annotation feature is supported only in TUI mode.  Also
it should be enabled with 'symbol' sort key otherwise resulting hist
entry doesn't need to have same symbol as of a sample so that it can
fail on hist_entry__inc_addr_samples with -ERANGE.

You can easily see it when start perf report TUI without symbol* sort
key.  This patch fixes the problem.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1347611729-16994-2-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-report.c