https://github.com/torvalds/linux
Revision 42dd45209201edb222de5f9eadc1c8f93700ef28 authored by Nathan Ciobanu on 08 June 2018, 22:15:12 UTC, committed by Len Brown on 20 June 2018, 17:55:04 UTC
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>
1 parent 4c2122d
Raw File
Tip revision: 42dd45209201edb222de5f9eadc1c8f93700ef28 authored by Nathan Ciobanu on 08 June 2018, 22:15:12 UTC
tools/power turbostat: fix segfault on 'no node' machines
Tip revision: 42dd452
.cocciconfig
[spatch]
	options = --timeout 200
	options = --use-gitgrep
back to top