diff options
author | Davidlohr Bueso <[email protected]> | 2017-11-26 20:20:59 -0800 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-11-30 14:02:05 -0300 |
commit | 3b2323c2c1c4acf8961cfcdddcee9889daaa21e3 (patch) | |
tree | a366e8b5137d89f10885ff7d0e6ade8ed0cbf047 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | 17a68b835921c4664929376447cae5e3374ce2a7 (diff) |
perf bench futex: Use cpumaps
It was reported that the whole futex bench breaks when dealing with
non-contiguously numbered cpus.
$ echo 0 | sudo tee /sys/devices/system/cpu/cpu3/online
$ ./perf bench futex all
perf: pthread_create: Operation not permitted
Run summary [PID 14934]: 7 threads, each ....
James had implemented an approach with cpumaps that use an in house
flavor. Instead of re-inventing the wheel, I've redone the patch such
that we use the perf's util/cpumap.c interface instead.
Applies to all futex benchmarks.
Suggested-by: Arnaldo Carvalho de Melo <[email protected]>
Originally-from: James Yang <[email protected]>
Signed-off-by: Davidlohr Bueso <[email protected]>
Cc: Davidlohr Bueso <[email protected]>
Cc: Kim Phillips <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions