2012-05-10 21:48:04 +08:00
|
|
|
//===-- tsan_suppressions.h -------------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file is a part of ThreadSanitizer (TSan), a race detector.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef TSAN_SUPPRESSIONS_H
|
|
|
|
#define TSAN_SUPPRESSIONS_H
|
|
|
|
|
2013-06-26 23:37:14 +08:00
|
|
|
#include "sanitizer_common/sanitizer_suppressions.h"
|
2012-05-10 21:48:04 +08:00
|
|
|
#include "tsan_report.h"
|
|
|
|
|
|
|
|
namespace __tsan {
|
|
|
|
|
2015-02-21 01:41:59 +08:00
|
|
|
const char kSuppressionNone[] = "none";
|
|
|
|
const char kSuppressionRace[] = "race";
|
2015-06-29 22:38:31 +08:00
|
|
|
const char kSuppressionRaceTop[] = "race_top";
|
2015-02-21 01:41:59 +08:00
|
|
|
const char kSuppressionMutex[] = "mutex";
|
|
|
|
const char kSuppressionThread[] = "thread";
|
|
|
|
const char kSuppressionSignal[] = "signal";
|
|
|
|
const char kSuppressionLib[] = "called_from_lib";
|
|
|
|
const char kSuppressionDeadlock[] = "deadlock";
|
|
|
|
|
2013-03-28 01:59:57 +08:00
|
|
|
void InitializeSuppressions();
|
2015-02-21 01:41:59 +08:00
|
|
|
SuppressionContext *Suppressions();
|
2013-03-28 01:59:57 +08:00
|
|
|
void PrintMatchedSuppressions();
|
|
|
|
uptr IsSuppressed(ReportType typ, const ReportStack *stack, Suppression **sp);
|
2013-06-10 23:38:44 +08:00
|
|
|
uptr IsSuppressed(ReportType typ, const ReportLocation *loc, Suppression **sp);
|
2012-05-10 21:48:04 +08:00
|
|
|
|
|
|
|
} // namespace __tsan
|
|
|
|
|
|
|
|
#endif // TSAN_SUPPRESSIONS_H
|