tsan_suppressions.h 1.3 KB

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