linux/tools/power
Artem Bityutskiy c026c23629 tools/power turbostat: read from pipes too
Commit '47936f944e78 tools/power turbostat: fix printing on input' make
a valid fix, but it completely disabled piped stdin support, which is
a valuable use-case. Indeed, if stdin is a pipe, turbostat won't read
anything from it, so it becomes impossible to get turbostat output at
user-defined moments, instead of the regular intervals.

There is no reason why this should works for terminals, but not for
pipes. This patch improves the situation. Instead of ignoring pipes, we
read data from them but gracefully handle the EOF case.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2019-08-31 14:48:39 -04:00
..
acpi Merge branches 'acpi-tables', 'acpi-osl', 'acpi-misc' and 'acpi-tools' 2019-07-08 11:02:22 +02:00
cpupower kbuild: create *.mod with full directory path and remove MODVERDIR 2019-07-18 02:19:31 +09:00
pm-graph Merge back earlier pm-tools material for v5.3. 2019-06-13 11:06:21 +02:00
x86 tools/power turbostat: read from pipes too 2019-08-31 14:48:39 -04:00