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
16#include "sanitizer_common/sanitizer_suppressions.h"
17#include "tsan_report.h"
18
19namespace __tsan {
20
21const char kSuppressionNone[] = "none";
22const char kSuppressionRace[] = "race";
23const char kSuppressionRaceTop[] = "race_top";
24const char kSuppressionMutex[] = "mutex";
25const char kSuppressionThread[] = "thread";
26const char kSuppressionSignal[] = "signal";
27const char kSuppressionLib[] = "called_from_lib";
28const char kSuppressionDeadlock[] = "deadlock";
29
30void InitializeSuppressions();
31SuppressionContext *Suppressions();
32void PrintMatchedSuppressions();
33uptr IsSuppressed(ReportType typ, const ReportStack *stack, Suppression **sp);
34uptr IsSuppressed(ReportType typ, const ReportLocation *loc, Suppression **sp);
35
36}  // namespace __tsan
37
38#endif  // TSAN_SUPPRESSIONS_H
39