summaryrefslogtreecommitdiff
path: root/scripts/stackusage
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-05-24 10:26:21 -0400
commit993912732cceb22b68f6261e2a0112b1c4a3d457 (patch)
tree454d0caac8bb0b29469353316a3614a2534c3751 /scripts/stackusage
parent1b2903a459718e12fb81b41db900d719eb953f02 (diff)
downloadlinux-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