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 <acme@redhat.com> Originally-from: James Yang <james.yang@arm.com> Signed-off-by:
Davidlohr Bueso <dbueso@suse.de> Cc: Davidlohr Bueso <dbueso@suse.de> Cc: Kim Phillips <kim.phillips@arm.com> Link: http://lkml.kernel.org/r/20171127042101.3659-2-dave@stgolabs.net Signed-off-by:
Arnaldo Carvalho de Melo <acme@redhat.com>
Showing
- tools/perf/bench/futex-hash.c 12 additions, 7 deletionstools/perf/bench/futex-hash.c
- tools/perf/bench/futex-lock-pi.c 14 additions, 9 deletionstools/perf/bench/futex-lock-pi.c
- tools/perf/bench/futex-requeue.c 13 additions, 9 deletionstools/perf/bench/futex-requeue.c
- tools/perf/bench/futex-wake-parallel.c 15 additions, 9 deletionstools/perf/bench/futex-wake-parallel.c
- tools/perf/bench/futex-wake.c 11 additions, 7 deletionstools/perf/bench/futex-wake.c
Please register or sign in to comment