From: Jiri Olsa <jolsa@redhat.com>
To: Stephane Eranian <eranian@google.com>
Cc: linux-kernel@vger.kernel.org, acme@redhat.com,
peterz@infradead.org, mingo@elte.hu, namhyung@kernel.org,
dsahern@gmail.com
Subject: Re: [PATCH] perf tools: fix processing of pid/tid for mmap records
Date: Tue, 22 Apr 2014 15:32:43 +0200 [thread overview]
Message-ID: <20140422133242.GF1104@krava.brq.redhat.com> (raw)
In-Reply-To: <20140421160655.GA4201@quad>
hi,
On Mon, Apr 21, 2014 at 06:06:55PM +0200, Stephane Eranian wrote:
> perf tools: fix processing of pid/tid for mmap records
extra description line ^^^
>
> Mmaps are global to a process (always). Processing them
> per-thread was causing some serious issues in case mmaps
> would overlap. The overlap fixups would only occur in the
> context of the thread which generated the overlapping
> mmap. But that was cause issues later on when a sample
> from another thread would fall into that overlapping
> mmap.
>
> The solution to the problem is to handle ALL mmaps as
> occurring in the master thread (pid = tid) and then to
> lookup for thread map using pid as the tid argument.
> This is how samples are looking up for the thread map
> already (notice pid passed twice):
>
> int perf_event__preprocess_sample(const union perf_event *event,
> struct machine *machine,
> struct addr_location *al,
> struct perf_sample *sample)
> {
> struct thread *thread = machine__findnew_thread(machine, sample->pid,
> sample->pid);
> }
>
> Without this fix, some samples in overlapping regions
> may not be symbolized.
could you please take a look on following patchset:
http://marc.info/?l=linux-kernel&m=139749074531132&w=2
this makes the map groups shared within the process,
so it should fix above issue as well
thanks,
jirka
next prev parent reply other threads:[~2014-04-22 13:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-21 16:06 Stephane Eranian
2014-04-22 13:32 ` Jiri Olsa [this message]
2014-04-22 13:37 ` Stephane Eranian
2014-04-22 19:40 ` Don Zickus
2014-04-22 19:50 ` Stephane Eranian
2014-04-22 20:45 ` Don Zickus
2014-04-23 12:52 ` Stephane Eranian
2014-04-23 13:30 ` Don Zickus
2014-04-23 15:06 ` Stephane Eranian
2014-04-23 15:42 ` Jiri Olsa
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=20140422133242.GF1104@krava.brq.redhat.com \
--to=jolsa@redhat.com \
--cc=acme@redhat.com \
--cc=dsahern@gmail.com \
--cc=eranian@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=namhyung@kernel.org \
--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