perf symbols: Print symbol offsets conditionally
authorNamhyung Kim <namhyung@kernel.org>
Wed, 16 Nov 2016 06:06:27 +0000 (15:06 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 23 Nov 2016 13:44:06 +0000 (10:44 -0300)
commita8763445f6c78628bd96d51649745065c0bb2c92
tree6cde1ce21719fd986473a631d318f77be2759909
parent3a5bfab60e59d9407b69f447702c4cd14326c825
perf symbols: Print symbol offsets conditionally

The __symbol__fprintf_symname_offs() always shows symbol offsets.  So
there's no difference between 'perf script -F ip,sym' and 'perf script
-F ip,sym,symoff'.  I don't think it's a desired behavior..

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/20161116060634.28477-2-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel_fprintf.c
tools/perf/util/symbol.h
tools/perf/util/symbol_fprintf.c