/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_fd.h | 41 void FdAcquire(ThreadState *thr, uptr pc, int fd); 42 void FdRelease(ThreadState *thr, uptr pc, int fd); 43 void FdAccess(ThreadState *thr, uptr pc, int fd); 44 void FdClose(ThreadState *thr, uptr pc, int fd, bool write = true); 45 void FdFileCreate(ThreadState *thr, uptr pc, int fd); 46 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd, bool write); 47 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd); 48 void FdEventCreate(ThreadState *thr, uptr pc, int fd); 49 void FdSignalCreate(ThreadState *thr, uptr pc, int fd); 50 void FdInotifyCreate(ThreadState *th [all...] |
H A D | tsan_mman.h | 29 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz, 32 void user_free(ThreadState *thr, uptr pc, void *p, bool signal = true); 34 void *user_alloc(ThreadState *thr, uptr pc, uptr sz); 35 void *user_calloc(ThreadState *thr, uptr pc, uptr sz, uptr n); 36 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz); 37 void *user_reallocarray(ThreadState *thr, uptr pc, void *p, uptr sz, uptr n); 38 void *user_memalign(ThreadState *thr, uptr pc, uptr align, uptr sz); 39 int user_posix_memalign(ThreadState *thr, uptr pc, void **memptr, uptr align, 41 void *user_aligned_alloc(ThreadState *thr, uptr pc, uptr align, uptr sz); 42 void *user_valloc(ThreadState *th [all...] |
H A D | tsan_rtl.h | 337 // In C++ it is tied to an OS thread just like ThreadState, however ideally 340 // ThreadState's (which are tied to Gs). 341 // A ThreadState must be wired with a Processor to handle events. 343 ThreadState *thr; // currently wired thread, or nullptr 365 struct ThreadState { struct in namespace:__tsan 374 // QUESTION: can we can squeeze this into ThreadState::Fast? 375 // E.g. ThreadState::Fast is a 44-bit, 32 are taken by synch_epoch and 12 are 381 ThreadState* current; 450 explicit ThreadState(Context *ctx, int tid, int unique_id, u64 epoch, 458 ThreadState *cur_threa [all...] |
H A D | tsan_platform_mac.cpp | 71 // the ThreadState object. The main thread's ThreadState is stored separately 75 ALIGNED(64) static char main_thread_state[sizeof(ThreadState)]; 76 static ThreadState *main_thread_state_loc = (ThreadState *)main_thread_state; 81 static ThreadState **cur_thread_location() { 87 return (ThreadState **)MemToShadow(thread_identity); 90 ThreadState *cur_thread() { 91 return (ThreadState *)SignalSafeGetOrAllocate( 92 (uptr *)cur_thread_location(), sizeof(ThreadState)); [all...] |
H A D | tsan_rtl_thread.cpp | 42 ThreadState *caller_thr = static_cast<ThreadState *>(arg); 48 ThreadState *thr; 76 ThreadState *thr1 = static_cast<ThreadState*>(arg); 81 ThreadState *thr; 95 new(thr) ThreadState(ctx, tid, unique_id, epoch0, reuse_count, 148 thr->~ThreadState(); 195 static void ThreadCheckIgnore(ThreadState *thr) { 204 static void ThreadCheckIgnore(ThreadState *th [all...] |
H A D | tsan_mman.cpp | 86 ThreadState *thr = cur_thread(); 109 ThreadState *thr = cur_thread(); 146 static void SignalUnsafeCall(ThreadState *thr, uptr pc) { 161 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz, uptr align, 187 void user_free(ThreadState *thr, uptr pc, void *p, bool signal) { 196 void *user_alloc(ThreadState *thr, uptr pc, uptr sz) { 200 void *user_calloc(ThreadState *thr, uptr pc, uptr size, uptr n) { 213 void *user_reallocarray(ThreadState *thr, uptr pc, void *p, uptr size, uptr n) { 223 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write) { 232 void OnUserFree(ThreadState *th [all...] |
H A D | tsan_fd.cpp | 49 static FdSync *allocsync(ThreadState *thr, uptr pc) { 62 static void unref(ThreadState *thr, uptr pc, FdSync *s) { 73 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) { 94 static void init(ThreadState *thr, uptr pc, int fd, FdSync *s, 128 void FdOnFork(ThreadState *thr, uptr pc) { 160 void FdAcquire(ThreadState *thr, uptr pc, int fd) { 171 void FdRelease(ThreadState *thr, uptr pc, int fd) { 182 void FdAccess(ThreadState *thr, uptr pc, int fd) { 190 void FdClose(ThreadState *thr, uptr pc, int fd, bool write) { 218 void FdFileCreate(ThreadState *th [all...] |
H A D | tsan_interceptors.h | 11 ScopedInterceptor(ThreadState *thr, const char *fname, uptr pc); 16 ThreadState *const thr_; 35 ThreadState *thr = cur_thread(); \
|
H A D | tsan_sync.h | 70 void Init(ThreadState *thr, uptr pc, uptr addr, u64 uid); 115 void AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz); 121 SyncVar* GetOrCreateAndLock(ThreadState *thr, uptr pc, 139 SyncVar* GetAndLock(ThreadState *thr, uptr pc, uptr addr, bool write_lock,
|
H A D | tsan_platform_linux.cpp | 427 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size) { 464 static ThreadState *dead_thread_state = nullptr; 466 ThreadState *cur_thread() { 467 ThreadState* thr = reinterpret_cast<ThreadState*>(*get_android_tls_ptr()); 473 thr = reinterpret_cast<ThreadState*>(*get_android_tls_ptr()); 475 thr = reinterpret_cast<ThreadState*>(MmapOrDie(sizeof(ThreadState), 476 "ThreadState")); 479 dead_thread_state = reinterpret_cast<ThreadState*>( [all...] |
H A D | tsan_rtl_proc.cpp | 46 void ProcWire(Processor *proc, ThreadState *thr) { 53 void ProcUnwire(Processor *proc, ThreadState *thr) {
|
H A D | tsan_rtl.cpp | 49 THREADLOCAL char cur_thread_placeholder[sizeof(ThreadState)] ALIGNED(64); 112 ThreadState::ThreadState(Context *ctx, int tid, int unique_id, u64 epoch, function in class:__tsan::ThreadState 243 void UnmapShadow(ThreadState *thr, uptr addr, uptr size) { 350 void Initialize(ThreadState *thr) { 442 int Finalize(ThreadState *thr) { 494 void ForkBefore(ThreadState *thr, uptr pc) { 499 void ForkParentAfter(ThreadState *thr, uptr pc) { 504 void ForkChildAfter(ThreadState *thr, uptr pc) { 528 void GrowShadowStack(ThreadState *th [all...] |
H A D | tsan_rtl_mutex.cpp | 25 void ReportDeadlock(ThreadState *thr, uptr pc, DDReport *r); 28 ThreadState *thr; 31 Callback(ThreadState *thr, uptr pc) 42 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s) { 48 static void ReportMutexMisuse(ThreadState *thr, uptr pc, ReportType typ, 64 void MutexCreate(ThreadState *thr, uptr pc, uptr addr, u32 flagz) { 80 void MutexDestroy(ThreadState *thr, uptr pc, uptr addr, u32 flagz) { 142 void MutexPreLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz) { 158 void MutexPostLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz, int rec) { 213 int MutexUnlock(ThreadState *th [all...] |
H A D | tsan_mutex.h | 86 void CheckNoLocks(ThreadState *thr);
|
H A D | tsan_interface_atomic.cpp | 222 static T AtomicLoad(ThreadState *thr, uptr pc, const volatile T *a, morder mo) { 258 static void AtomicStore(ThreadState *thr, uptr pc, volatile T *a, T v, 281 static T AtomicRMW(ThreadState *thr, uptr pc, volatile T *a, T v, morder mo) { 338 static T AtomicExchange(ThreadState *thr, uptr pc, volatile T *a, T v, 344 static T AtomicFetchAdd(ThreadState *thr, uptr pc, volatile T *a, T v, 350 static T AtomicFetchSub(ThreadState *thr, uptr pc, volatile T *a, T v, 356 static T AtomicFetchAnd(ThreadState *thr, uptr pc, volatile T *a, T v, 362 static T AtomicFetchOr(ThreadState *thr, uptr pc, volatile T *a, T v, 368 static T AtomicFetchXor(ThreadState *thr, uptr pc, volatile T *a, T v, 374 static T AtomicFetchNand(ThreadState *th [all...] |
H A D | tsan_external.cpp | 45 void InsertShadowStackFrameForTag(ThreadState *thr, uptr tag) { 59 typedef void(*AccessFunc)(ThreadState *, uptr, uptr, int); 62 ThreadState *thr = cur_thread();
|
H A D | tsan_interface.cpp | 140 FiberDestroy(cur_thread(), CALLERPC, static_cast<ThreadState *>(fiber)); 145 FiberSwitch(cur_thread(), CALLERPC, static_cast<ThreadState *>(fiber), flags); 150 ThreadSetName(static_cast<ThreadState *>(fiber), name);
|
H A D | tsan_symbolize.cpp | 25 ThreadState *thr = cur_thread(); 32 ThreadState *thr = cur_thread();
|
H A D | tsan_interface.h | 217 struct ThreadState; 397 void __tsan_go_atomic32_load(ThreadState *thr, uptr cpc, uptr pc, u8 *a); 399 void __tsan_go_atomic64_load(ThreadState *thr, uptr cpc, uptr pc, u8 *a); 401 void __tsan_go_atomic32_store(ThreadState *thr, uptr cpc, uptr pc, u8 *a); 403 void __tsan_go_atomic64_store(ThreadState *thr, uptr cpc, uptr pc, u8 *a); 405 void __tsan_go_atomic32_fetch_add(ThreadState *thr, uptr cpc, uptr pc, u8 *a); 407 void __tsan_go_atomic64_fetch_add(ThreadState *thr, uptr cpc, uptr pc, u8 *a); 409 void __tsan_go_atomic32_exchange(ThreadState *thr, uptr cpc, uptr pc, u8 *a); 411 void __tsan_go_atomic64_exchange(ThreadState *thr, uptr cpc, uptr pc, u8 *a); 413 void __tsan_go_atomic32_compare_exchange(ThreadState *th [all...] |
H A D | tsan_sync.cpp | 19 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s); 26 void SyncVar::Init(ThreadState *thr, uptr pc, uptr addr, u64 uid) { 61 void MetaMap::AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz) { 196 SyncVar* MetaMap::GetOrCreateAndLock(ThreadState *thr, uptr pc, 205 SyncVar* MetaMap::GetAndLock(ThreadState *thr, uptr pc,
|
H A D | tsan_interface_inl.h | 87 ThreadState *thr = cur_thread(); 96 ThreadState *thr = cur_thread();
|
H A D | tsan_interface_java.cpp | 40 ScopedJavaFunc(ThreadState *thr, uptr pc) 52 ThreadState *thr_; 61 ThreadState *thr = cur_thread(); \
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/go/ |
H A D | tsan_go.cpp | 123 static ThreadState *main_thr; 138 Processor *ThreadState::proc() { 144 static ThreadState *AllocGoroutine() { 145 ThreadState *thr = (ThreadState*)internal_alloc(MBlockThreadContex, 146 sizeof(ThreadState)); 151 void __tsan_init(ThreadState **thrp, Processor **procp, 154 ThreadState *thr = AllocGoroutine(); 163 ThreadState *thr = main_thr; 172 void __tsan_read(ThreadState *th [all...] |
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
H A D | tsd_exclusive.h | 16 enum class ThreadState : u8 { class in namespace:scudo 43 if (LIKELY(State != ThreadState::NotInitialized)) 49 if (LIKELY(State == ThreadState::Initialized && 92 State = ThreadState::Initialized; 101 static THREADLOCAL ThreadState State; 110 THREADLOCAL ThreadState TSDRegistryExT<Allocator>::State; 128 TSDRegistryT::State = ThreadState::TornDown;
|
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/scudo/ |
H A D | scudo_tsd_exclusive.cpp | 23 THREADLOCAL ThreadState ScudoThreadState = ThreadNotInitialized;
|