OSDN Git Service

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)
commit321a7c35c90cc834851ceda18a8ee18f1d032b92
tree2f795f391026d285d2da784827489b2189367656
parentbdaab8c4b3db820b0946ed4516bc5ec811e0cc82
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