All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] perf: Allow running without stdin
@ 2019-10-23  1:54 Igor Lubashev
  2019-10-23  1:54 ` [PATCH 1/3] perf top: " Igor Lubashev
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Igor Lubashev @ 2019-10-23  1:54 UTC (permalink / raw)
  To: Peter Zijlstra, Ingo Molnar, Arnaldo Carvalho de Melo
  Cc: Igor Lubashev, Jiri Olsa, Alexander Shishkin, Namhyung Kim,
	Mark Rutland, Linux Kernel Mailing List

This series allows perf to run in batch mode with stdin closed.
This is arguably a bug fix for code that runs with --stdio option and does not
check for EOF return code from getc().

This series makes the following work as expected:

  $ perf top --stdio < /dev/null
  $ perf kvm top --stdio < /dev/null

Patches:
  01: perf top: Allow running without stdin
    Make "perf top --stdio" handle EOF from stdin correctly.
    There is one getc() that does not handle EOF explicitly, since its return
    value is checked against a list of known characters, and the main loop in
    display_thread() will handle the EOF on the next iteration.

  02: perf kvm: Allow running without stdin
    Make "perf kvm --stdio" handle EOF from stdin correctly.

  03: perf kvm: Use evlist layer api when possible
    This is a simple fix for a needless layering violation.

Igor Lubashev (3):
  perf top: Allow running without stdin
  perf kvm: Allow running without stdin
  perf kvm: Use evlist layer api when possible

 tools/perf/builtin-kvm.c | 35 +++++++++++++++++++++--------------
 tools/perf/builtin-top.c | 10 ++++++++--
 2 files changed, 29 insertions(+), 16 deletions(-)

-- 
2.7.4


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

end of thread, other threads:[~2019-11-12 11:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-23  1:54 [PATCH 0/3] perf: Allow running without stdin Igor Lubashev
2019-10-23  1:54 ` [PATCH 1/3] perf top: " Igor Lubashev
2019-10-23  1:54 ` [PATCH 2/3] perf kvm: " Igor Lubashev
2019-10-23 10:42   ` Jiri Olsa
2019-10-23 16:06     ` Lubashev, Igor
2019-11-08 19:55     ` Lubashev, Igor
2019-10-23  1:54 ` [PATCH 3/3] perf kvm: Use evlist layer api when possible Igor Lubashev
2019-10-23 12:58   ` Arnaldo Carvalho de Melo
2019-11-12 11:18   ` [tip: perf/core] " tip-bot2 for Igor Lubashev
2019-10-24  8:24 ` [PATCH 0/3] perf: Allow running without stdin Jiri Olsa

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.