perf symbols: Fix reading of build-id from vDSO
authorBen Hutchings <ben@decadent.org.uk>
Wed, 13 Jan 2016 17:23:01 +0000 (17:23 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 15 Jan 2016 19:31:58 +0000 (16:31 -0300)
commit40c4a0f92aed570cc529a1e5c24c7e04a0ce8b85
treeedcab645b92b208a35d8c7f6abbfd0986005cf15
parent3caeaa562733c4836e61086ec07666635006a787
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>
tools/perf/util/symbol.c