Home
last modified time | relevance | path

Searched refs:ThreadState (Results 1 – 25 of 32) sorted by relevance

12

/freebsd-12.1/contrib/compiler-rt/lib/tsan/rtl/
H A Dtsan_fd.h42 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);
46 void FdFileCreate(ThreadState *thr, uptr pc, int fd);
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);
52 void FdPollCreate(ThreadState *thr, uptr pc, int fd);
53 void FdSocketCreate(ThreadState *thr, uptr pc, int fd);
56 void FdSocketConnect(ThreadState *thr, uptr pc, int fd);
[all …]
H A Dtsan_rtl.h374 struct ThreadState { struct
464 ThreadState *cur_thread();
469 INLINE ThreadState *cur_thread() { in cur_thread()
480 ThreadState *thr;
688 void ReportRace(ThreadState *thr);
711 void Initialize(ThreadState *thr);
713 int Finalize(ThreadState *thr);
765 void FuncExit(ThreadState *thr);
775 int ThreadCount(ThreadState *thr);
836 void TraceSwitch(ThreadState *thr);
[all …]
H A Dtsan_platform_mac.cc78 ThreadState **cur_thread_location() { in cur_thread_location()
79 ThreadState **thread_identity = (ThreadState **)pthread_self(); in cur_thread_location()
84 ThreadState *cur_thread() { in cur_thread()
87 return (ThreadState *)&main_thread_state; in cur_thread()
89 ThreadState **fake_tls = (ThreadState **)MemToShadow((uptr)thr_state_loc); in cur_thread()
90 ThreadState *thr = (ThreadState *)SignalSafeGetOrAllocate( in cur_thread()
91 (uptr *)fake_tls, sizeof(ThreadState)); in cur_thread()
105 ThreadState **fake_tls = (ThreadState **)MemToShadow((uptr)thr_state_loc); in cur_thread_finalize()
106 internal_munmap(*fake_tls, sizeof(ThreadState)); in cur_thread_finalize()
210 ThreadState *thr = cur_thread(); in my_pthread_introspection_hook()
[all …]
H A Dtsan_mman.h30 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);
H A Dtsan_fd.cc50 static FdSync *allocsync(ThreadState *thr, uptr pc) { in allocsync()
63 static void unref(ThreadState *thr, uptr pc, FdSync *s) { in unref()
74 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) { in fddesc()
128 void FdOnFork(ThreadState *thr, uptr pc) { in FdOnFork()
160 void FdAcquire(ThreadState *thr, uptr pc, int fd) { in FdAcquire()
171 void FdRelease(ThreadState *thr, uptr pc, int fd) { in FdRelease()
182 void FdAccess(ThreadState *thr, uptr pc, int fd) { in FdAccess()
218 void FdFileCreate(ThreadState *thr, uptr pc, int fd) { in FdFileCreate()
244 void FdEventCreate(ThreadState *thr, uptr pc, int fd) { in FdEventCreate()
251 void FdSignalCreate(ThreadState *thr, uptr pc, int fd) { in FdSignalCreate()
[all …]
H A Dtsan_mman.cc87 ThreadState *thr = cur_thread(); in ScopedGlobalProcessor()
110 ThreadState *thr = cur_thread(); in ~ScopedGlobalProcessor()
140 static void SignalUnsafeCall(ThreadState *thr, uptr pc) { in SignalUnsafeCall()
188 void *user_alloc(ThreadState *thr, uptr pc, uptr sz) { in user_alloc()
279 void *user_valloc(ThreadState *thr, uptr pc, uptr sz) { in user_valloc()
283 void *user_pvalloc(ThreadState *thr, uptr pc, uptr sz) { in user_pvalloc()
309 ThreadState *thr = cur_thread(); in invoke_malloc_hook()
317 ThreadState *thr = cur_thread(); in invoke_free_hook()
325 ThreadState *thr = cur_thread(); in internal_alloc()
334 ThreadState *thr = cur_thread(); in internal_free()
[all …]
H A Dtsan_rtl_thread.cc43 ThreadState *caller_thr = static_cast<ThreadState *>(arg); in OnJoined()
49 ThreadState *thr;
77 ThreadState *thr1 = static_cast<ThreadState*>(arg); in OnDetached()
82 ThreadState *thr;
149 thr->~ThreadState(); in OnFinished()
196 static void ThreadCheckIgnore(ThreadState *thr) { in ThreadCheckIgnore()
205 static void ThreadCheckIgnore(ThreadState *thr) {} in ThreadCheckIgnore()
208 void ThreadFinalize(ThreadState *thr) { in ThreadFinalize()
226 int ThreadCount(ThreadState *thr) { in ThreadCount()
276 void ThreadFinish(ThreadState *thr) { in ThreadFinish()
[all …]
H A Dtsan_rtl_mutex.cc26 void ReportDeadlock(ThreadState *thr, uptr pc, DDReport *r);
29 ThreadState *thr;
32 Callback(ThreadState *thr, uptr pc) in Callback()
43 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s) { in DDMutexInit()
388 void MutexRepair(ThreadState *thr, uptr pc, uptr addr) { in MutexRepair()
404 void Acquire(ThreadState *thr, uptr pc, uptr addr) { in Acquire()
416 ThreadState *thr = reinterpret_cast<ThreadState*>(arg); in UpdateClockCallback()
424 void AcquireGlobal(ThreadState *thr, uptr pc) { in AcquireGlobal()
433 void Release(ThreadState *thr, uptr pc, uptr addr) { in Release()
459 ThreadState *thr = reinterpret_cast<ThreadState*>(arg); in UpdateSleepClockCallback()
[all …]
H A Dtsan_platform_linux.cc338 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size) { in ImitateTlsWrite()
375 static ThreadState *dead_thread_state = nullptr;
377 ThreadState *cur_thread() { in cur_thread()
378 ThreadState* thr = reinterpret_cast<ThreadState*>(*get_android_tls_ptr()); in cur_thread()
384 thr = reinterpret_cast<ThreadState*>(*get_android_tls_ptr()); in cur_thread()
386 thr = reinterpret_cast<ThreadState*>(MmapOrDie(sizeof(ThreadState), in cur_thread()
390 dead_thread_state = reinterpret_cast<ThreadState*>( in cur_thread()
391 MmapOrDie(sizeof(ThreadState), "ThreadState")); in cur_thread()
396 CHECK_EQ(0, internal_mprotect(dead_thread_state, sizeof(ThreadState), in cur_thread()
410 ThreadState* thr = reinterpret_cast<ThreadState*>(*get_android_tls_ptr()); in cur_thread_finalize()
[all …]
H A Dtsan_rtl.cc113 ThreadState::ThreadState(Context *ctx, int tid, int unique_id, u64 epoch, in ThreadState() function in __tsan::ThreadState
344 void Initialize(ThreadState *thr) { in Initialize()
435 int Finalize(ThreadState *thr) { in Finalize()
487 void ForkBefore(ThreadState *thr, uptr pc) { in ForkBefore()
521 void GrowShadowStack(ThreadState *thr) { in GrowShadowStack()
534 u32 CurrentStackId(ThreadState *thr, uptr pc) { in CurrentStackId()
554 void TraceSwitch(ThreadState *thr) { in TraceSwitch()
574 uptr TraceTopPC(ThreadState *thr) { in TraceTopPC()
980 void FuncEntry(ThreadState *thr, uptr pc) { in FuncEntry()
1002 void FuncExit(ThreadState *thr) { in FuncExit()
[all …]
H A Dtsan_interface_atomic.cc259 static void AtomicStore(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicStore()
339 static T AtomicExchange(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicExchange()
363 static T AtomicFetchOr(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchOr()
404 static bool AtomicCAS(ThreadState *thr, uptr pc, in AtomicCAS()
437 static T AtomicCAS(ThreadState *thr, uptr pc, in AtomicCAS()
448 static void AtomicFence(ThreadState *thr, uptr pc, morder mo) { in AtomicFence()
477 ThreadState *const thr = cur_thread(); \
492 ScopedAtomic(ThreadState *thr, uptr pc, const volatile void *a, in ScopedAtomic()
503 ThreadState *thr_;
940 ThreadState *thr, uptr cpc, uptr pc, u8 *a) { in __tsan_go_atomic32_compare_exchange()
[all …]
H A Dtsan_interface.h213 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 …]
H A Dtsan_sync.h71 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,
H A Dtsan_interceptors.h11 ScopedInterceptor(ThreadState *thr, const char *fname, uptr pc);
16 ThreadState *const thr_;
27 ThreadState *thr = cur_thread(); \
H A Dtsan_sync.cc20 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s);
27 void SyncVar::Init(ThreadState *thr, uptr pc, uptr addr, u64 uid) { in Init()
62 void MetaMap::AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz) { in AllocBlock()
197 SyncVar* MetaMap::GetOrCreateAndLock(ThreadState *thr, uptr pc, in GetOrCreateAndLock()
206 SyncVar* MetaMap::GetAndLock(ThreadState *thr, uptr pc, in GetAndLock()
H A Dtsan_external.cc46 void InsertShadowStackFrameForTag(ThreadState *thr, uptr tag) { in InsertShadowStackFrameForTag()
60 typedef void(*AccessFunc)(ThreadState *, uptr, uptr, int);
63 ThreadState *thr = cur_thread(); in ExternalAccess()
H A Dtsan_rtl_proc.cc47 void ProcWire(Processor *proc, ThreadState *thr) { in ProcWire()
54 void ProcUnwire(Processor *proc, ThreadState *thr) { in ProcUnwire()
H A Dtsan_interceptors.cc343 ThreadState *thr;
449 ThreadState *thr = cur_thread(); in on_exit_wrapper()
903 ThreadState *thr = cur_thread(); in DestroyThreadState()
946 ThreadState *thr = cur_thread(); in __tsan_thread_start_func()
1123 ThreadState *thr;
1978 ThreadState *thr = cur_thread(); in rtl_generic_sighandler()
2140 ThreadState *thr;
2189 ThreadState *thr;
2431 ThreadState *thr;
2551 ThreadState *thr = cur_thread(); in TSAN_INTERCEPTOR()
[all …]
H A Dtsan_symbolize.cc26 ThreadState *thr = cur_thread(); in EnterSymbolizer()
33 ThreadState *thr = cur_thread(); in ExitSymbolizer()
H A Dtsan_rtl_report.cc236 ThreadState *thr = tctx->thr; in IsInStackOrTls()
249 ThreadState *thr = tctx->thr; in IsThreadStackOrTls()
442 static bool HandleRacyStacks(ThreadState *thr, VarSizeStackTrace traces[2], in HandleRacyStacks()
488 static void AddRacyStacks(ThreadState *thr, VarSizeStackTrace traces[2], in AddRacyStacks()
503 bool OutputReport(ThreadState *thr, const ScopedReport &srep) { in OutputReport()
576 static bool RaceBetweenAtomicAndFree(ThreadState *thr) { in RaceBetweenAtomicAndFree()
589 void ReportRace(ThreadState *thr) { in ReportRace()
717 void PrintCurrentStack(ThreadState *thr, uptr pc) { in PrintCurrentStack()
H A Dtsan_interface_inl.h88 ThreadState *thr = cur_thread(); in __tsan_vptr_update()
97 ThreadState *thr = cur_thread(); in __tsan_vptr_read()
H A Dtsan_interface_java.cc41 ScopedJavaFunc(ThreadState *thr, uptr pc) in ScopedJavaFunc()
53 ThreadState *thr_;
62 ThreadState *thr = cur_thread(); \
/freebsd-12.1/contrib/compiler-rt/lib/tsan/go/
H A Dtsan_go.cc113 static ThreadState *main_thr;
128 Processor *ThreadState::proc() { in proc()
134 static ThreadState *AllocGoroutine() { in AllocGoroutine()
135 ThreadState *thr = (ThreadState*)internal_alloc(MBlockThreadContex, in AllocGoroutine()
136 sizeof(ThreadState)); in AllocGoroutine()
144 ThreadState *thr = AllocGoroutine(); in __tsan_init()
153 ThreadState *thr = main_thr; in __tsan_fini()
198 void __tsan_func_exit(ThreadState *thr) { in __tsan_func_exit()
213 void __tsan_go_start(ThreadState *parent, ThreadState **pthr, void *pc) { in __tsan_go_start()
214 ThreadState *thr = AllocGoroutine(); in __tsan_go_start()
[all …]
/freebsd-12.1/contrib/compiler-rt/lib/scudo/
H A Dscudo_tsd_exclusive.inc20 enum ThreadState : u8 {
26 extern THREADLOCAL ThreadState ScudoThreadState;
H A Dscudo_tsd_exclusive.cpp24 THREADLOCAL ThreadState ScudoThreadState = ThreadNotInitialized;

12