diff options
Diffstat (limited to 'tools/perf/util/symbol.c')
-rw-r--r-- | tools/perf/util/symbol.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index e5c38179f728..96dbf28fc941 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c | |||
@@ -1364,13 +1364,14 @@ int dso__load_vmlinux(struct dso *dso, struct map *map, | |||
1364 | if (fd < 0) | 1364 | if (fd < 0) |
1365 | return -1; | 1365 | return -1; |
1366 | 1366 | ||
1367 | dso__set_long_name(dso, (char *)vmlinux); | ||
1368 | dso__set_loaded(dso, map->type); | ||
1369 | err = dso__load_sym(dso, map, symfs_vmlinux, fd, filter, 0, 0); | 1367 | err = dso__load_sym(dso, map, symfs_vmlinux, fd, filter, 0, 0); |
1370 | close(fd); | 1368 | close(fd); |
1371 | 1369 | ||
1372 | if (err > 0) | 1370 | if (err > 0) { |
1371 | dso__set_long_name(dso, (char *)vmlinux); | ||
1372 | dso__set_loaded(dso, map->type); | ||
1373 | pr_debug("Using %s for symbols\n", symfs_vmlinux); | 1373 | pr_debug("Using %s for symbols\n", symfs_vmlinux); |
1374 | } | ||
1374 | 1375 | ||
1375 | return err; | 1376 | return err; |
1376 | } | 1377 | } |