On Arm platform, no 'core id' and 'physical id' in '/proc/cpuinfo'. So we should search sysfs cpu path directly to get the data of 'thread_id' &'core_id' & 'node_id'. This method can also be used on other platforms, such as x86, ppc64le... /sys/bus/cpu/devices/cpu%d contains the information of 'core_id' & 'node_id'. Such as: cat /sys/bus/cpu/devices/cpu0/topology/core_id ls /sys/bus/cpu/devices/cpu0/node0 Signed-off-by: Bin Lu <bin.lu@arm.com> |
||
---|---|---|
.. | ||
node0 | ||
topology |