From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932312AbcASNf3 (ORCPT ); Tue, 19 Jan 2016 08:35:29 -0500 Received: from terminus.zytor.com ([198.137.202.10]:43761 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932240AbcASNfS (ORCPT ); Tue, 19 Jan 2016 08:35:18 -0500 Date: Tue, 19 Jan 2016 05:34:28 -0800 From: tip-bot for Ben Hutchings Message-ID: Cc: hpa@zytor.com, ben@decadent.org.uk, acme@redhat.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, mingo@kernel.org, peterz@infradead.org Reply-To: linux-kernel@vger.kernel.org, tglx@linutronix.de, peterz@infradead.org, mingo@kernel.org, hpa@zytor.com, ben@decadent.org.uk, acme@redhat.com In-Reply-To: <20160113172301.GT28542@decadent.org.uk> References: <20160113172301.GT28542@decadent.org.uk> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/urgent] perf symbols: Fix reading of build-id from vDSO Git-Commit-ID: 40c4a0f92aed570cc529a1e5c24c7e04a0ce8b85 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 40c4a0f92aed570cc529a1e5c24c7e04a0ce8b85 Gitweb: http://git.kernel.org/tip/40c4a0f92aed570cc529a1e5c24c7e04a0ce8b85 Author: Ben Hutchings AuthorDate: Wed, 13 Jan 2016 17:23:01 +0000 Committer: Arnaldo Carvalho de Melo CommitDate: Fri, 15 Jan 2016 16:31:58 -0300 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 Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/20160113172301.GT28542@decadent.org.uk Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/util/symbol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); /*