summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorNathan Ciobanu <nathan.d.ciobanu@linux.intel.com>2018-06-08 15:15:12 -0700
committerLen Brown <len.brown@intel.com>2018-06-20 13:55:04 -0400
commit42dd45209201edb222de5f9eadc1c8f93700ef28 (patch)
tree6932027a3b20fd4ff1bfabe3656397b0abe7d0dc /virt
parent4c2122d42116ebaa1665ad0fbef2c558fdc0e3c6 (diff)
tools/power turbostat: fix segfault on 'no node' machines
Running turbostat on machines that don't expose nodes in sysfs (no /sys/bus/node) causes a segfault or a -nan value diesplayed in the log. This is caused by physical_node_id being reported as -1 and logical_node_id being calculated as a negative number resulting in the new GET_THREAD/GET_CORE returning an incorrect address. Signed-off-by: Nathan Ciobanu <nathan.d.ciobanu@linux.intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions