Skip to content
Commit 678a3bd1 authored by Len Brown's avatar Len Brown
Browse files

tools/power turbostat: fix bugs in --add option



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>
parent c470abd4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment