summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-04-01 14:47:21 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-04-01 14:47:21 +0000
commitf8213b4eb38a9a8a6788fe31a8708e57089e4adc (patch)
tree748371ca20e20817d86b5cb3e82110fc3c563546 /compiler-rt/lib/tsan
parent1d021bff28af24cd8ff45b47233e41de326478cf (diff)
downloadbcm5719-llvm-f8213b4eb38a9a8a6788fe31a8708e57089e4adc.tar.gz
bcm5719-llvm-f8213b4eb38a9a8a6788fe31a8708e57089e4adc.zip
[sanitizer] More interceptors.
getpwnam, getpwuid, getpwnam_r, getpwuid_r, clock_getres, clock_gettime, clock_settime, getitimer, setitimer, sigaction (MSan). llvm-svn: 178465
Diffstat (limited to 'compiler-rt/lib/tsan')
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_stat.cc9
-rw-r--r--compiler-rt/lib/tsan/rtl/tsan_stat.h9
2 files changed, 18 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_stat.cc b/compiler-rt/lib/tsan/rtl/tsan_stat.cc
index babe9618bd3..fa21cea6fd2 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_stat.cc
+++ b/compiler-rt/lib/tsan/rtl/tsan_stat.cc
@@ -287,6 +287,15 @@ void StatOutput(u64 *stat) {
name[StatInt_frexp] = " frexp ";
name[StatInt_frexpf] = " frexpf ";
name[StatInt_frexpl] = " frexpl ";
+ name[StatInt_getpwnam] = " getpwnam ";
+ name[StatInt_getpwuid] = " getpwuid ";
+ name[StatInt_getpwnam_r] = " getpwnam_r ";
+ name[StatInt_getpwuid_r] = " getpwuid_r ";
+ name[StatInt_clock_getres] = " clock_getres ";
+ name[StatInt_clock_gettime] = " clock_gettime ";
+ name[StatInt_clock_settime] = " clock_settime ";
+ name[StatInt_getitimer] = " getitimer ";
+ name[StatInt_setitimer] = " setitimer ";
name[StatAnnotation] = "Dynamic annotations ";
name[StatAnnotateHappensBefore] = " HappensBefore ";
diff --git a/compiler-rt/lib/tsan/rtl/tsan_stat.h b/compiler-rt/lib/tsan/rtl/tsan_stat.h
index c1cd05d6866..37d6ef26764 100644
--- a/compiler-rt/lib/tsan/rtl/tsan_stat.h
+++ b/compiler-rt/lib/tsan/rtl/tsan_stat.h
@@ -282,6 +282,15 @@ enum StatType {
StatInt_frexp,
StatInt_frexpf,
StatInt_frexpl,
+ StatInt_getpwnam,
+ StatInt_getpwuid,
+ StatInt_getpwnam_r,
+ StatInt_getpwuid_r,
+ StatInt_clock_getres,
+ StatInt_clock_gettime,
+ StatInt_clock_settime,
+ StatInt_getitimer,
+ StatInt_setitimer,
// Dynamic annotations.
StatAnnotation,
OpenPOWER on IntegriCloud