projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a57c797
)
tsan: add ValgrindSlowdown() "dynamic annotation"
author
Dmitry Vyukov
<dvyukov@google.com>
Thu, 17 May 2012 08:04:41 +0000
(08:04 +0000)
committer
Dmitry Vyukov
<dvyukov@google.com>
Thu, 17 May 2012 08:04:41 +0000
(08:04 +0000)
llvm-svn: 156981
compiler-rt/lib/tsan/rtl/tsan_interface_ann.cc
patch
|
blob
|
history
diff --git
a/compiler-rt/lib/tsan/rtl/tsan_interface_ann.cc
b/compiler-rt/lib/tsan/rtl/tsan_interface_ann.cc
index
96f1f8a
..
0877e2a
100644
(file)
--- a/
compiler-rt/lib/tsan/rtl/tsan_interface_ann.cc
+++ b/
compiler-rt/lib/tsan/rtl/tsan_interface_ann.cc
@@
-335,6
+335,10
@@
int RunningOnValgrind() {
return 0;
}
+double ValgrindSlowdown(void) {
+ return 10.0;
+}
+
const char *ThreadSanitizerQuery(const char *query) {
if (internal_strcmp(query, "pure_happens_before") == 0)
return "1";