reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

projects/compiler-rt/lib/interception/interception_linux.h
   25 bool InterceptFunction(const char *name, uptr *ptr_to_real, uptr func,

References

projects/compiler-rt/lib/asan/asan_interceptors.cpp
  636   ASAN_INTERCEPT_FUNC(strcat);
  637   ASAN_INTERCEPT_FUNC(strcpy);
  638   ASAN_INTERCEPT_FUNC(strncat);
  639   ASAN_INTERCEPT_FUNC(strncpy);
  640   ASAN_INTERCEPT_FUNC(strdup);
  642   ASAN_INTERCEPT_FUNC(__strdup);
  645   ASAN_INTERCEPT_FUNC(index);
  648   ASAN_INTERCEPT_FUNC(atoi);
  649   ASAN_INTERCEPT_FUNC(atol);
  650   ASAN_INTERCEPT_FUNC(strtol);
  652   ASAN_INTERCEPT_FUNC(atoll);
  653   ASAN_INTERCEPT_FUNC(strtoll);
  657   ASAN_INTERCEPT_FUNC(longjmp);
  660   ASAN_INTERCEPT_FUNC(swapcontext);
  663   ASAN_INTERCEPT_FUNC(_longjmp);
  666   ASAN_INTERCEPT_FUNC(__longjmp_chk);
  669   ASAN_INTERCEPT_FUNC(siglongjmp);
  674   ASAN_INTERCEPT_FUNC(__cxa_throw);
  677   ASAN_INTERCEPT_FUNC(__cxa_rethrow_primary_exception);
  681   INTERCEPT_FUNCTION(_Unwind_RaiseException);
  693   ASAN_INTERCEPT_FUNC(pthread_create);
  695   ASAN_INTERCEPT_FUNC(pthread_join);
  700   ASAN_INTERCEPT_FUNC(__cxa_atexit);
  712   ASAN_INTERCEPT_FUNC(vfork);
projects/compiler-rt/lib/cfi/cfi.cpp
  447   INTERCEPT_FUNCTION(dlopen);
  448   INTERCEPT_FUNCTION(dlclose);
projects/compiler-rt/lib/dfsan/dfsan_interceptors.cpp
   41   INTERCEPT_FUNCTION(mmap);
   42   INTERCEPT_FUNCTION(mmap64);
projects/compiler-rt/lib/hwasan/hwasan_interceptors.cpp
  254   INTERCEPT_FUNCTION(fork);
  258   INTERCEPT_FUNCTION(vfork);
  261   INTERCEPT_FUNCTION(pthread_create);
projects/compiler-rt/lib/lsan/lsan_interceptors.cpp
  485   INTERCEPT_FUNCTION(malloc);
  486   INTERCEPT_FUNCTION(free);
  487   LSAN_MAYBE_INTERCEPT_CFREE;
  488   INTERCEPT_FUNCTION(calloc);
  489   INTERCEPT_FUNCTION(realloc);
  490   LSAN_MAYBE_INTERCEPT_MEMALIGN;
  491   LSAN_MAYBE_INTERCEPT___LIBC_MEMALIGN;
  492   LSAN_MAYBE_INTERCEPT_ALIGNED_ALLOC;
  493   INTERCEPT_FUNCTION(posix_memalign);
  494   INTERCEPT_FUNCTION(valloc);
  495   LSAN_MAYBE_INTERCEPT_PVALLOC;
  496   LSAN_MAYBE_INTERCEPT_MALLOC_USABLE_SIZE;
  497   LSAN_MAYBE_INTERCEPT_MALLINFO;
  498   LSAN_MAYBE_INTERCEPT_MALLOPT;
  499   INTERCEPT_FUNCTION(pthread_create);
  500   INTERCEPT_FUNCTION(pthread_join);
  501   INTERCEPT_FUNCTION(_exit);
  510   LSAN_MAYBE_INTERCEPT_STRERROR;
projects/compiler-rt/lib/msan/msan_interceptors.cpp
 1607   INTERCEPT_FUNCTION(posix_memalign);
 1608   MSAN_MAYBE_INTERCEPT_MEMALIGN;
 1609   MSAN_MAYBE_INTERCEPT___LIBC_MEMALIGN;
 1610   INTERCEPT_FUNCTION(valloc);
 1611   MSAN_MAYBE_INTERCEPT_PVALLOC;
 1612   INTERCEPT_FUNCTION(malloc);
 1613   INTERCEPT_FUNCTION(calloc);
 1614   INTERCEPT_FUNCTION(realloc);
 1615   INTERCEPT_FUNCTION(reallocarray);
 1616   INTERCEPT_FUNCTION(free);
 1617   MSAN_MAYBE_INTERCEPT_CFREE;
 1618   MSAN_MAYBE_INTERCEPT_MALLOC_USABLE_SIZE;
 1619   MSAN_MAYBE_INTERCEPT_MALLINFO;
 1620   MSAN_MAYBE_INTERCEPT_MALLOPT;
 1621   MSAN_MAYBE_INTERCEPT_MALLOC_STATS;
 1622   INTERCEPT_FUNCTION(fread);
 1623   MSAN_MAYBE_INTERCEPT_FREAD_UNLOCKED;
 1624   INTERCEPT_FUNCTION(memccpy);
 1625   MSAN_MAYBE_INTERCEPT_MEMPCPY;
 1626   INTERCEPT_FUNCTION(bcopy);
 1627   INTERCEPT_FUNCTION(wmemset);
 1628   INTERCEPT_FUNCTION(wmemcpy);
 1629   MSAN_MAYBE_INTERCEPT_WMEMPCPY;
 1630   INTERCEPT_FUNCTION(wmemmove);
 1631   INTERCEPT_FUNCTION(strcpy);
 1632   MSAN_MAYBE_INTERCEPT_STPCPY;
 1633   INTERCEPT_FUNCTION(strdup);
 1634   MSAN_MAYBE_INTERCEPT___STRDUP;
 1635   INTERCEPT_FUNCTION(strncpy);
 1636   MSAN_MAYBE_INTERCEPT_GCVT;
 1637   INTERCEPT_FUNCTION(strcat);
 1638   INTERCEPT_FUNCTION(strncat);
 1639   INTERCEPT_STRTO(strtod);
 1640   INTERCEPT_STRTO(strtof);
 1641   INTERCEPT_STRTO(strtold);
 1642   INTERCEPT_STRTO(strtol);
 1643   INTERCEPT_STRTO(strtoul);
 1644   INTERCEPT_STRTO(strtoll);
 1645   INTERCEPT_STRTO(strtoull);
 1646   INTERCEPT_STRTO(strtouq);
 1647   INTERCEPT_STRTO(wcstod);
 1648   INTERCEPT_STRTO(wcstof);
 1649   INTERCEPT_STRTO(wcstold);
 1650   INTERCEPT_STRTO(wcstol);
 1651   INTERCEPT_STRTO(wcstoul);
 1652   INTERCEPT_STRTO(wcstoll);
 1653   INTERCEPT_STRTO(wcstoull);
 1658   INTERCEPT_FUNCTION(vswprintf);
 1659   INTERCEPT_FUNCTION(swprintf);
 1661   INTERCEPT_FUNCTION(strftime);
 1662   INTERCEPT_FUNCTION(strftime_l);
 1663   MSAN_MAYBE_INTERCEPT___STRFTIME_L;
 1664   INTERCEPT_FUNCTION(wcsftime);
 1665   INTERCEPT_FUNCTION(wcsftime_l);
 1666   MSAN_MAYBE_INTERCEPT___WCSFTIME_L;
 1667   INTERCEPT_FUNCTION(mbtowc);
 1668   INTERCEPT_FUNCTION(mbrtowc);
 1669   INTERCEPT_FUNCTION(wcslen);
 1670   INTERCEPT_FUNCTION(wcsnlen);
 1671   INTERCEPT_FUNCTION(wcschr);
 1672   INTERCEPT_FUNCTION(wcscpy);
 1673   INTERCEPT_FUNCTION(wcsncpy);
 1674   INTERCEPT_FUNCTION(wcscmp);
 1675   INTERCEPT_FUNCTION(getenv);
 1676   INTERCEPT_FUNCTION(setenv);
 1677   INTERCEPT_FUNCTION(putenv);
 1678   INTERCEPT_FUNCTION(gettimeofday);
 1679   MSAN_MAYBE_INTERCEPT_FCVT;
 1681   MSAN_MAYBE_INTERCEPT___FXSTAT;
 1682   MSAN_INTERCEPT_FSTATAT;
 1683   MSAN_MAYBE_INTERCEPT___FXSTAT64;
 1684   MSAN_MAYBE_INTERCEPT___FXSTATAT64;
 1685   INTERCEPT_FUNCTION(pipe);
 1686   INTERCEPT_FUNCTION(pipe2);
 1687   INTERCEPT_FUNCTION(socketpair);
 1688   MSAN_MAYBE_INTERCEPT_FGETS_UNLOCKED;
 1689   INTERCEPT_FUNCTION(getrlimit);
 1690   MSAN_MAYBE_INTERCEPT___GETRLIMIT;
 1691   MSAN_MAYBE_INTERCEPT_GETRLIMIT64;
 1692   MSAN_MAYBE_INTERCEPT_PRLIMIT;
 1693   MSAN_MAYBE_INTERCEPT_PRLIMIT64;
 1694   MSAN_INTERCEPT_UNAME;
 1695   INTERCEPT_FUNCTION(gethostname);
 1696   MSAN_MAYBE_INTERCEPT_EPOLL_WAIT;
 1697   MSAN_MAYBE_INTERCEPT_EPOLL_PWAIT;
 1698   INTERCEPT_FUNCTION(dladdr);
 1699   INTERCEPT_FUNCTION(dlerror);
 1700   INTERCEPT_FUNCTION(dl_iterate_phdr);
 1701   INTERCEPT_FUNCTION(getrusage);
 1705   INTERCEPT_FUNCTION(pthread_create);
 1707   INTERCEPT_FUNCTION(pthread_key_create);
 1713   INTERCEPT_FUNCTION(pthread_join);
 1714   INTERCEPT_FUNCTION(tzset);
 1715   INTERCEPT_FUNCTION(atexit);
 1716   INTERCEPT_FUNCTION(__cxa_atexit);
 1717   INTERCEPT_FUNCTION(shmat);
 1718   INTERCEPT_FUNCTION(fork);
 1719   MSAN_MAYBE_INTERCEPT_OPENPTY;
 1720   MSAN_MAYBE_INTERCEPT_FORKPTY;
projects/compiler-rt/lib/safestack/safestack.cpp
  253   INTERCEPT_FUNCTION(pthread_create);
projects/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
 9632   INIT_MMAP;
 9633   INIT_MMAP64;
 9634   INIT_TEXTDOMAIN;
 9635   INIT_STRLEN;
 9636   INIT_STRNLEN;
 9637   INIT_STRNDUP;
 9638   INIT___STRNDUP;
 9639   INIT_STRCMP;
 9640   INIT_STRNCMP;
 9641   INIT_STRCASECMP;
 9642   INIT_STRNCASECMP;
 9643   INIT_STRSTR;
 9644   INIT_STRCASESTR;
 9645   INIT_STRCHR;
 9646   INIT_STRCHRNUL;
 9647   INIT_STRRCHR;
 9648   INIT_STRSPN;
 9649   INIT_STRTOK;
 9650   INIT_STRPBRK;
 9651   INIT_STRXFRM;
 9652   INIT___STRXFRM_L;
 9653   INIT_MEMSET;
 9654   INIT_MEMMOVE;
 9656   INIT_MEMCHR;
 9657   INIT_MEMCMP;
 9658   INIT_BCMP;
 9659   INIT_MEMRCHR;
 9660   INIT_MEMMEM;
 9661   INIT_READ;
 9662   INIT_FREAD;
 9663   INIT_PREAD;
 9664   INIT_PREAD64;
 9665   INIT_READV;
 9666   INIT_PREADV;
 9667   INIT_PREADV64;
 9668   INIT_WRITE;
 9669   INIT_FWRITE;
 9670   INIT_PWRITE;
 9671   INIT_PWRITE64;
 9672   INIT_WRITEV;
 9673   INIT_PWRITEV;
 9674   INIT_PWRITEV64;
 9675   INIT_FGETS;
 9676   INIT_FPUTS;
 9677   INIT_PUTS;
 9678   INIT_PRCTL;
 9679   INIT_LOCALTIME_AND_FRIENDS;
 9680   INIT_STRPTIME;
 9681   INIT_SCANF;
 9682   INIT_ISOC99_SCANF;
 9683   INIT_PRINTF;
 9685   INIT_ISOC99_PRINTF;
 9686   INIT_FREXP;
 9687   INIT_FREXPF_FREXPL;
 9688   INIT_GETPWNAM_AND_FRIENDS;
 9689   INIT_GETPWNAM_R_AND_FRIENDS;
 9690   INIT_GETPWENT;
 9691   INIT_FGETPWENT;
 9692   INIT_GETPWENT_R;
 9693   INIT_FGETPWENT_R;
 9694   INIT_FGETGRENT_R;
 9695   INIT_SETPWENT;
 9696   INIT_CLOCK_GETTIME;
 9697   INIT_GETITIMER;
 9698   INIT_TIME;
 9699   INIT_GLOB;
 9700   INIT_GLOB64;
 9701   INIT_WAIT;
 9702   INIT_WAIT4;
 9703   INIT_INET;
 9704   INIT_PTHREAD_GETSCHEDPARAM;
 9705   INIT_GETADDRINFO;
 9706   INIT_GETNAMEINFO;
 9707   INIT_GETSOCKNAME;
 9708   INIT_GETHOSTBYNAME;
 9709   INIT_GETHOSTBYNAME2;
 9710   INIT_GETHOSTBYNAME_R;
 9711   INIT_GETHOSTBYNAME2_R;
 9712   INIT_GETHOSTBYADDR_R;
 9713   INIT_GETHOSTENT_R;
 9714   INIT_GETSOCKOPT;
 9715   INIT_ACCEPT;
 9716   INIT_ACCEPT4;
 9718   INIT_MODF;
 9719   INIT_RECVMSG;
 9720   INIT_SENDMSG;
 9721   INIT_RECVMMSG;
 9722   INIT_SENDMMSG;
 9723   INIT_GETPEERNAME;
 9724   INIT_IOCTL;
 9725   INIT_INET_ATON;
 9726   INIT_SYSINFO;
 9727   INIT_READDIR;
 9728   INIT_READDIR64;
 9729   INIT_PTRACE;
 9730   INIT_SETLOCALE;
 9731   INIT_GETCWD;
 9732   INIT_GET_CURRENT_DIR_NAME;
 9733   INIT_STRTOIMAX;
 9734   INIT_MBSTOWCS;
 9735   INIT_MBSNRTOWCS;
 9736   INIT_WCSTOMBS;
 9737   INIT_WCSNRTOMBS;
 9738   INIT_WCRTOMB;
 9739   INIT_WCTOMB;
 9740   INIT_TCGETATTR;
 9741   INIT_REALPATH;
 9742   INIT_CANONICALIZE_FILE_NAME;
 9743   INIT_CONFSTR;
 9744   INIT_SCHED_GETAFFINITY;
 9745   INIT_SCHED_GETPARAM;
 9746   INIT_STRERROR;
 9747   INIT_STRERROR_R;
 9748   INIT_XPG_STRERROR_R;
 9749   INIT_SCANDIR;
 9750   INIT_SCANDIR64;
 9751   INIT_GETGROUPS;
 9752   INIT_POLL;
 9753   INIT_PPOLL;
 9754   INIT_WORDEXP;
 9755   INIT_SIGWAIT;
 9756   INIT_SIGWAITINFO;
 9757   INIT_SIGTIMEDWAIT;
 9758   INIT_SIGSETOPS;
 9759   INIT_SIGPENDING;
 9760   INIT_SIGPROCMASK;
 9761   INIT_PTHREAD_SIGMASK;
 9762   INIT_BACKTRACE;
 9763   INIT__EXIT;
 9764   INIT_PTHREAD_MUTEX_LOCK;
 9765   INIT_PTHREAD_MUTEX_UNLOCK;
 9766   INIT___PTHREAD_MUTEX_LOCK;
 9767   INIT___PTHREAD_MUTEX_UNLOCK;
 9771   INIT_GETMNTENT;
 9772   INIT_GETMNTENT_R;
 9773   INIT_STATFS;
 9774   INIT_STATFS64;
 9775   INIT_STATVFS;
 9776   INIT_STATVFS64;
 9777   INIT_INITGROUPS;
 9778   INIT_ETHER_NTOA_ATON;
 9779   INIT_ETHER_HOST;
 9780   INIT_ETHER_R;
 9781   INIT_SHMCTL;
 9782   INIT_RANDOM_R;
 9783   INIT_PTHREAD_ATTR_GET;
 9784   INIT_PTHREAD_ATTR_GET_SCHED;
 9785   INIT_PTHREAD_ATTR_GETINHERITSCHED;
 9786   INIT_PTHREAD_ATTR_GETAFFINITY_NP;
 9787   INIT_PTHREAD_MUTEXATTR_GETPSHARED;
 9788   INIT_PTHREAD_MUTEXATTR_GETTYPE;
 9789   INIT_PTHREAD_MUTEXATTR_GETPROTOCOL;
 9790   INIT_PTHREAD_MUTEXATTR_GETPRIOCEILING;
 9791   INIT_PTHREAD_MUTEXATTR_GETROBUST;
 9792   INIT_PTHREAD_MUTEXATTR_GETROBUST_NP;
 9793   INIT_PTHREAD_RWLOCKATTR_GETPSHARED;
 9794   INIT_PTHREAD_RWLOCKATTR_GETKIND_NP;
 9795   INIT_PTHREAD_CONDATTR_GETPSHARED;
 9796   INIT_PTHREAD_CONDATTR_GETCLOCK;
 9797   INIT_PTHREAD_BARRIERATTR_GETPSHARED;
 9798   INIT_TMPNAM;
 9799   INIT_TMPNAM_R;
 9800   INIT_TTYNAME;
 9801   INIT_TTYNAME_R;
 9802   INIT_TEMPNAM;
 9803   INIT_PTHREAD_SETNAME_NP;
 9804   INIT_PTHREAD_GETNAME_NP;
 9805   INIT_SINCOS;
 9806   INIT_REMQUO;
 9807   INIT_REMQUOL;
 9808   INIT_LGAMMA;
 9809   INIT_LGAMMAL;
 9810   INIT_LGAMMA_R;
 9811   INIT_LGAMMAL_R;
 9812   INIT_DRAND48_R;
 9813   INIT_RAND_R;
 9814   INIT_GETLINE;
 9815   INIT_ICONV;
 9816   INIT_TIMES;
 9817   INIT_TLS_GET_ADDR;
 9818   INIT_LISTXATTR;
 9819   INIT_GETXATTR;
 9820   INIT_GETRESID;
 9821   INIT_GETIFADDRS;
 9822   INIT_IF_INDEXTONAME;
 9823   INIT_CAPGET;
 9825   INIT___BZERO;
 9826   INIT_BZERO;
 9827   INIT_FTIME;
 9828   INIT_XDR;
 9829   INIT_TSEARCH;
 9830   INIT_LIBIO_INTERNALS;
 9831   INIT_FOPEN;
 9832   INIT_FOPEN64;
 9833   INIT_OPEN_MEMSTREAM;
 9834   INIT_OBSTACK;
 9835   INIT_FFLUSH;
 9836   INIT_FCLOSE;
 9837   INIT_DLOPEN_DLCLOSE;
 9838   INIT_GETPASS;
 9839   INIT_TIMERFD;
 9840   INIT_MLOCKX;
 9841   INIT_FOPENCOOKIE;
 9842   INIT_SEM;
 9843   INIT_PTHREAD_SETCANCEL;
 9844   INIT_MINCORE;
 9845   INIT_PROCESS_VM_READV;
 9846   INIT_CTERMID;
 9848   INIT_RECV_RECVFROM;
 9849   INIT_SEND_SENDTO;
 9851   INIT_EVENTFD_READ_WRITE;
 9853   INIT___XSTAT;
 9854   INIT___XSTAT64;
 9855   INIT___LXSTAT;
 9856   INIT___LXSTAT64;
 9858   INIT_UTMP;
 9859   INIT_UTMPX;
 9860   INIT_GETLOADAVG;
 9861   INIT_WCSLEN;
 9862   INIT_WCSCAT;
 9863   INIT_WCSDUP;
 9864   INIT_WCSXFRM;
 9865   INIT___WCSXFRM_L;
 9875   INIT_READLINK;
 9876   INIT_READLINKAT;
 9877   INIT_NAME_TO_HANDLE_AT;
 9878   INIT_OPEN_BY_HANDLE_AT;
 9889   INIT_SETVBUF;
 9891   INIT_REGEX;
 9915   INIT_POPEN;
 9917   INIT_PCLOSE;
 9921   INIT_GETUSERSHELL;
 9923   INIT_GETRANDOM;
 9924   INIT_CRYPT;
 9925   INIT_CRYPT_R;
 9928   INIT___PRINTF_CHK;
projects/compiler-rt/lib/sanitizer_common/sanitizer_signal_interceptors.inc
   84   INIT_SIGNAL;
   85   INIT_SIGACTION;
projects/compiler-rt/lib/tsan/dd/dd_interceptors.cpp
  294   INTERCEPT_FUNCTION(pthread_mutex_destroy);
  295   INTERCEPT_FUNCTION(pthread_mutex_lock);
  296   INTERCEPT_FUNCTION(pthread_mutex_trylock);
  297   INTERCEPT_FUNCTION(pthread_mutex_unlock);
  299   INTERCEPT_FUNCTION(pthread_spin_destroy);
  300   INTERCEPT_FUNCTION(pthread_spin_lock);
  301   INTERCEPT_FUNCTION(pthread_spin_trylock);
  302   INTERCEPT_FUNCTION(pthread_spin_unlock);
  304   INTERCEPT_FUNCTION(pthread_rwlock_destroy);
  305   INTERCEPT_FUNCTION(pthread_rwlock_rdlock);
  306   INTERCEPT_FUNCTION(pthread_rwlock_tryrdlock);
  307   INTERCEPT_FUNCTION(pthread_rwlock_timedrdlock);
  308   INTERCEPT_FUNCTION(pthread_rwlock_wrlock);
  309   INTERCEPT_FUNCTION(pthread_rwlock_trywrlock);
  310   INTERCEPT_FUNCTION(pthread_rwlock_timedwrlock);
  311   INTERCEPT_FUNCTION(pthread_rwlock_unlock);
  321   INTERCEPT_FUNCTION(realpath);
  322   INTERCEPT_FUNCTION(read);
  323   INTERCEPT_FUNCTION(pread);
projects/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
 2636   InterceptFunction(TSAN_STRING_SETJMP, (uptr*)&REAL(setjmp_symname), 0, 0);
 2637   InterceptFunction("_setjmp", (uptr*)&REAL(_setjmp), 0, 0);
 2638   InterceptFunction(TSAN_STRING_SIGSETJMP, (uptr*)&REAL(sigsetjmp_symname), 0,
 2641   InterceptFunction("__sigsetjmp", (uptr*)&REAL(__sigsetjmp), 0, 0);
 2645   TSAN_INTERCEPT(longjmp_symname);
 2646   TSAN_INTERCEPT(siglongjmp_symname);
 2651   TSAN_INTERCEPT(malloc);
 2652   TSAN_INTERCEPT(__libc_memalign);
 2653   TSAN_INTERCEPT(calloc);
 2654   TSAN_INTERCEPT(realloc);
 2655   TSAN_INTERCEPT(reallocarray);
 2656   TSAN_INTERCEPT(free);
 2657   TSAN_INTERCEPT(cfree);
 2658   TSAN_INTERCEPT(munmap);
 2659   TSAN_MAYBE_INTERCEPT_MEMALIGN;
 2660   TSAN_INTERCEPT(valloc);
 2661   TSAN_MAYBE_INTERCEPT_PVALLOC;
 2662   TSAN_INTERCEPT(posix_memalign);
 2664   TSAN_INTERCEPT(strcpy);
 2665   TSAN_INTERCEPT(strncpy);
 2666   TSAN_INTERCEPT(strdup);
 2668   TSAN_INTERCEPT(pthread_create);
 2669   TSAN_INTERCEPT(pthread_join);
 2670   TSAN_INTERCEPT(pthread_detach);
 2671   TSAN_INTERCEPT(pthread_exit);
 2673   TSAN_INTERCEPT(pthread_tryjoin_np);
 2674   TSAN_INTERCEPT(pthread_timedjoin_np);
 2684   TSAN_INTERCEPT(pthread_mutex_init);
 2685   TSAN_INTERCEPT(pthread_mutex_destroy);
 2686   TSAN_INTERCEPT(pthread_mutex_trylock);
 2687   TSAN_INTERCEPT(pthread_mutex_timedlock);
 2689   TSAN_INTERCEPT(pthread_spin_init);
 2690   TSAN_INTERCEPT(pthread_spin_destroy);
 2691   TSAN_INTERCEPT(pthread_spin_lock);
 2692   TSAN_INTERCEPT(pthread_spin_trylock);
 2693   TSAN_INTERCEPT(pthread_spin_unlock);
 2695   TSAN_INTERCEPT(pthread_rwlock_init);
 2696   TSAN_INTERCEPT(pthread_rwlock_destroy);
 2697   TSAN_INTERCEPT(pthread_rwlock_rdlock);
 2698   TSAN_INTERCEPT(pthread_rwlock_tryrdlock);
 2699   TSAN_INTERCEPT(pthread_rwlock_timedrdlock);
 2700   TSAN_INTERCEPT(pthread_rwlock_wrlock);
 2701   TSAN_INTERCEPT(pthread_rwlock_trywrlock);
 2702   TSAN_INTERCEPT(pthread_rwlock_timedwrlock);
 2703   TSAN_INTERCEPT(pthread_rwlock_unlock);
 2705   TSAN_INTERCEPT(pthread_barrier_init);
 2706   TSAN_INTERCEPT(pthread_barrier_destroy);
 2707   TSAN_INTERCEPT(pthread_barrier_wait);
 2709   TSAN_INTERCEPT(pthread_once);
 2711   TSAN_INTERCEPT(fstat);
 2712   TSAN_MAYBE_INTERCEPT___FXSTAT;
 2713   TSAN_MAYBE_INTERCEPT_FSTAT64;
 2714   TSAN_MAYBE_INTERCEPT___FXSTAT64;
 2715   TSAN_INTERCEPT(open);
 2716   TSAN_MAYBE_INTERCEPT_OPEN64;
 2717   TSAN_INTERCEPT(creat);
 2718   TSAN_MAYBE_INTERCEPT_CREAT64;
 2719   TSAN_INTERCEPT(dup);
 2720   TSAN_INTERCEPT(dup2);
 2721   TSAN_INTERCEPT(dup3);
 2722   TSAN_MAYBE_INTERCEPT_EVENTFD;
 2723   TSAN_MAYBE_INTERCEPT_SIGNALFD;
 2724   TSAN_MAYBE_INTERCEPT_INOTIFY_INIT;
 2725   TSAN_MAYBE_INTERCEPT_INOTIFY_INIT1;
 2726   TSAN_INTERCEPT(socket);
 2727   TSAN_INTERCEPT(socketpair);
 2728   TSAN_INTERCEPT(connect);
 2729   TSAN_INTERCEPT(bind);
 2730   TSAN_INTERCEPT(listen);
 2731   TSAN_MAYBE_INTERCEPT_EPOLL;
 2732   TSAN_INTERCEPT(close);
 2733   TSAN_MAYBE_INTERCEPT___CLOSE;
 2734   TSAN_MAYBE_INTERCEPT___RES_ICLOSE;
 2735   TSAN_INTERCEPT(pipe);
 2736   TSAN_INTERCEPT(pipe2);
 2738   TSAN_INTERCEPT(unlink);
 2739   TSAN_INTERCEPT(tmpfile);
 2740   TSAN_MAYBE_INTERCEPT_TMPFILE64;
 2741   TSAN_INTERCEPT(abort);
 2742   TSAN_INTERCEPT(rmdir);
 2743   TSAN_INTERCEPT(closedir);
 2745   TSAN_INTERCEPT(sigsuspend);
 2746   TSAN_INTERCEPT(sigblock);
 2747   TSAN_INTERCEPT(sigsetmask);
 2748   TSAN_INTERCEPT(pthread_sigmask);
 2749   TSAN_INTERCEPT(raise);
 2750   TSAN_INTERCEPT(kill);
 2751   TSAN_INTERCEPT(pthread_kill);
 2752   TSAN_INTERCEPT(sleep);
 2753   TSAN_INTERCEPT(usleep);
 2754   TSAN_INTERCEPT(nanosleep);
 2755   TSAN_INTERCEPT(pause);
 2756   TSAN_INTERCEPT(gettimeofday);
 2757   TSAN_INTERCEPT(getaddrinfo);
 2759   TSAN_INTERCEPT(fork);
 2760   TSAN_INTERCEPT(vfork);
 2762   TSAN_INTERCEPT(dl_iterate_phdr);
 2764   TSAN_MAYBE_INTERCEPT_ON_EXIT;
 2765   TSAN_INTERCEPT(__cxa_atexit);
 2766   TSAN_INTERCEPT(_exit);
 2769   TSAN_INTERCEPT(__tls_get_addr);