/src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
tsan_fd.h | 42 void FdAcquire(ThreadState *thr, uptr pc, int fd); 43 void FdRelease(ThreadState *thr, uptr pc, int fd); 44 void FdAccess(ThreadState *thr, uptr pc, int fd); 45 void FdClose(ThreadState *thr, uptr pc, int fd, bool write = true); 46 void FdFileCreate(ThreadState *thr, uptr pc, int fd); 47 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd, bool write); 48 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd); 49 void FdEventCreate(ThreadState *thr, uptr pc, int fd); 50 void FdSignalCreate(ThreadState *thr, uptr pc, int fd); 51 void FdInotifyCreate(ThreadState *thr, uptr pc, int fd) [all...] |
tsan_mman.h | 30 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz, 33 void user_free(ThreadState *thr, uptr pc, void *p, bool signal = true); 35 void *user_alloc(ThreadState *thr, uptr pc, uptr sz); 36 void *user_calloc(ThreadState *thr, uptr pc, uptr sz, uptr n); 37 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz); 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 *thr, uptr pc, uptr sz); 43 void *user_pvalloc(ThreadState *thr, uptr pc, uptr sz) [all...] |
tsan_platform_mac.cc | 72 // the ThreadState object. The main thread's ThreadState is stored separately 76 ALIGNED(64) static char main_thread_state[sizeof(ThreadState)]; 78 ThreadState **cur_thread_location() { 79 ThreadState **thread_identity = (ThreadState **)pthread_self(); 84 ThreadState *cur_thread() { 85 ThreadState **thr_state_loc = cur_thread_location(); 87 return (ThreadState *)&main_thread_state; 89 ThreadState **fake_tls = (ThreadState **)MemToShadow((uptr)thr_state_loc) [all...] |
tsan_rtl.h | 346 // In C++ it is tied to an OS thread just like ThreadState, however ideally 349 // ThreadState's (which are tied to Gs). 350 // A ThreadState must be wired with a Processor to handle events. 352 ThreadState *thr; // currently wired thread, or nullptr 374 struct ThreadState { 383 // QUESTION: can we can squeeze this into ThreadState::Fast? 384 // E.g. ThreadState::Fast is a 44-bit, 32 are taken by synch_epoch and 12 are 456 explicit ThreadState(Context *ctx, int tid, int unique_id, u64 epoch, 464 ThreadState *cur_thread(); 469 INLINE ThreadState *cur_thread() [all...] |
tsan_interceptors.h | 11 ScopedInterceptor(ThreadState *thr, const char *fname, uptr pc); 16 ThreadState *const thr_; 27 ThreadState *thr = cur_thread(); \
|
tsan_rtl_thread.cc | 43 ThreadState *caller_thr = static_cast<ThreadState *>(arg); 49 ThreadState *thr; 77 ThreadState *thr1 = static_cast<ThreadState*>(arg); 82 ThreadState *thr; 96 new(thr) ThreadState(ctx, tid, unique_id, epoch0, reuse_count, 149 thr->~ThreadState(); 196 static void ThreadCheckIgnore(ThreadState *thr) { 205 static void ThreadCheckIgnore(ThreadState *thr) { [all...] |
tsan_fd.cc | 50 static FdSync *allocsync(ThreadState *thr, uptr pc) { 63 static void unref(ThreadState *thr, uptr pc, FdSync *s) { 74 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 *thr, uptr pc, int fd) [all...] |
tsan_mman.cc | 87 ThreadState *thr = cur_thread(); 110 ThreadState *thr = cur_thread(); 140 static void SignalUnsafeCall(ThreadState *thr, uptr pc) { 156 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz, uptr align, 179 void user_free(ThreadState *thr, uptr pc, void *p, bool signal) { 188 void *user_alloc(ThreadState *thr, uptr pc, uptr sz) { 192 void *user_calloc(ThreadState *thr, uptr pc, uptr size, uptr n) { 205 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write) { 214 void OnUserFree(ThreadState *thr, uptr pc, uptr p, bool write) { 222 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz) [all...] |
tsan_platform_linux.cc | 338 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size) { 375 static ThreadState *dead_thread_state = nullptr; 377 ThreadState *cur_thread() { 378 ThreadState* thr = reinterpret_cast<ThreadState*>(*get_android_tls_ptr()); 384 thr = reinterpret_cast<ThreadState*>(*get_android_tls_ptr()); 386 thr = reinterpret_cast<ThreadState*>(MmapOrDie(sizeof(ThreadState), 387 "ThreadState")); 390 dead_thread_state = reinterpret_cast<ThreadState*>( [all...] |
tsan_sync.h | 71 void Init(ThreadState *thr, uptr pc, uptr addr, u64 uid); 116 void AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz); 122 SyncVar* GetOrCreateAndLock(ThreadState *thr, uptr pc, 140 SyncVar* GetAndLock(ThreadState *thr, uptr pc, uptr addr, bool write_lock,
|
tsan_rtl_proc.cc | 47 void ProcWire(Processor *proc, ThreadState *thr) { 54 void ProcUnwire(Processor *proc, ThreadState *thr) {
|
tsan_rtl_mutex.cc | 26 void ReportDeadlock(ThreadState *thr, uptr pc, DDReport *r); 29 ThreadState *thr; 32 Callback(ThreadState *thr, uptr pc) 43 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s) { 49 static void ReportMutexMisuse(ThreadState *thr, uptr pc, ReportType typ, 65 void MutexCreate(ThreadState *thr, uptr pc, uptr addr, u32 flagz) { 81 void MutexDestroy(ThreadState *thr, uptr pc, uptr addr, u32 flagz) { 143 void MutexPreLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz) { 159 void MutexPostLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz, int rec) { 214 int MutexUnlock(ThreadState *thr, uptr pc, uptr addr, u32 flagz) [all...] |
tsan_rtl.cc | 50 THREADLOCAL char cur_thread_placeholder[sizeof(ThreadState)] ALIGNED(64); 113 ThreadState::ThreadState(Context *ctx, int tid, int unique_id, u64 epoch, 344 void Initialize(ThreadState *thr) { 435 int Finalize(ThreadState *thr) { 487 void ForkBefore(ThreadState *thr, uptr pc) { 492 void ForkParentAfter(ThreadState *thr, uptr pc) { 497 void ForkChildAfter(ThreadState *thr, uptr pc) { 521 void GrowShadowStack(ThreadState *thr) { 534 u32 CurrentStackId(ThreadState *thr, uptr pc) [all...] |
tsan_mutex.h | 87 void CheckNoLocks(ThreadState *thr);
|
tsan_interface_atomic.cc | 223 static T AtomicLoad(ThreadState *thr, uptr pc, const volatile T *a, morder mo) { 259 static void AtomicStore(ThreadState *thr, uptr pc, volatile T *a, T v, 282 static T AtomicRMW(ThreadState *thr, uptr pc, volatile T *a, T v, morder mo) { 339 static T AtomicExchange(ThreadState *thr, uptr pc, volatile T *a, T v, 345 static T AtomicFetchAdd(ThreadState *thr, uptr pc, volatile T *a, T v, 351 static T AtomicFetchSub(ThreadState *thr, uptr pc, volatile T *a, T v, 357 static T AtomicFetchAnd(ThreadState *thr, uptr pc, volatile T *a, T v, 363 static T AtomicFetchOr(ThreadState *thr, uptr pc, volatile T *a, T v, 369 static T AtomicFetchXor(ThreadState *thr, uptr pc, volatile T *a, T v, 375 static T AtomicFetchNand(ThreadState *thr, uptr pc, volatile T *a, T v [all...] |
tsan_external.cc | 46 void InsertShadowStackFrameForTag(ThreadState *thr, uptr tag) { 60 typedef void(*AccessFunc)(ThreadState *, uptr, uptr, int); 63 ThreadState *thr = cur_thread();
|
tsan_interface_inl.h | 88 ThreadState *thr = cur_thread(); 97 ThreadState *thr = cur_thread();
|
tsan_symbolize.cc | 26 ThreadState *thr = cur_thread(); 33 ThreadState *thr = cur_thread();
|
tsan_interface.h | 213 struct ThreadState; 393 void __tsan_go_atomic32_load(ThreadState *thr, uptr cpc, uptr pc, u8 *a); 395 void __tsan_go_atomic64_load(ThreadState *thr, uptr cpc, uptr pc, u8 *a); 397 void __tsan_go_atomic32_store(ThreadState *thr, uptr cpc, uptr pc, u8 *a); 399 void __tsan_go_atomic64_store(ThreadState *thr, uptr cpc, uptr pc, u8 *a); 401 void __tsan_go_atomic32_fetch_add(ThreadState *thr, uptr cpc, uptr pc, u8 *a); 403 void __tsan_go_atomic64_fetch_add(ThreadState *thr, uptr cpc, uptr pc, u8 *a); 405 void __tsan_go_atomic32_exchange(ThreadState *thr, uptr cpc, uptr pc, u8 *a); 407 void __tsan_go_atomic64_exchange(ThreadState *thr, uptr cpc, uptr pc, u8 *a); 409 void __tsan_go_atomic32_compare_exchange(ThreadState *thr, uptr cpc, uptr pc [all...] |
tsan_sync.cc | 20 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s); 27 void SyncVar::Init(ThreadState *thr, uptr pc, uptr addr, u64 uid) { 62 void MetaMap::AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz) { 197 SyncVar* MetaMap::GetOrCreateAndLock(ThreadState *thr, uptr pc, 206 SyncVar* MetaMap::GetAndLock(ThreadState *thr, uptr pc,
|
tsan_interface_java.cc | 41 ScopedJavaFunc(ThreadState *thr, uptr pc) 53 ThreadState *thr_; 62 ThreadState *thr = cur_thread(); \
|
/src/sys/external/bsd/compiler_rt/dist/lib/tsan/go/ |
tsan_go.cc | 113 static ThreadState *main_thr; 128 Processor *ThreadState::proc() { 134 static ThreadState *AllocGoroutine() { 135 ThreadState *thr = (ThreadState*)internal_alloc(MBlockThreadContex, 136 sizeof(ThreadState)); 141 void __tsan_init(ThreadState **thrp, Processor **procp, 144 ThreadState *thr = AllocGoroutine(); 153 ThreadState *thr = main_thr; 162 void __tsan_read(ThreadState *thr, void *addr, void *pc) [all...] |
/src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/unit/ |
tsan_mman_test.cc | 38 ThreadState *thr = cur_thread(); 52 ThreadState *thr = cur_thread(); 99 ThreadState *thr = cur_thread(); 112 ThreadState *thr = cur_thread(); 141 ThreadState *thr = cur_thread(); 163 ThreadState *thr = cur_thread(); 180 ThreadState *thr = cur_thread(); 190 ThreadState *thr = cur_thread();
|
tsan_sync_test.cc | 20 ThreadState *thr = cur_thread(); 35 ThreadState *thr = cur_thread(); 52 ThreadState *thr = cur_thread(); 75 ThreadState *thr = cur_thread(); 112 ThreadState *thr = cur_thread();
|
tsan_stack_test.cc | 22 ThreadState thr(0, 0, 0, 0, 0, 0, 0, 0, 0); 51 ThreadState thr(0, 0, 0, 0, 0, 0, 0, 0, 0);
|