usertools: use sysfs for CPU layout
authorAndriy Berestovskyy <andriy.berestovskyy@caviumnetworks.com>
Fri, 31 Mar 2017 12:21:00 +0000 (14:21 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 25 Apr 2017 08:48:15 +0000 (10:48 +0200)
commitdeb87e6777c0d1cdf10fdc4e1bcef0000a66d6a8
tree96a812a177dbf3579fededb68d1509bbfbb27bdd
parent45fc6f429b40c8d60ff6633de7bc0342b18045fb
usertools: use sysfs for CPU layout

Some platforms do not have core/socket info in /proc/cpuinfo.
Use /sys/devices/system/cpu instead.

Signed-off-by: Andriy Berestovskyy <andriy.berestovskyy@caviumnetworks.com>
usertools/cpu_layout.py