Whamcloud - gitweb
LU-6325 libcfs: shortcut to create CPT from NUMA topology 49/14049/5
authorLiang Zhen <liang.zhen@intel.com>
Thu, 12 Mar 2015 04:16:10 +0000 (12:16 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 28 Mar 2015 03:13:12 +0000 (03:13 +0000)
commitdd9533737c28bd47a4b10d15ed6a4f0b3353765a
tree8084f3562b7c5a655956c1894e511c47e06d9f6b
parentb1ab6ff476809f1895250ff81f43d837c9ed5b4b
LU-6325 libcfs: shortcut to create CPT from NUMA topology

If user wants to create CPT table that can match numa topology,
she has to query cpu & numa topology, then provide a pattern
string to describe the topology, this is inconvenient.

To improve it, this patch can support shortcut expression "N" or "n"
to create CPT table from NUMA & CPU topology

Signed-off-by: Liang Zhen <liang.zhen@intel.com>
Change-Id: I608f47ad6856ded5bf2f5f223b77b02906ebc8cc
Reviewed-on: http://review.whamcloud.com/14049
Tested-by: Jenkins
Reviewed-by: Olaf Weber <olaf@sgi.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/libcfs/linux/linux-cpu.c