diff options
| author | 2026-04-30 21:28:19 -0400 | |
|---|---|---|
| committer | 2026-10-03 13:00:55 -0400 | |
| commit | 767c64414c4c5fffd6cbc3a1cf1fb8138b28645b (patch) | |
| tree | 03dce748e89eb177df52ea5a60fa43baeefbdebc /scripts/Makefile.thinlto | |
| parent | tools/power turbostat: Sanity check GFX%rc6 and SAM%mc6 percentages (diff) | |
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/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
