summaryrefslogtreecommitdiff
path: root/lib/tsan/rtl/tsan_flags.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2013-10-15 12:25:29 +0000
committerDmitry Vyukov <dvyukov@google.com>2013-10-15 12:25:29 +0000
commitb48c2b2072c8cc17dc1579a6b20ce6c2a575821d (patch)
tree727a3818c4aa133984e5753e7da6330b31844fc9 /lib/tsan/rtl/tsan_flags.h
parente910a1630be10685b2985a383c1a012f5df6bf62 (diff)
downloadcompiler-rt-b48c2b2072c8cc17dc1579a6b20ce6c2a575821d.tar.gz
compiler-rt-b48c2b2072c8cc17dc1579a6b20ce6c2a575821d.tar.bz2
compiler-rt-b48c2b2072c8cc17dc1579a6b20ce6c2a575821d.tar.xz
tsan: use sanitizer::CommonFlags in tsan
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192692 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl/tsan_flags.h')
-rw-r--r--lib/tsan/rtl/tsan_flags.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/lib/tsan/rtl/tsan_flags.h b/lib/tsan/rtl/tsan_flags.h
index 86e1a2cb..b240fdce 100644
--- a/lib/tsan/rtl/tsan_flags.h
+++ b/lib/tsan/rtl/tsan_flags.h
@@ -20,9 +20,11 @@
// header may be included in the user code, and shouldn't include
// other headers from TSan or common sanitizer runtime.
+#include "sanitizer_common/sanitizer_flags.h"
+
namespace __tsan {
-struct Flags {
+struct Flags : CommonFlags {
// Enable dynamic annotations, otherwise they are no-ops.
bool enable_annotations;
// Supress a race report if we've already output another race report
@@ -48,8 +50,6 @@ struct Flags {
// If set, all atomics are effectively sequentially consistent (seq_cst),
// regardless of what user actually specified.
bool force_seq_cst_atomics;
- // Strip that prefix from file paths in reports.
- const char *strip_path_prefix;
// Suppressions filename.
const char *suppressions;
// Print matched suppressions at exit.
@@ -60,10 +60,6 @@ struct Flags {
int exitcode;
// Exit after first reported error.
bool halt_on_error;
- // Write logs to "log_path.pid".
- // The special values are "stdout" and "stderr".
- // The default is "stderr".
- const char *log_path;
// Sleep in main thread before exiting for that many ms
// (useful to catch "at exit" races).
int atexit_sleep_ms;
@@ -82,8 +78,6 @@ struct Flags {
bool stop_on_start;
// Controls whether RunningOnValgrind() returns true or false.
bool running_on_valgrind;
- // Path to external symbolizer.
- const char *external_symbolizer_path;
// Per-thread history size, controls how many previous memory accesses
// are remembered per thread. Possible values are [0..7].
// history_size=0 amounts to 32K memory accesses. Each next value doubles
@@ -95,8 +89,6 @@ struct Flags {
// 1 - reasonable level of synchronization (write->read)
// 2 - global synchronization of all IO operations
int io_sync;
- // If false, the allocator will crash instead of returning 0 on out-of-memory.
- bool allocator_may_return_null;
};
Flags *flags();