diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2016-01-13 17:23:01 +0000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2016-01-15 16:31:58 -0300 |
commit | 40c4a0f92aed570cc529a1e5c24c7e04a0ce8b85 (patch) | |
tree | edcab645b92b208a35d8c7f6abbfd0986005cf15 /tools | |
parent | 3caeaa562733c4836e61086ec07666635006a787 (diff) | |
download | op-kernel-dev-40c4a0f92aed570cc529a1e5c24c7e04a0ce8b85.zip op-kernel-dev-40c4a0f92aed570cc529a1e5c24c7e04a0ce8b85.tar.gz |
perf symbols: Fix reading of build-id from vDSO
We need to use the long name (the filename) when reading the build-id
from a DSO. Using the short name doesn't work for (at least) vDSOs.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20160113172301.GT28542@decadent.org.uk
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/symbol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c index 3b2de6e..ab02209 100644 --- a/tools/perf/util/symbol.c +++ b/tools/perf/util/symbol.c @@ -1466,7 +1466,7 @@ int dso__load(struct dso *dso, struct map *map, symbol_filter_t filter) * Read the build id if possible. This is required for * DSO_BINARY_TYPE__BUILDID_DEBUGINFO to work */ - if (filename__read_build_id(dso->name, build_id, BUILD_ID_SIZE) > 0) + if (filename__read_build_id(dso->long_name, build_id, BUILD_ID_SIZE) > 0) dso__set_build_id(dso, build_id); /* |