summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtools/valgrind/tsan/ignores_win32.txt14
-rwxr-xr-xtools/valgrind/tsan/suppressions_win32.txt33
2 files changed, 47 insertions, 0 deletions
diff --git a/tools/valgrind/tsan/ignores_win32.txt b/tools/valgrind/tsan/ignores_win32.txt
new file mode 100755
index 0000000..4c4c39c
--- /dev/null
+++ b/tools/valgrind/tsan/ignores_win32.txt
@@ -0,0 +1,14 @@
+# This file lists the functions, object files and source files
+# which should be ignored (i.e. not instrumented) by ThreadSanitizer on Windows.
+
+# We ignore security libraries for now since their instrumentation is very slow.
+# TODO(timurrrr): investigate whether we need to instrument them
+obj:*CRYPT32.dll*
+obj:*RPCRT4.dll*
+
+# Benign race on mutext unlock
+fun:_Mtxunlock
+
+# Some unknown Windows guts
+fun_r:Ordinal_*
+fun_r:unnamedImageEntryPoint
diff --git a/tools/valgrind/tsan/suppressions_win32.txt b/tools/valgrind/tsan/suppressions_win32.txt
new file mode 100755
index 0000000..dd055fc
--- /dev/null
+++ b/tools/valgrind/tsan/suppressions_win32.txt
@@ -0,0 +1,33 @@
+############################
+# Chromium
+
+{
+ bug_25385 (2)
+ ThreadSanitizer:Race
+ ...
+ fun:*base*Thread*~*
+}
+
+############################
+# Reports on the guts of Windows
+{
+ UuidCreate
+ ThreadSanitizer:Race
+ ...
+ fun:UuidCreate
+}
+
+{
+ ILFindLastID
+ ThreadSanitizer:Race
+ ...
+ fun:ILFindLastID
+}
+
+{
+ RpcServerUnregisterIf
+ ThreadSanitizer:Race
+ ...
+ fun:RpcServerUnregisterIf
+}
+