summaryrefslogtreecommitdiff
path: root/lib/tsan
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-06-28 11:02:43 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-06-28 11:02:43 +0000
commit341b9e63f63a8eacf1b699d4c79edee55241ebe6 (patch)
treec952c914c352024f0e8d9485e6cc0f5da8046bf7 /lib/tsan
parent6b233edfdb741fa75faec815ff3940724e8126a5 (diff)
downloadcompiler-rt-341b9e63f63a8eacf1b699d4c79edee55241ebe6.tar.gz
[sanitizer] Intercept ptrace.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185142 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 5fec1c502..75cbe576a 100644
--- a/lib/tsan/rtl/tsan_stat.cc
+++ b/lib/tsan/rtl/tsan_stat.cc
@@ -335,6 +335,7 @@ void StatOutput(u64 *stat) {
name[StatInt_readdir64] = " readdir64 ";
name[StatInt_readdir_r] = " readdir_r ";
name[StatInt_readdir64_r] = " readdir64_r ";
+ name[StatInt_ptrace] = " ptrace ";
name[StatAnnotation] = "Dynamic annotations ";
name[StatAnnotateHappensBefore] = " HappensBefore ";
diff --git a/lib/tsan/rtl/tsan_stat.h b/lib/tsan/rtl/tsan_stat.h
index 6167f325f..c14f9371a 100644
--- a/lib/tsan/rtl/tsan_stat.h
+++ b/lib/tsan/rtl/tsan_stat.h
@@ -330,6 +330,7 @@ enum StatType {
StatInt_readdir64,
StatInt_readdir_r,
StatInt_readdir64_r,
+ StatInt_ptrace,
// Dynamic annotations.
StatAnnotation,