Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 1 | //===-- tsan_suppressions.h -------------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | // |
| 10 | // This file is a part of ThreadSanitizer (TSan), a race detector. |
| 11 | // |
| 12 | //===----------------------------------------------------------------------===// |
| 13 | #ifndef TSAN_SUPPRESSIONS_H |
| 14 | #define TSAN_SUPPRESSIONS_H |
| 15 | |
Sergey Matveev | a52e5c6 | 2013-06-26 15:37:14 +0000 | [diff] [blame] | 16 | #include "sanitizer_common/sanitizer_suppressions.h" |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 17 | #include "tsan_report.h" |
| 18 | |
| 19 | namespace __tsan { |
| 20 | |
Stephen Hines | 86277eb | 2015-03-23 12:06:32 -0700 | [diff] [blame] | 21 | const char kSuppressionNone[] = "none"; |
| 22 | const char kSuppressionRace[] = "race"; |
| 23 | const char kSuppressionMutex[] = "mutex"; |
| 24 | const char kSuppressionThread[] = "thread"; |
| 25 | const char kSuppressionSignal[] = "signal"; |
| 26 | const char kSuppressionLib[] = "called_from_lib"; |
| 27 | const char kSuppressionDeadlock[] = "deadlock"; |
| 28 | |
Dmitry Vyukov | f754eb5 | 2013-03-27 17:59:57 +0000 | [diff] [blame] | 29 | void InitializeSuppressions(); |
Stephen Hines | 86277eb | 2015-03-23 12:06:32 -0700 | [diff] [blame] | 30 | SuppressionContext *Suppressions(); |
Dmitry Vyukov | f754eb5 | 2013-03-27 17:59:57 +0000 | [diff] [blame] | 31 | void PrintMatchedSuppressions(); |
| 32 | uptr IsSuppressed(ReportType typ, const ReportStack *stack, Suppression **sp); |
Dmitry Vyukov | 3996833 | 2013-06-10 15:38:44 +0000 | [diff] [blame] | 33 | uptr IsSuppressed(ReportType typ, const ReportLocation *loc, Suppression **sp); |
Kostya Serebryany | 7ac4148 | 2012-05-10 13:48:04 +0000 | [diff] [blame] | 34 | |
| 35 | } // namespace __tsan |
| 36 | |
| 37 | #endif // TSAN_SUPPRESSIONS_H |