[Tsan] Intercept pthread_set_name_np on FreeBSD
Differential Revision: http://reviews.llvm.org/D5932 llvm-svn: 220551
This commit is contained in:
parent
9003426e2f
commit
6a9dec2aa2
|
|
@ -41,6 +41,10 @@
|
||||||
#define va_copy(dst, src) ((dst) = (src))
|
#define va_copy(dst, src) ((dst) = (src))
|
||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
|
|
||||||
|
#if SANITIZER_FREEBSD
|
||||||
|
#define pthread_setname_np pthread_set_name_np
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef COMMON_INTERCEPTOR_INITIALIZE_RANGE
|
#ifndef COMMON_INTERCEPTOR_INITIALIZE_RANGE
|
||||||
#define COMMON_INTERCEPTOR_INITIALIZE_RANGE(p, size) {}
|
#define COMMON_INTERCEPTOR_INITIALIZE_RANGE(p, size) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -206,7 +206,8 @@
|
||||||
#define SANITIZER_INTERCEPT__EXIT SI_LINUX || SI_FREEBSD
|
#define SANITIZER_INTERCEPT__EXIT SI_LINUX || SI_FREEBSD
|
||||||
|
|
||||||
#define SANITIZER_INTERCEPT_PHTREAD_MUTEX SI_NOT_WINDOWS
|
#define SANITIZER_INTERCEPT_PHTREAD_MUTEX SI_NOT_WINDOWS
|
||||||
#define SANITIZER_INTERCEPT_PTHREAD_SETNAME_NP SI_LINUX_NOT_ANDROID
|
#define SANITIZER_INTERCEPT_PTHREAD_SETNAME_NP \
|
||||||
|
SI_FREEBSD || SI_LINUX_NOT_ANDROID
|
||||||
|
|
||||||
#define SANITIZER_INTERCEPT_TLS_GET_ADDR SI_LINUX_NOT_ANDROID
|
#define SANITIZER_INTERCEPT_TLS_GET_ADDR SI_LINUX_NOT_ANDROID
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue