diff options
author | Alexander Gordeev <[email protected]> | 2020-08-13 13:32:48 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2020-08-13 10:02:27 -0300 |
commit | 2db13a9b30f7e438777eb1a462c4b055ba948b89 (patch) | |
tree | 5ee599d325ed854e4306db262293ca6fcaa85b0e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 509f68e327d0c87e9bc93cb138e445c506ae9ce9 (diff) |
perf bench numa: Use numa_node_to_cpus() to bind tasks to nodes
It is currently assumed that each node contains at most nr_cpus/nr_nodes
CPUs and nodes' CPU ranges do not overlap.
That assumption is generally incorrect as there are archs where a CPU
number does not depend on to its node number.
This update removes the described assumption by simply calling
numa_node_to_cpus() interface and using the returned mask for binding
CPUs to nodes.
Also, variable types and names made consistent in functions using
cpumask.
Signed-off-by: Alexander Gordeev <[email protected]>
Reviewed-by: Srikar Dronamraju <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Balamuruhan S <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Naveen N. Rao <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Satheesh Rajendran <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions