diff options
author | James Yang <james.yang@arm.com> | 2017-11-27 07:21:01 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-12-05 16:23:44 +0300 |
commit | 8085e5ab41dadce558808b4186a6ea9d0862d3c0 (patch) | |
tree | 0e126a5c26338d3997f44794f58db0e427e0c80a /tools/perf/arch/s390/annotate | |
parent | 25ab5abf5b141d7fd13eed506c7458aa04749c29 (diff) | |
download | linux-8085e5ab41dadce558808b4186a6ea9d0862d3c0.tar.xz |
perf bench futex: Sync waker threads
Waker threads in the futex wake-parallel benchmark are started by a loop
using pthread_create(). However, there is no synchronization for when
the waker threads wake the waiting threads. Comparison of the waker
threads' measurement timestamps show they are not all running
concurrently because older waker threads finish their task before newer
waker threads even start.
This patch uses a barrier to better synchronize the waker threads.
Signed-off-by: James Yang <james.yang@arm.com
Cc: Kim Phillips <kim.phillips@arm.com>
Link: http://lkml.kernel.org/r/20171127042101.3659-4-dave@stgolabs.net
Signed-off-by: Davidlohr Bueso <dave@stgolabs.net>
[ Disable the wake-parallel test for systems without pthread_barrier_t ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/arch/s390/annotate')
0 files changed, 0 insertions, 0 deletions