summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2026-04-30 21:28:19 -0400
committerLen Brown <len.brown@intel.com>2026-05-24 10:26:21 -0400
commit06a8520328193e3c663007ede386ef2aa345f65d (patch)
tree9e5f2c9e1d602dbc92ebb96835764b378b29535c /scripts/stackusage
parent4cbfe4502e3d4bda48eb4b83dfad8d7da3b22e90 (diff)
downloadlinux-next-06a8520328193e3c663007ede386ef2aa345f65d.tar.gz
linux-next-06a8520328193e3c663007ede386ef2aa345f65d.zip
tools/power turbostat: Fix fd_perf leak on reset
When turbostat notices a topology change, it frees perf file descriptors for each CPU to prepare to re-initialize. Fix an off-by-one error in that per-cpu loop that resulted in a file descriptor leak of the file for the highest numbered CPU in the system. Fixes: 67bab430f4e7 ("tools/power turbostat: Group SMI counter with APERF and MPERF") Assisted-by: GitHub Copilot (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