diff options
| author | Len Brown <len.brown@intel.com> | 2026-05-03 14:17:54 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2026-05-24 10:26:21 -0400 |
| commit | 993912732cceb22b68f6261e2a0112b1c4a3d457 (patch) | |
| tree | 454d0caac8bb0b29469353316a3614a2534c3751 /scripts/stackusage | |
| parent | 1b2903a459718e12fb81b41db900d719eb953f02 (diff) | |
| download | linux-next-993912732cceb22b68f6261e2a0112b1c4a3d457.tar.gz linux-next-993912732cceb22b68f6261e2a0112b1c4a3d457.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: 388e9c8134be6b ("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 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
