summaryrefslogtreecommitdiff
path: root/lib/tsan
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-10-25 08:58:13 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-10-25 08:58:13 +0000
commitaff25aa02098a510eff6eda1a3ec823e5b1fe1aa (patch)
treeb63190a5d06ac0ae04a01f673d8020e18fe48a0d /lib/tsan
parent3a6eb8083c342da436df8c7d1809dfeb8834bc6d (diff)
downloadcompiler-rt-aff25aa02098a510eff6eda1a3ec823e5b1fe1aa.tar.gz
[sanitizer] Intercept random_r.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193396 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan')
-rw-r--r--lib/tsan/rtl/tsan_stat.cc1
-rw-r--r--lib/tsan/rtl/tsan_stat.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/tsan/rtl/tsan_stat.cc b/lib/tsan/rtl/tsan_stat.cc
index 30177e71d..64c2bd012 100644
--- a/lib/tsan/rtl/tsan_stat.cc
+++ b/lib/tsan/rtl/tsan_stat.cc
@@ -393,6 +393,7 @@ void StatOutput(u64 *stat) {
name[StatInt_ether_hostton] = " ether_hostton ";
name[StatInt_ether_line] = " ether_line ";
name[StatInt_shmctl] = " shmctl ";
+ name[StatInt_random_r] = " random_r ";
name[StatAnnotation] = "Dynamic annotations ";
name[StatAnnotateHappensBefore] = " HappensBefore ";
diff --git a/lib/tsan/rtl/tsan_stat.h b/lib/tsan/rtl/tsan_stat.h
index 5b8c60f05..bf7d6c8af 100644
--- a/lib/tsan/rtl/tsan_stat.h
+++ b/lib/tsan/rtl/tsan_stat.h
@@ -388,6 +388,7 @@ enum StatType {
StatInt_ether_hostton,
StatInt_ether_line,
StatInt_shmctl,
+ StatInt_random_r,
// Dynamic annotations.
StatAnnotation,