From: Jiri Olsa <jolsa@redhat.com>
To: Adrian Hunter <adrian.hunter@intel.com>
Cc: "Arnaldo Carvalho de Melo" <acme@kernel.org>,
"Björn Töpel" <bjorn.topel@intel.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH V2] perf tools: Fix maps__find_symbol_by_name()
Date: Fri, 7 Sep 2018 11:58:42 +0200 [thread overview]
Message-ID: <20180907095842.GB23726@krava> (raw)
In-Reply-To: <20180907085116.25782-1-adrian.hunter@intel.com>
On Fri, Sep 07, 2018 at 11:51:16AM +0300, Adrian Hunter wrote:
> Commit 1c5aae7710bb ("perf machine: Create maps for x86 PTI entry
> trampolines") revealed a problem with maps__find_symbol_by_name() that
> resulted in probes not being found e.g.
>
> $ sudo perf probe xsk_mmap
> xsk_mmap is out of .text, skip it.
> Probe point 'xsk_mmap' not found.
> Error: Failed to add events.
>
> maps__find_symbol_by_name() can optionally return the map of the found
> symbol. It can get the map wrong because, in fact, the symbol is found
> on the map's dso, not allowing for the possibility that the dso has more
> than one map. Fix by always checking the map contains the symbol.
>
> Reported-by: Björn Töpel <bjorn.topel@intel.com>
> Tested-by: Björn Töpel <bjorn.topel@intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
thanks,
jirka
next prev parent reply other threads:[~2018-09-07 9:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-07 8:51 Adrian Hunter
2018-09-07 9:58 ` Jiri Olsa [this message]
2018-09-10 14:34 ` Arnaldo Carvalho de Melo
2018-09-11 6:30 ` Adrian Hunter
2018-09-12 19:22 ` [tip:perf/urgent] " tip-bot for Adrian Hunter
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=20180907095842.GB23726@krava \
--to=jolsa@redhat.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=bjorn.topel@intel.com \
--cc=linux-kernel@vger.kernel.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