]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tools/power turbostat: tidy up output on Joule counter overflow
authorLen Brown <len.brown@intel.com>
Thu, 7 Apr 2016 03:56:02 +0000 (23:56 -0400)
committerLen Brown <len.brown@intel.com>
Thu, 1 Dec 2016 06:33:15 +0000 (01:33 -0500)
commite975db5d528abf5c42adfc50a6b0384993b6280b
tree4911d3e377bbb4f5bf3a2dd32e217efbbdd5677e
parent43c4f67c966deb1478dc9acbf66ab547287d530f
tools/power turbostat: tidy up output on Joule counter overflow

The RAPL Joules counter is limited in capacity.
Turbostat estimates how soon it can roll-over
based on the max TDP of the processor --
which tells us the maximum increment rate.

eg.
RAPL: 2759 sec. Joule Counter Range, at 95 Watts

So if a sample duration is longer than 2759 seconds on this system,
'**' replace the decimal place in the display to indicate
that the results may be suspect.

But the display had an extra ' ' in this case, throwing off the columns.

Also, the -J "Joules" option appended an extra "time" column
to the display.  While this may be useful, it printed the interval time,
which may not be the accurate time per processor.  Remove this column,
which appeared only when using '-J',
as we plan to add accurate per-cpu interval times in a future commit.

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