diff options
author | Len Brown <len.brown@intel.com> | 2017-07-19 19:28:37 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2018-06-01 12:13:05 -0400 |
commit | b9ad8ee0da54b2b4d2f8cd50fc9ce5200d61e7d1 (patch) | |
tree | 17ff7a6c8915a232d68cc3abfa9ae217ee2b4063 /tools/power/x86/turbostat/turbostat.8 | |
parent | 072119606a239557bf8532c70af9c211d1028dff (diff) | |
download | linux-b9ad8ee0da54b2b4d2f8cd50fc9ce5200d61e7d1.tar.gz linux-b9ad8ee0da54b2b4d2f8cd50fc9ce5200d61e7d1.tar.bz2 linux-b9ad8ee0da54b2b4d2f8cd50fc9ce5200d61e7d1.zip |
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>
Diffstat (limited to 'tools/power/x86/turbostat/turbostat.8')
-rw-r--r-- | tools/power/x86/turbostat/turbostat.8 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/power/x86/turbostat/turbostat.8 b/tools/power/x86/turbostat/turbostat.8 index f99bddf16b8b..4cffa4a5a2b7 100644 --- a/tools/power/x86/turbostat/turbostat.8 +++ b/tools/power/x86/turbostat/turbostat.8 @@ -267,6 +267,13 @@ CPU PRF_CTRL .fi +.SH INPUT + +For interval-mode, turbostat will immediately end the current interval +when it sees a newline on standard input. +turbostat will then start the next interval. +Control-C will be send a SIGINT to turbostat, +which will immediately abort the program with no further processing. .SH SIGNALS SIGINT will interrupt interval-mode. |