summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2026-05-03 14:17:54 -0400
committerLen Brown <len.brown@intel.com>2026-10-03 13:02:30 -0400
commit154b96dab83fd953b9b82c8bcfa041cd6a9d74d3 (patch)
tree3638de9e174211c7925b694f85a1b2e1f5b000b7 /tools/perf/scripts/python
parent11741cc90f9176746b8595beab4fec8d736ebd18 (diff)
downloadlinux-next-154b96dab83fd953b9b82c8bcfa041cd6a9d74d3.tar.gz
linux-next-154b96dab83fd953b9b82c8bcfa041cd6a9d74d3.zip
tools/power turbostat: Fix add_counter issue if > 24 counters.
We allocate space for added counters ahead of time, and we arbitrarily chose 24 added counters of each type. If a future code flow hits this limit and continues, and then removes counters, we do a phantom increment and lose track of the number of added counters. Increment the count only if there is no error. Fixes: 388e9c8134be ("tools/power turbostat: Make extensible via the --add parameter") Assisted-by: Claude: Claude Sonnet 4.6 Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions