From: Ingo Molnar <mingo@elte.hu>
To: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Pierre Habouzit <pierre.habouzit@intersec.com>,
Paul Mackerras <paulus@samba.org>,
linux-kernel@vger.kernel.org
Subject: Re: perf-record fix and UI improvement
Date: Fri, 7 Aug 2009 17:09:01 +0200 [thread overview]
Message-ID: <20090807150901.GA11754@elte.hu> (raw)
In-Reply-To: <1249650066.32113.706.camel@twins>
* Peter Zijlstra <a.p.zijlstra@chello.nl> wrote:
> On Fri, 2009-08-07 at 14:15 +0200, Pierre Habouzit wrote:
> > While toying with perf, I've noticed that perf record can easily enter
> > a busy loop when doing something as silly as:
> >
> > $ perf record -A ls
> >
> > I've searched why and here are the patches:
> >
> > [PATCH 1/2] perf util: do_read should fail on EOF instead of busy-looping.
> >
> > Yeah, do_read here really wants to read a known size, not being able
> > to should die(), not busy-lopp ;)
> > That was the cause for the bug.
> >
> >
> > [PATCH 2/2] perf-record: improve -A UI for empty or non-existent perf.data
> >
> > Though with 1/2 `git record -A ls` would then fail miserably with
> > some kind of "cannot read" error, which sucks. So this patch
> > understands -A as a "append or create if file is empty or inexistant"
> >
> > This fact may deserve to be documented properly, if so just tell me
> > I'll send an updated patch for Documentation/
> >
> >
> > I'm kind of new to the kernel world, so I hope I sent the patches to the
> > proper persons.
>
> You did well for a first time ;-)
>
> The things you can improve for next time are:
>
> - placing these nice descriptions you made above into the patches
> themselves, as esp the first patch has an empty changelog.
>
> - get your email right :-)
>
> Anyway, I think Ingo already fixed that up for you, so
>
> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Thanks - i've applied it.
Ingo
prev parent reply other threads:[~2009-08-07 15:09 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-07 12:15 Pierre Habouzit
2009-08-07 12:16 ` [PATCH 1/2] perf util: do_read should fail on EOF instead of busy-looping Pierre Habouzit
2009-08-07 12:16 ` [PATCH 2/2] perf-record: improve -A UI for empty or non-existent perf.data Pierre Habouzit
2009-08-07 15:10 ` [tip:perfcounters/urgent] perf record: Fix the " tip-bot for Pierre Habouzit
2009-08-07 15:09 ` [tip:perfcounters/urgent] perf util: Fix do_read() to fail on EOF instead of busy-looping tip-bot for Pierre Habouzit
2009-08-07 12:28 ` perf-record fix and UI improvement Pierre Habouzit
2009-08-07 13:01 ` Peter Zijlstra
2009-08-07 13:59 ` Pierre Habouzit
2009-08-07 15:09 ` Ingo Molnar [this message]
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=20090807150901.GA11754@elte.hu \
--to=mingo@elte.hu \
--cc=a.p.zijlstra@chello.nl \
--cc=linux-kernel@vger.kernel.org \
--cc=paulus@samba.org \
--cc=pierre.habouzit@intersec.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®