summaryrefslogtreecommitdiff
path: root/io_uring
diff options
context:
space:
mode:
authorPatryk Wlazlyn <patryk.wlazlyn@linux.intel.com>2024-05-06 16:39:08 +0300
committerLen Brown <len.brown@intel.com>2024-05-16 04:50:16 +0300
commit3559ea813ad3a9627934325c68ad05b18008a077 (patch)
tree98ed3e515f2dfcf2f706c9d7d8e4c1a688536054 /io_uring
parent78464d7681f79bb48995c3d29d7e93d27ba69bca (diff)
downloadlinux-3559ea813ad3a9627934325c68ad05b18008a077.tar.xz
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 'io_uring')
0 files changed, 0 insertions, 0 deletions