blob: e6d279c33a4efb5e84c72c2c2ca1ac795f996124 [file] [log] [blame]
Kostya Serebryany7ac41482012-05-10 13:48:04 +00001//===-- 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 Matveeva52e5c62013-06-26 15:37:14 +000016#include "sanitizer_common/sanitizer_suppressions.h"
Kostya Serebryany7ac41482012-05-10 13:48:04 +000017#include "tsan_report.h"
18
19namespace __tsan {
20
Stephen Hines86277eb2015-03-23 12:06:32 -070021const char kSuppressionNone[] = "none";
22const char kSuppressionRace[] = "race";
23const char kSuppressionMutex[] = "mutex";
24const char kSuppressionThread[] = "thread";
25const char kSuppressionSignal[] = "signal";
26const char kSuppressionLib[] = "called_from_lib";
27const char kSuppressionDeadlock[] = "deadlock";
28
Dmitry Vyukovf754eb52013-03-27 17:59:57 +000029void InitializeSuppressions();
Stephen Hines86277eb2015-03-23 12:06:32 -070030SuppressionContext *Suppressions();
Dmitry Vyukovf754eb52013-03-27 17:59:57 +000031void PrintMatchedSuppressions();
32uptr IsSuppressed(ReportType typ, const ReportStack *stack, Suppression **sp);
Dmitry Vyukov39968332013-06-10 15:38:44 +000033uptr IsSuppressed(ReportType typ, const ReportLocation *loc, Suppression **sp);
Kostya Serebryany7ac41482012-05-10 13:48:04 +000034
35} // namespace __tsan
36
37#endif // TSAN_SUPPRESSIONS_H