Commit b9ce0c99d820b7680fdb4dc39bc7b5ff79d6b5b0

Authored by Namhyung Kim
Committed by Arnaldo Carvalho de Melo
1 parent 574799bfdb

perf report: Use ui__has_annotation()

Since we introduced the ui__has_annotation() for that, don't open code
it.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung.kim@lge.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1395124359-11744-2-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

tools/perf/builtin-report.c
... ... @@ -928,7 +928,7 @@
928 928 * so don't allocate extra space that won't be used in the stdio
929 929 * implementation.
930 930 */
931   - if (use_browser == 1 && sort__has_sym) {
  931 + if (ui__has_annotation()) {
932 932 symbol_conf.priv_size = sizeof(struct annotation);
933 933 machines__set_symbol_filter(&session->machines,
934 934 symbol__annotate_init);