mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* perf-record fix and UI improvement
@ 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
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Pierre Habouzit @ 2009-08-07 12:15 UTC (permalink / raw)
  To: Ingo Molnar, Paul Mackerras, Peter Zijlstra; +Cc: linux-kernel

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.
-- 
Intersec <http://www.intersec.com>
Pierre Habouzit <pierre.habouzit@intersec.com>
Tél : +33 (0)1 5570 3346
Mob : +33 (0)6 1636 8131
Fax : +33 (0)1 5570 3332
37 Rue Pierre Lhomme
92400 Courbevoie


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-08-07 15:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-07 12:15 perf-record fix and UI improvement 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 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®