* Move sysfs related functions needed to get nodes' information and tests into utils/sysfs
* Add tests for sysfs related functions
Signed-off-by: Katarzyna Kujawa <katarzyna.kujawa@intel.com>
* Adding information about memory capacity and number of memory DIMMs by memory type
Signed-off-by: Maciej "Iwan" Iwanowski <maciej.iwanowski@intel.com>
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>