2012-11-22 23:03:11 +01:00
|
|
|
//===-- tsan_flags.h --------------------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
// NOTE: This file may be included into user code.
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef TSAN_FLAGS_H
|
|
|
|
#define TSAN_FLAGS_H
|
|
|
|
|
2013-12-05 10:18:38 +01:00
|
|
|
#include "sanitizer_common/sanitizer_flags.h"
|
2014-05-22 09:09:21 +02:00
|
|
|
#include "sanitizer_common/sanitizer_deadlock_detector_interface.h"
|
2013-12-05 10:18:38 +01:00
|
|
|
|
2012-11-22 23:03:11 +01:00
|
|
|
namespace __tsan {
|
|
|
|
|
2014-09-23 19:59:53 +02:00
|
|
|
struct Flags : DDFlags {
|
2015-10-21 09:32:45 +02: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-11-22 23:03:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
Flags *flags();
|
|
|
|
void InitializeFlags(Flags *flags, const char *env);
|
2013-02-13 11:46:01 +01:00
|
|
|
} // namespace __tsan
|
2012-11-22 23:03:11 +01:00
|
|
|
|
|
|
|
#endif // TSAN_FLAGS_H
|