diff options
author | 2024-05-06 15:39:08 +0200 | |
---|---|---|
committer | 2024-05-15 21:50:16 -0400 | |
commit | 3559ea813ad3a9627934325c68ad05b18008a077 (patch) | |
tree | 98ed3e515f2dfcf2f706c9d7d8e4c1a688536054 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | tools/power turbostat: Add columns for clustered uncore frequency (diff) | |
download | wireguard-linux-3559ea813ad3a9627934325c68ad05b18008a077.tar.xz wireguard-linux-3559ea813ad3a9627934325c68ad05b18008a077.zip |
tools/power turbostat: Avoid possible memory corruption due to sparse topology IDs
Save the highest core and package id when parsing topology to
allocate enough memory when get_rapl_counters() is called with a core or
a package id as a domain.
Note that RAPL domains are per-package on Intel, but per-core on AMD.
Thus, the RAPL code effectively runs in different modes on those two
product lines.
Signed-off-by: Patryk Wlazlyn <patryk.wlazlyn@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions