mbox series

[0/3,v3] tools/power turbostat: Enable accumulated energy consumption for long time sampling

Message ID cover.1587196252.git.yu.c.chen@intel.com
Headers show
Series tools/power turbostat: Enable accumulated energy consumption for long time sampling | expand

Message

Chen Yu April 18, 2020, 8:31 a.m. UTC
The RAPL Joule Counter is 32 bit, turbostat would
only print a *star* instead of printing the actual energy
consumed due to the overflow of RAPL register.

Introduce the accumulated RAPL mechanism to avoid the possible
overflow.

Chen Yu (3):
  tools/power turbostat: Make the energy variable to be 64 bit
  tools/power turbostat: Introduce functions to accumulate RAPL
    consumption
  tools/power turbostat: Enable accumulate RAPL display

 tools/power/x86/turbostat/Makefile    |   2 +-
 tools/power/x86/turbostat/turbostat.c | 292 ++++++++++++++++++++++----
 2 files changed, 248 insertions(+), 46 deletions(-)