2012-05-10 21:48:04 +08:00
|
|
|
//===-- tsan_flags.h --------------------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file is a part of ThreadSanitizer (TSan), a race detector.
|
2012-06-19 16:57:53 +08:00
|
|
|
// NOTE: This file may be included into user code.
|
2012-05-10 21:48:04 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef TSAN_FLAGS_H
|
|
|
|
#define TSAN_FLAGS_H
|
|
|
|
|
2013-10-15 20:25:29 +08:00
|
|
|
#include "sanitizer_common/sanitizer_flags.h"
|
2014-03-18 21:13:47 +08:00
|
|
|
#include "sanitizer_common/sanitizer_deadlock_detector_interface.h"
|
2013-10-15 20:25:29 +08:00
|
|
|
|
2012-05-10 21:48:04 +08:00
|
|
|
namespace __tsan {
|
|
|
|
|
2014-09-11 07:08:06 +08:00
|
|
|
struct Flags : DDFlags {
|
2015-01-07 08:38:00 +08:00
|
|
|
#define TSAN_FLAG(Type, Name, DefaultValue, Description) Type Name;
|
|
|
|
#include "tsan_flags.inc"
|
|
|
|
#undef TSAN_FLAG
|
|
|
|
|
|
|
|
void SetDefaults();
|
|
|
|
void ParseFromString(const char *str);
|
2012-05-10 21:48:04 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
Flags *flags();
|
|
|
|
void InitializeFlags(Flags *flags, const char *env);
|
2013-01-30 15:45:58 +08:00
|
|
|
} // namespace __tsan
|
2012-05-10 21:48:04 +08:00
|
|
|
|
|
|
|
#endif // TSAN_FLAGS_H
|