summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authortimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-24 12:58:30 +0000
committertimurrrr@chromium.org <timurrrr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-24 12:58:30 +0000
commitebf1c51c41cb24aa230fdbcda464772bf39823a9 (patch)
tree5571db582c2b356e347eefafe1c076d5b54de116 /tools
parent139857371180058779101c073fc32934962ae4dd (diff)
downloadchromium_src-ebf1c51c41cb24aa230fdbcda464772bf39823a9.zip
chromium_src-ebf1c51c41cb24aa230fdbcda464772bf39823a9.tar.gz
chromium_src-ebf1c51c41cb24aa230fdbcda464772bf39823a9.tar.bz2
More file-prefix-to-cut and cut-stack-below filters
Review URL: http://codereview.chromium.org/1263002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42457 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rwxr-xr-xtools/valgrind/valgrind_test.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/valgrind/valgrind_test.py b/tools/valgrind/valgrind_test.py
index 1c15727..138b43e 100755
--- a/tools/valgrind/valgrind_test.py
+++ b/tools/valgrind/valgrind_test.py
@@ -490,8 +490,15 @@ class ThreadSanitizer(ValgrindTool):
# The -v flag is needed for printing the list of used suppressions.
ret += ["-v"]
+ # This should shorten filepaths for local builds.
ret += ["--file-prefix-to-cut=%s/" % self._source_dir]
+ # This should shorten filepaths on bots.
+ ret += ["--file-prefix-to-cut=build/src/"]
+
+ # This should shorten filepaths for functions intercepted in TSan.
+ ret += ["--file-prefix-to-cut=scripts/tsan/tsan/"]
+
if self.EvalBoolFlag(self._options.pure_happens_before):
ret += ["--pure-happens-before=yes"] # "no" is the default value for TSAN
@@ -505,6 +512,9 @@ class ThreadSanitizer(ValgrindTool):
if platform_suffix == 'mac':
ret += ["--show-pc=yes"]
+ # Don't show googletest frames in stacks.
+ ret += ["--cut_stack_below=testing*Test*Run*"]
+
return ret
def Analyze(self, check_sanity=False):