diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-08-12 13:19:53 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-08-12 13:19:53 +0000 |
commit | e18e3f07802c420eb4b2da407e148084b75cecc9 (patch) | |
tree | 0b67eaccd3353e3ec6ac4894e7d27a53d9fd5406 /lib/tsan/rtl/tsan_interceptors.cc | |
parent | edff34b5175c6759685da82077c99ee2be017667 (diff) | |
download | compiler-rt-e18e3f07802c420eb4b2da407e148084b75cecc9.tar.gz compiler-rt-e18e3f07802c420eb4b2da407e148084b75cecc9.tar.bz2 compiler-rt-e18e3f07802c420eb4b2da407e148084b75cecc9.tar.xz |
[sanitizer] Intercept poll/ppoll.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188177 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/tsan/rtl/tsan_interceptors.cc')
-rw-r--r-- | lib/tsan/rtl/tsan_interceptors.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/tsan/rtl/tsan_interceptors.cc b/lib/tsan/rtl/tsan_interceptors.cc index fd23d7d1..85bf30f6 100644 --- a/lib/tsan/rtl/tsan_interceptors.cc +++ b/lib/tsan/rtl/tsan_interceptors.cc @@ -1597,12 +1597,6 @@ TSAN_INTERCEPTOR(int, epoll_wait, int epfd, void *ev, int cnt, int timeout) { return res; } -TSAN_INTERCEPTOR(int, poll, void *fds, long_t nfds, int timeout) { - SCOPED_TSAN_INTERCEPTOR(poll, fds, nfds, timeout); - int res = BLOCK_REAL(poll)(fds, nfds, timeout); - return res; -} - void ALWAYS_INLINE rtl_generic_sighandler(bool sigact, int sig, my_siginfo_t *info, void *ctx) { ThreadState *thr = cur_thread(); @@ -1822,6 +1816,7 @@ struct TsanInterceptorContext { FdSocketAccept(((TsanInterceptorContext *) ctx)->thr, pc, fd, newfd) #define COMMON_INTERCEPTOR_SET_THREAD_NAME(ctx, name) \ ThreadSetName(((TsanInterceptorContext *) ctx)->thr, name) +#define COMMON_INTERCEPTOR_BLOCK_REAL(name) BLOCK_REAL(name) #include "sanitizer_common/sanitizer_common_interceptors.inc" // FIXME: Implement these with MemoryAccessRange(). @@ -2048,7 +2043,6 @@ void InitializeInterceptors() { TSAN_INTERCEPT(epoll_ctl); TSAN_INTERCEPT(epoll_wait); - TSAN_INTERCEPT(poll); TSAN_INTERCEPT(sigaction); TSAN_INTERCEPT(signal); |