summaryrefslogtreecommitdiff
path: root/lib/tsan
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-10-24 14:47:34 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-10-24 14:47:34 +0000
commit10362d66fffcd99bd5ced983e4b389dfeba114d0 (patch)
treeae8c70de46a077ca5cd55908fe483219c13251d5 /lib/tsan
parent1161eb4bff61908074699f6459eabce25839f966 (diff)
downloadcompiler-rt-10362d66fffcd99bd5ced983e4b389dfeba114d0.tar.gz
compiler-rt-10362d66fffcd99bd5ced983e4b389dfeba114d0.tar.bz2
compiler-rt-10362d66fffcd99bd5ced983e4b389dfeba114d0.tar.xz
[sanitizer] Intercept shmctl.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193348 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 73622986..30177e71 100644
--- a/lib/tsan/rtl/tsan_stat.cc
+++ b/lib/tsan/rtl/tsan_stat.cc
@@ -392,6 +392,7 @@ void StatOutput(u64 *stat) {
name[StatInt_ether_ntohost] = " ether_ntohost ";
name[StatInt_ether_hostton] = " ether_hostton ";
name[StatInt_ether_line] = " ether_line ";
+ name[StatInt_shmctl] = " shmctl ";
name[StatAnnotation] = "Dynamic annotations ";
name[StatAnnotateHappensBefore] = " HappensBefore ";
diff --git a/lib/tsan/rtl/tsan_stat.h b/lib/tsan/rtl/tsan_stat.h
index 61eea825..5b8c60f0 100644
--- a/lib/tsan/rtl/tsan_stat.h
+++ b/lib/tsan/rtl/tsan_stat.h
@@ -387,6 +387,7 @@ enum StatType {
StatInt_ether_ntohost,
StatInt_ether_hostton,
StatInt_ether_line,
+ StatInt_shmctl,
// Dynamic annotations.
StatAnnotation,