[LTP] [RFC PATCH 0/4] Synchronising two threads

Richard Palethorpe rpalethorpe@suse.com
Thu Aug 3 17:33:45 CEST 2017


As well as fixing a bug, this patch allows two long running threads to be
synchronised at given points using memory barriers. Previously we were
effectively synchronising the threads by restarting one of them each
iteration. However this had a significant overhead and may have caused
greater variation in timings between iterations.

I am using __atomic_* builtins which don't exist on older compilers. I will
probably update tst_atomic.h and introduce some more tst_atomic_* functions.

Richard Palethorpe (4):
  fzsync: Add long running thread support
  Convert cve-2016-7117 test to use long running threads
  fzsync: Correctly handle timestamps across second boundaries
  fzsync: Print info from pair_update

 include/tst_fuzzy_sync.h      | 108 +++++++++++++++++++++++++++++++++++++++++-
 testcases/cve/cve-2016-7117.c |  32 ++++++-------
 2 files changed, 121 insertions(+), 19 deletions(-)

-- 
2.13.3



More information about the ltp mailing list