diff options
author | Patryk Wlazlyn <patryk.wlazlyn@linux.intel.com> | 2024-05-06 15:39:08 +0200 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2024-05-15 21:50:16 -0400 |
commit | 3559ea813ad3a9627934325c68ad05b18008a077 (patch) | |
tree | 98ed3e515f2dfcf2f706c9d7d8e4c1a688536054 /drivers/fpga/tests/fpga-mgr-test.c | |
parent | 78464d7681f79bb48995c3d29d7e93d27ba69bca (diff) |
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 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions