mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Zijlstra <a.p.zijlstra@chello.nl>
To: Pierre Habouzit <pierre.habouzit@intersec.com>
Cc: Ingo Molnar <mingo@elte.hu>, Paul Mackerras <paulus@samba.org>,
	linux-kernel@vger.kernel.org
Subject: Re: perf-record fix and UI improvement
Date: Fri, 07 Aug 2009 15:01:06 +0200	[thread overview]
Message-ID: <1249650066.32113.706.camel@twins> (raw)
In-Reply-To: <1249647361-11582-1-git-send-email-pierre.habouzit@intersec.com>

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>


  parent reply	other threads:[~2009-08-07 13:01 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 [this message]
2009-08-07 13:59   ` Pierre Habouzit
2009-08-07 15:09   ` 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=1249650066.32113.706.camel@twins \
    --to=a.p.zijlstra@chello.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --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®