]> git.baikalelectronics.ru Git - kernel.git/commit
perf callchain: Make get_srcline fall back to sym+offset
authorAndi Kleen <ak@linux.intel.com>
Thu, 13 Nov 2014 02:05:27 +0000 (18:05 -0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 24 Nov 2014 21:03:47 +0000 (18:03 -0300)
commit914e539c43032ffdaa573ca0ffc68c13d04b37b2
treeed4727c432cd2cfbd26a7e27cbed070f112d1df5
parent37733af1c0f09e7b53d12a2634a769330526299c
perf callchain: Make get_srcline fall back to sym+offset

When the source line is not found fall back to sym + offset.  This is
generally much more useful than a raw address.

For this we need to pass in the symbol from the caller.

For some callers it's awkward to compute, so we stay at the old
behaviour.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lkml.kernel.org/r/1415844328-4884-10-git-send-email-andi@firstfloor.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c
tools/perf/util/callchain.c
tools/perf/util/map.c
tools/perf/util/sort.c
tools/perf/util/srcline.c
tools/perf/util/util.h