From f8213b4eb38a9a8a6788fe31a8708e57089e4adc Mon Sep 17 00:00:00 2001 From: Evgeniy Stepanov Date: Mon, 1 Apr 2013 14:47:21 +0000 Subject: [sanitizer] More interceptors. getpwnam, getpwuid, getpwnam_r, getpwuid_r, clock_getres, clock_gettime, clock_settime, getitimer, setitimer, sigaction (MSan). llvm-svn: 178465 --- compiler-rt/lib/tsan/rtl/tsan_stat.cc | 9 +++++++++ compiler-rt/lib/tsan/rtl/tsan_stat.h | 9 +++++++++ 2 files changed, 18 insertions(+) (limited to 'compiler-rt/lib/tsan') 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, -- cgit v1.2.3