From: Jeff Moyer <jmoyer@redhat.com>
To: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: Ingo Molnar <mingo@elte.hu>,
linux-kernel@vger.kernel.org,
Arnaldo Carvalho de Melo <acme@redhat.com>,
David Ahern <dsahern@gmail.com>,
Frederic Weisbecker <fweisbec@gmail.com>,
Mike Galbraith <efault@gmx.de>, Paul Mackerras <paulus@samba.org>,
Peter Zijlstra <peterz@infradead.org>,
Stephane Eranian <eranian@google.com>,
Tom Zanussi <tzanussi@gmail.com>
Subject: Re: [PATCH 1/1] perf tools: Fix thread_map event synthesizing in top and record
Date: Thu, 10 Feb 2011 14:40:29 -0500 [thread overview]
Message-ID: <x49aai38yqa.fsf@segfault.boston.devel.redhat.com> (raw)
In-Reply-To: <1297363899-21466-2-git-send-email-acme@infradead.org> (Arnaldo Carvalho de Melo's message of "Thu, 10 Feb 2011 16:51:39 -0200")
Arnaldo Carvalho de Melo <acme@infradead.org> writes:
> From: Arnaldo Carvalho de Melo <acme@redhat.com>
>
> Jeff Moyer reported these messages:
>
> Warning: ... trying to fall back to cpu-clock-ticks
>
> couldn't open /proc/-1/status
> couldn't open /proc/-1/maps
> [ls output]
> [ perf record: Woken up 1 times to write data ]
> [ perf record: Captured and wrote 0.008 MB perf.data (~363 samples) ]
>
> That lead me and David Ahern to see that something was fishy on the thread
> synthesizing routines, at least for the case where the workload is started
> from 'perf record', as -1 is the default for target_tid in 'perf record --tid'
> parameter, so somehow we were trying to synthesize the PERF_RECORD_MMAP and
> PERF_RECORD_COMM events for the thread -1, a bug.
>
> So I investigated this and noticed that when we introduced support for
> recording a process and its threads using --pid some bugs were introduced and
> that the way to fix it was to instead of passing the target_tid to the event
> synthesizing routines we should better pass the thread_map that has the list of
> threads for a --pid or just the single thread for a --tid.
Thanks for looking into this, acme. Honestly, I can't for the life of
me figure out from your description how this problem would have affected
systems. The fix makes the warnings go away, but I am still left with
the hung system I originally reported.
So, what does this patch actually fix? And do you or others have any
interest in trying to work out why perf is hanging my system?
Thanks!
Jeff
next prev parent reply other threads:[~2011-02-10 19:40 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-10 18:51 [GIT PULL 0/1] perf/urgent fix for record and top Arnaldo Carvalho de Melo
2011-02-10 18:51 ` [PATCH 1/1] perf tools: Fix thread_map event synthesizing in top and record Arnaldo Carvalho de Melo
2011-02-10 19:40 ` Jeff Moyer [this message]
2011-02-10 20:00 ` Arnaldo Carvalho de Melo
2011-02-10 20:11 ` Peter Zijlstra
2011-02-11 7:05 ` [GIT PULL 0/1] perf/urgent fix for record and top Ingo Molnar
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=x49aai38yqa.fsf@segfault.boston.devel.redhat.com \
--to=jmoyer@redhat.com \
--cc=acme@infradead.org \
--cc=acme@redhat.com \
--cc=dsahern@gmail.com \
--cc=efault@gmx.de \
--cc=eranian@google.com \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=paulus@samba.org \
--cc=peterz@infradead.org \
--cc=tzanussi@gmail.com \
/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
all inboxes | Powered by JetHome®