]> git.baikalelectronics.ru Git - kernel.git/commit
perf bench numa: Fixup discontiguous/sparse numa nodes
authorSatheesh Rajendran <sathnaga@linux.vnet.ibm.com>
Wed, 22 Nov 2017 16:43:53 +0000 (22:13 +0530)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 28 Nov 2017 17:28:10 +0000 (14:28 -0300)
commit0217650703b896aef707f93a7fbaa3a2d4786b0e
tree2f795f391026d285d2da784827489b2189367656
parent8eccef704ac894ef1f1256e48d6ff030316974b4
perf bench numa: Fixup discontiguous/sparse numa nodes

Certain systems are designed to have sparse/discontiguous nodes.  On
such systems, 'perf bench numa' hangs, shows wrong number of nodes and
shows values for non-existent nodes. Handle this by only taking nodes
that are exposed by kernel to userspace.

Signed-off-by: Satheesh Rajendran <sathnaga@linux.vnet.ibm.com>
Reviewed-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Acked-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/1edbcd353c009e109e93d78f2f46381930c340fe.1511368645.git.sathnaga@linux.vnet.ibm.com
Signed-off-by: Balamuruhan S <bala24@linux.vnet.ibm.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/bench/numa.c