llvm-project/compiler-rt/lib
Dimitry Andric 28fb22c90f [TSan] Handle FreeBSD specific indirection of libpthread functions
Similar to 60cc1d3218 for NetBSD, add aliases and interceptors for the
following pthread related functions:

- pthread_cond_init(3)
- pthread_cond_destroy(3)
- pthread_cond_signal(3)
- pthread_cond_broadcast(3)
- pthread_cond_wait(3)
- pthread_mutex_init(3)
- pthread_mutex_destroy(3)
- pthread_mutex_lock(3)
- pthread_mutex_trylock(3)
- pthread_mutex_unlock(3)
- pthread_rwlock_init(3)
- pthread_rwlock_destroy(3)
- pthread_rwlock_rdlock(3)
- pthread_rwlock_tryrdlock(3)
- pthread_rwlock_wrlock(3)
- pthread_rwlock_trywrlock(3)
- pthread_rwlock_unlock(3)
- pthread_once(3)
- pthread_sigmask(3)

In FreeBSD's libc, a number of internal aliases of the pthread functions
are invoked, typically with an additional prefixed underscore, e.g.
_pthread_cond_init() and so on.

ThreadSanitizer needs to intercept these aliases too, otherwise some
false positive reports about data races might be produced.

Reviewed By: dvyukov

Differential Revision: https://reviews.llvm.org/D119034
2022-02-07 11:01:37 +01:00
..
BlocksRuntime
asan [ASan] Added intermediate functions between assembly and __asan_report.* to avoid link errors. 2022-02-03 00:31:27 +00:00
builtins [compiler-rt][builtins] Use c[tl]zsi macro instead of __builtin_c[tl]z 2022-01-30 23:04:07 +03:00
cfi sanitizer_common: prefix thread-safety macros with SANITIZER_ 2022-01-07 15:11:00 +01:00
crt Control-flow Enforcement Technology (CET), published by Intel, introduces 2022-01-10 11:01:11 +08:00
dfsan [NFC][DFSan] Cleanup code to use align functions. 2022-01-06 14:42:38 -08:00
fuzzer [libc++] Disable coverage with sanitize-coverage=0 2022-01-07 17:53:21 -08:00
gwp_asan Fix a few warnings (signed/unsigned comparison in gtest, and missing field initializers) 2021-10-16 22:43:57 -07:00
hwasan [HWASan] Add __hwasan_init to .preinit_array. 2022-02-03 13:07:58 -08:00
interception [sanitizers] Silence warnings about unused variables in i386 build. NFC. 2022-01-28 12:30:38 +02:00
lsan [ASan][Darwin] Avoid crash during ASan initialization 2022-01-07 12:28:38 -08:00
memprof [memprof] Move the meminfo block struct to MemProfData.inc. 2022-01-31 15:04:41 -08:00
msan [msan][tsan] Refine __fxstat{,at}{,64} condition 2022-01-28 09:15:39 -08:00
orc [CMake] Use generator expression to get in-tree libc++ path 2022-01-26 14:12:48 -08:00
profile [InstrProf] Add single byte coverage mode 2022-01-27 17:38:55 -08:00
safestack Revert "sanitizers: increase .clang-format columns to 100" 2021-07-28 09:40:21 +02:00
sanitizer_common [msan] Guard FP_XSTATE_MAGIC1 usage with SANITIZER_GLIBC 2022-02-04 10:15:11 -08:00
scudo [CMake] Use generator expression to get in-tree libc++ path 2022-01-26 14:12:48 -08:00
stats [compiler-rt] separate lsan, ubsan, stats configuration from SANITIZER_COMMON_SUPPORTED_OS 2021-11-10 19:16:20 -08:00
tsan [TSan] Handle FreeBSD specific indirection of libpthread functions 2022-02-07 11:01:37 +01:00
ubsan [gn build] slighly reformat files to make sync script work 2022-01-27 20:09:04 -05:00
ubsan_minimal [compiler-rt] separate lsan, ubsan, stats configuration from SANITIZER_COMMON_SUPPORTED_OS 2021-11-10 19:16:20 -08:00
xray [CMake] Use generator expression to get in-tree libc++ path 2022-01-26 14:12:48 -08:00
CMakeLists.txt [ORC-RT] Re-apply "Initial ORC Runtime directories and build..." with fixes. 2021-04-24 16:00:20 -07:00