From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Ben Hutchings <ben@decadent.org.uk>
Cc: Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] perf tools: Fix reading of build-id from vDSO
Date: Wed, 13 Jan 2016 16:51:03 -0300 [thread overview]
Message-ID: <20160113195103.GQ18367@kernel.org> (raw)
In-Reply-To: <20160113172301.GT28542@decadent.org.uk>
Em Wed, Jan 13, 2016 at 05:23:01PM +0000, Ben Hutchings escreveu:
> 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.
Thanks, we should really prefer the long_name, applied.
- Arnaldo
> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
> ---
> 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 cd08027..b60bc49 100644
> --- a/tools/perf/util/symbol.c
> +++ b/tools/perf/util/symbol.c
> @@ -1465,7 +1465,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);
>
> /*
next prev parent reply other threads:[~2016-01-13 19:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-13 17:23 Ben Hutchings
2016-01-13 19:51 ` Arnaldo Carvalho de Melo [this message]
2016-01-19 13:34 ` [tip:perf/urgent] perf symbols: " tip-bot for Ben Hutchings
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160113195103.GQ18367@kernel.org \
--to=acme@kernel.org \
--cc=ben@decadent.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome