From b0505262af47a4662044f517cd6f921ad6000bb5 Mon Sep 17 00:00:00 2001 From: "timurrrr@chromium.org" Date: Fri, 26 Mar 2010 14:37:24 +0000 Subject: 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 --- tools/valgrind/tsan/ignores_win32.txt | 14 +++++++++++++ tools/valgrind/tsan/suppressions_win32.txt | 33 ++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100755 tools/valgrind/tsan/ignores_win32.txt create mode 100755 tools/valgrind/tsan/suppressions_win32.txt 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 +} + -- cgit v1.1