From 5ba736457c94580b9cf8a0a65fccf9a89da0b1a6 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 3 Oct 2013 13:37:17 +0000 Subject: tsan: ignore interceptors coming from specified libraries LibIgnore allows to ignore all interceptors called from a particular set of dynamic libraries. LibIgnore remembers all "called_from_lib" suppressions from the provided SuppressionContext; finds code ranges for the libraries; and checks whether the provided PC value belongs to the code ranges. Also make malloc and friends interceptors use SCOPED_INTERCEPTOR_RAW instead of SCOPED_TSAN_INTERCEPTOR, because if they are called from an ignored lib, then must call our internal allocator instead of libc malloc. llvm-svn: 191897 --- compiler-rt/lib/tsan/rtl/tsan_suppressions.h | 1 + 1 file changed, 1 insertion(+) (limited to 'compiler-rt/lib/tsan/rtl/tsan_suppressions.h') diff --git a/compiler-rt/lib/tsan/rtl/tsan_suppressions.h b/compiler-rt/lib/tsan/rtl/tsan_suppressions.h index c618b3db4c2..fe7db588f50 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_suppressions.h +++ b/compiler-rt/lib/tsan/rtl/tsan_suppressions.h @@ -22,6 +22,7 @@ void InitializeSuppressions(); void PrintMatchedSuppressions(); uptr IsSuppressed(ReportType typ, const ReportStack *stack, Suppression **sp); uptr IsSuppressed(ReportType typ, const ReportLocation *loc, Suppression **sp); +SuppressionContext *GetSuppressionContext(); } // namespace __tsan -- cgit v1.2.3