OSDN Git Service

tools/power turbostat: end current interval upon newline input
authorLen Brown <len.brown@intel.com>
Wed, 19 Jul 2017 23:28:37 +0000 (19:28 -0400)
committerLen Brown <len.brown@intel.com>
Fri, 1 Jun 2018 16:13:05 +0000 (12:13 -0400)
commitb9ad8ee0da54b2b4d2f8cd50fc9ce5200d61e7d1
tree17ff7a6c8915a232d68cc3abfa9ae217ee2b4063
parent072119606a239557bf8532c70af9c211d1028dff
tools/power turbostat: end current interval upon newline input

In turbostat interval mode, a newline typed on standard input
will now conclude the current interval.  Data will immediately
be collected and printed for that interval, and the next interval
will be started.

This is similar to the recently added SIGUSR1 feature.
But that is for use by programs, while this is for interactive use.

Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.8
tools/power/x86/turbostat/turbostat.c