From ebf1c51c41cb24aa230fdbcda464772bf39823a9 Mon Sep 17 00:00:00 2001 From: "timurrrr@chromium.org" Date: Wed, 24 Mar 2010 12:58:30 +0000 Subject: 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 --- tools/valgrind/valgrind_test.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tools') 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): -- cgit v1.1