aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/util/map.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2014-11-12 18:05:27 -0800
committerArnaldo Carvalho de Melo <acme@redhat.com>2014-11-24 18:03:47 -0300
commit85c116a6cb91a5c09b7a6c95ffc6a6cbd32cd237 (patch)
treeed4727c432cd2cfbd26a7e27cbed070f112d1df5 /tools/perf/util/map.c
parentperf symbols: Move bfd_demangle stubbing to its only user (diff)
downloadwireguard-linux-85c116a6cb91a5c09b7a6c95ffc6a6cbd32cd237.tar.xz
wireguard-linux-85c116a6cb91a5c09b7a6c95ffc6a6cbd32cd237.zip
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>
Diffstat (limited to 'tools/perf/util/map.c')
-rw-r--r--tools/perf/util/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c
index 040a785c857b..62ca9f2607d5 100644
--- a/tools/perf/util/map.c
+++ b/tools/perf/util/map.c
@@ -360,7 +360,7 @@ int map__fprintf_srcline(struct map *map, u64 addr, const char *prefix,
if (map && map->dso) {
srcline = get_srcline(map->dso,
- map__rip_2objdump(map, addr));
+ map__rip_2objdump(map, addr), NULL, true);
if (srcline != SRCLINE_UNKNOWN)
ret = fprintf(fp, "%s%s", prefix, srcline);
free_srcline(srcline);