summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
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-10-03 13:00:55 -0400
commit767c64414c4c5fffd6cbc3a1cf1fb8138b28645b (patch)
tree03dce748e89eb177df52ea5a60fa43baeefbdebc /tools/perf/scripts/python
parent485c59972808078570d21317de8275af47a18696 (diff)
downloadlinux-next-767c64414c4c5fffd6cbc3a1cf1fb8138b28645b.tar.gz
linux-next-767c64414c4c5fffd6cbc3a1cf1fb8138b28645b.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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions