2016-08-31 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / libsanitizer / tsan / tsan_suppressions.h
blob58951975075940e3ef8d46892f44b81670c39d7a
1 //===-- tsan_suppressions.h -------------------------------------*- C++ -*-===//
2 //
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
5 //
6 //===----------------------------------------------------------------------===//
7 //
8 // This file is a part of ThreadSanitizer (TSan), a race detector.
9 //
10 //===----------------------------------------------------------------------===//
11 #ifndef TSAN_SUPPRESSIONS_H
12 #define TSAN_SUPPRESSIONS_H
14 #include "sanitizer_common/sanitizer_suppressions.h"
15 #include "tsan_report.h"
17 namespace __tsan {
19 const char kSuppressionNone[] = "none";
20 const char kSuppressionRace[] = "race";
21 const char kSuppressionRaceTop[] = "race_top";
22 const char kSuppressionMutex[] = "mutex";
23 const char kSuppressionThread[] = "thread";
24 const char kSuppressionSignal[] = "signal";
25 const char kSuppressionLib[] = "called_from_lib";
26 const char kSuppressionDeadlock[] = "deadlock";
28 void InitializeSuppressions();
29 SuppressionContext *Suppressions();
30 void PrintMatchedSuppressions();
31 uptr IsSuppressed(ReportType typ, const ReportStack *stack, Suppression **sp);
32 uptr IsSuppressed(ReportType typ, const ReportLocation *loc, Suppression **sp);
34 } // namespace __tsan
36 #endif // TSAN_SUPPRESSIONS_H