diff options
| author | Len Brown <len.brown@intel.com> | 2026-05-03 14:17:54 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2026-10-03 13:02:30 -0400 |
| commit | 154b96dab83fd953b9b82c8bcfa041cd6a9d74d3 (patch) | |
| tree | 3638de9e174211c7925b694f85a1b2e1f5b000b7 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 11741cc90f9176746b8595beab4fec8d736ebd18 (diff) | |
| download | linux-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/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
