mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
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: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
c470abd4fd
commit
678a3bd1b3
1 changed files with 52 additions and 36 deletions
Loading…
Add table
Add a link
Reference in a new issue