1 //===-- tsan_suppressions.h -------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file is a part of ThreadSanitizer (TSan), a race detector.
12 //===----------------------------------------------------------------------===//
13 #ifndef TSAN_SUPPRESSIONS_H
14 #define TSAN_SUPPRESSIONS_H
16 #include "sanitizer_common/sanitizer_suppressions.h"
17 #include "tsan_report.h"
21 const char kSuppressionNone[] = "none";
22 const char kSuppressionRace[] = "race";
23 const char kSuppressionRaceTop[] = "race_top";
24 const char kSuppressionMutex[] = "mutex";
25 const char kSuppressionThread[] = "thread";
26 const char kSuppressionSignal[] = "signal";
27 const char kSuppressionLib[] = "called_from_lib";
28 const char kSuppressionDeadlock[] = "deadlock";
30 void InitializeSuppressions();
31 SuppressionContext *Suppressions();
32 void PrintMatchedSuppressions();
33 uptr IsSuppressed(ReportType typ, const ReportStack *stack, Suppression **sp);
34 uptr IsSuppressed(ReportType typ, const ReportLocation *loc, Suppression **sp);
38 #endif // TSAN_SUPPRESSIONS_H