diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2012-12-18 12:20:55 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2012-12-18 12:20:55 +0000 |
commit | e3178e8fab67e77165978006928228f9be2ce30d (patch) | |
tree | f98c01295712a7ea1dd5371cc6e1545dedd22e2c /lib/tsan/rtl/tsan_flags.h | |
parent | 0b1137574d93882f1e1ba4f463139345cec7afce (diff) |
tsan: add io_sync flag that controls amount of IO synchronization
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@170427 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl/tsan_flags.h')
-rw-r--r-- | lib/tsan/rtl/tsan_flags.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/tsan/rtl/tsan_flags.h b/lib/tsan/rtl/tsan_flags.h index 2fdcc2f1b..6547911ec 100644 --- a/lib/tsan/rtl/tsan_flags.h +++ b/lib/tsan/rtl/tsan_flags.h @@ -77,6 +77,11 @@ struct Flags { // the amount of memory accesses, up to history_size=7 that amounts to // 4M memory accesses. The default value is 2 (128K memory accesses). int history_size; + // Controls level of synchronization implied by IO operations. + // 0 - no synchronization + // 1 - reasonable level of synchronization (write->read) + // 2 - global synchronization of all IO operations + int io_sync; }; Flags *flags(); |