1*0b57cec5SDimitry Andric //===-- tsan_suppressions.h -------------------------------------*- C++ -*-===// 2*0b57cec5SDimitry Andric // 3*0b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4*0b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5*0b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6*0b57cec5SDimitry Andric // 7*0b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 8*0b57cec5SDimitry Andric // 9*0b57cec5SDimitry Andric // This file is a part of ThreadSanitizer (TSan), a race detector. 10*0b57cec5SDimitry Andric // 11*0b57cec5SDimitry Andric //===----------------------------------------------------------------------===// 12*0b57cec5SDimitry Andric #ifndef TSAN_SUPPRESSIONS_H 13*0b57cec5SDimitry Andric #define TSAN_SUPPRESSIONS_H 14*0b57cec5SDimitry Andric 15*0b57cec5SDimitry Andric #include "sanitizer_common/sanitizer_suppressions.h" 16*0b57cec5SDimitry Andric #include "tsan_report.h" 17*0b57cec5SDimitry Andric 18*0b57cec5SDimitry Andric namespace __tsan { 19*0b57cec5SDimitry Andric 20*0b57cec5SDimitry Andric const char kSuppressionNone[] = "none"; 21*0b57cec5SDimitry Andric const char kSuppressionRace[] = "race"; 22*0b57cec5SDimitry Andric const char kSuppressionRaceTop[] = "race_top"; 23*0b57cec5SDimitry Andric const char kSuppressionMutex[] = "mutex"; 24*0b57cec5SDimitry Andric const char kSuppressionThread[] = "thread"; 25*0b57cec5SDimitry Andric const char kSuppressionSignal[] = "signal"; 26*0b57cec5SDimitry Andric const char kSuppressionLib[] = "called_from_lib"; 27*0b57cec5SDimitry Andric const char kSuppressionDeadlock[] = "deadlock"; 28*0b57cec5SDimitry Andric 29*0b57cec5SDimitry Andric void InitializeSuppressions(); 30*0b57cec5SDimitry Andric SuppressionContext *Suppressions(); 31*0b57cec5SDimitry Andric void PrintMatchedSuppressions(); 32*0b57cec5SDimitry Andric uptr IsSuppressed(ReportType typ, const ReportStack *stack, Suppression **sp); 33*0b57cec5SDimitry Andric uptr IsSuppressed(ReportType typ, const ReportLocation *loc, Suppression **sp); 34*0b57cec5SDimitry Andric 35*0b57cec5SDimitry Andric } // namespace __tsan 36*0b57cec5SDimitry Andric 37*0b57cec5SDimitry Andric #endif // TSAN_SUPPRESSIONS_H 38