perf/bench/futex-hash: Support NUMA

This adds a new option to tell perf on which numa node the hash benchmark
should run. If set then

 - The test is bound to the node
 - Memory is allocated on the local NUMA node
 - The threads are bound to the cpus on the node

The NUMA node can be specified by the -n argument.

Signed-off-by: Sebastian Andrzej Siewior <>
Signed-off-by: Thomas Gleixner <>
2 files changed