diff options
-rw-r--r-- | tools/perf/util/srcline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/srcline.c b/tools/perf/util/srcline.c index f3e4bc5fe5d2..77c180637138 100644 --- a/tools/perf/util/srcline.c +++ b/tools/perf/util/srcline.c | |||
@@ -274,7 +274,7 @@ char *get_srcline(struct dso *dso, unsigned long addr) | |||
274 | if (!addr2line(dso_name, addr, &file, &line, dso)) | 274 | if (!addr2line(dso_name, addr, &file, &line, dso)) |
275 | goto out; | 275 | goto out; |
276 | 276 | ||
277 | if (asprintf(&srcline, "%s:%u", file, line) < 0) { | 277 | if (asprintf(&srcline, "%s:%u", basename(file), line) < 0) { |
278 | free(file); | 278 | free(file); |
279 | goto out; | 279 | goto out; |
280 | } | 280 | } |