Skip to content
Commit 7eac7e9e authored by Pierre Habouzit's avatar Pierre Habouzit Committed by Ingo Molnar
Browse files

perf util: Fix do_read() to fail on EOF instead of busy-looping



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

Yeah, do_read here really wants to read a known size, not being
able to should die(), not busy-loop ;)

That was the cause for the bug.

Signed-off-by: default avatarPierre Habouzit <pierre.habouzit@intersec.com>
Acked-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent ae07b63f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment