summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authortimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-26 14:37:24 +0000
committertimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-26 14:37:24 +0000
commitb0505262af47a4662044f517cd6f921ad6000bb5 (patch)
tree530bf5273fad17e4a27969c3c0ec5607c5965274 /tools
parent356f7e4168c535a36c9e8287e4771cb35c0341ac (diff)
downloadchromium_src-b0505262af47a4662044f517cd6f921ad6000bb5.zip
chromium_src-b0505262af47a4662044f517cd6f921ad6000bb5.tar.gz
chromium_src-b0505262af47a4662044f517cd6f921ad6000bb5.tar.bz2
Add ignores and suppression for TSan/Windows.
It will work on PIN, not Valgrind, but currently I'm adding it to tools valgrind. We plan to merge tools/valgrind with tools/heapcheck intor tools/memory or something like that - later. BUG=28363,39456 Review URL: http://codereview.chromium.org/1356006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42758 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-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
+}
+