• Len Brown's avatar
    tools/power turbostat: fix bugs in --add option · 678a3bd1
    Len Brown authored
    When --add was used more than once, overflowed buffers
    caused some counters to be stored on top of others,
    corrupting the results.  Simplify the code by simply
    reserving space for up to 16 added counters per each
    cpu, core, package.
    
    Per-cpu added counters were being printed only per-core.
    Signed-off-by: default avatarLen Brown <len.brown@intel.com>
    678a3bd1
turbostat.c 106 KB