[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1571795693-23558-1-git-send-email-ilubashe@akamai.com>
Date: Tue, 22 Oct 2019 21:54:50 -0400
From: Igor Lubashev <ilubashe@...mai.com>
To: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...hat.com>
CC: Igor Lubashev <ilubashe@...mai.com>, Jiri Olsa <jolsa@...nel.org>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Namhyung Kim <namhyung@...nel.org>,
Mark Rutland <mark.rutland@....com>,
"Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>
Subject: [PATCH 0/3] perf: Allow running without stdin
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
Powered by blists - more mailing lists