Home
last modified time | relevance | path

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

1234

/external/compiler-rt/lib/tsan/go/
Dtsan_go.cc74 static ThreadState *main_thr;
77 static ThreadState *AllocGoroutine() { in AllocGoroutine()
78 ThreadState *thr = (ThreadState*)internal_alloc(MBlockThreadContex, in AllocGoroutine()
79 sizeof(ThreadState)); in AllocGoroutine()
84 void __tsan_init(ThreadState **thrp, void (*cb)(SymbolizeContext *cb)) { in __tsan_init()
86 ThreadState *thr = AllocGoroutine(); in __tsan_init()
94 ThreadState *thr = main_thr; in __tsan_fini()
103 void __tsan_read(ThreadState *thr, void *addr, void *pc) { in __tsan_read()
107 void __tsan_read_pc(ThreadState *thr, void *addr, uptr callpc, uptr pc) { in __tsan_read_pc()
115 void __tsan_write(ThreadState *thr, void *addr, void *pc) { in __tsan_write()
[all …]
/external/compiler-rt/lib/tsan/rtl/
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);
45 void FdClose(ThreadState *thr, uptr pc, int fd);
46 void FdFileCreate(ThreadState *thr, uptr pc, int fd);
47 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd);
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 …]
Dtsan_rtl.h328 struct ThreadState { struct
406 explicit ThreadState(Context *ctx, int tid, int unique_id, u64 epoch, argument
415 INLINE ThreadState *cur_thread() { in cur_thread()
416 return reinterpret_cast<ThreadState *>(&cur_thread_placeholder); in cur_thread()
424 ThreadState *thr;
549 void ObtainCurrentStack(ThreadState *thr, uptr toppc, StackTraceTy *stack) { in ObtainCurrentStack()
565 void ALWAYS_INLINE StatInc(ThreadState *thr, StatType typ, u64 n = 1) {
570 void ALWAYS_INLINE StatSet(ThreadState *thr, StatType typ, u64 n) { in StatSet()
584 void ForkBefore(ThreadState *thr, uptr pc);
585 void ForkParentAfter(ThreadState *thr, uptr pc);
[all …]
Dtsan_sync.h49 void Init(ThreadState *thr, uptr pc, uptr addr, u64 uid);
50 void Reset(ThreadState *thr);
74 void AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz);
75 uptr FreeBlock(ThreadState *thr, uptr pc, uptr p);
76 bool FreeRange(ThreadState *thr, uptr pc, uptr p, uptr sz);
77 void ResetRange(ThreadState *thr, uptr pc, uptr p, uptr sz);
80 SyncVar* GetOrCreateAndLock(ThreadState *thr, uptr pc,
86 void OnThreadIdle(ThreadState *thr);
98 SyncVar* GetAndLock(ThreadState *thr, uptr pc, uptr addr, bool write_lock,
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()
94 static void init(ThreadState *thr, uptr pc, int fd, FdSync *s) { in init()
122 void FdOnFork(ThreadState *thr, uptr pc) { in FdOnFork()
154 void FdAcquire(ThreadState *thr, uptr pc, int fd) { in FdAcquire()
165 void FdRelease(ThreadState *thr, uptr pc, int fd) { in FdRelease()
176 void FdAccess(ThreadState *thr, uptr pc, int fd) { in FdAccess()
184 void FdClose(ThreadState *thr, uptr pc, int fd) { in FdClose()
200 void FdFileCreate(ThreadState *thr, uptr pc, int fd) { in FdFileCreate()
[all …]
Dtsan_mman.cc51 void AllocatorThreadStart(ThreadState *thr) { in AllocatorThreadStart()
56 void AllocatorThreadFinish(ThreadState *thr) { in AllocatorThreadFinish()
65 static void SignalUnsafeCall(ThreadState *thr, uptr pc) { in SignalUnsafeCall()
79 void *user_alloc(ThreadState *thr, uptr pc, uptr sz, uptr align, bool signal) { in user_alloc()
92 void *user_calloc(ThreadState *thr, uptr pc, uptr size, uptr n) { in user_calloc()
101 void user_free(ThreadState *thr, uptr pc, void *p, bool signal) { in user_free()
109 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write) { in OnUserAlloc()
118 void OnUserFree(ThreadState *thr, uptr pc, uptr p, bool write) { in OnUserFree()
126 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz) { in user_realloc()
152 ThreadState *thr = cur_thread(); in invoke_malloc_hook()
[all …]
Dtsan_mman.h23 void AllocatorThreadStart(ThreadState *thr);
24 void AllocatorThreadFinish(ThreadState *thr);
28 void *user_alloc(ThreadState *thr, uptr pc, uptr sz,
30 void *user_calloc(ThreadState *thr, uptr pc, uptr sz, uptr n);
32 void user_free(ThreadState *thr, uptr pc, void *p, bool signal = true);
33 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz);
34 void *user_alloc_aligned(ThreadState *thr, uptr pc, uptr sz, uptr align);
Dtsan_rtl_thread.cc43 ThreadState *caller_thr = static_cast<ThreadState *>(arg); in OnJoined()
49 ThreadState *thr;
74 ThreadState *thr1 = static_cast<ThreadState*>(arg); in OnDetached()
79 ThreadState *thr;
93 new(thr) ThreadState(ctx, tid, unique_id, epoch0, reuse_count, in OnStarted()
148 thr->~ThreadState(); in OnFinished()
195 static void ThreadCheckIgnore(ThreadState *thr) { in ThreadCheckIgnore()
204 static void ThreadCheckIgnore(ThreadState *thr) {} in ThreadCheckIgnore()
207 void ThreadFinalize(ThreadState *thr) { in ThreadFinalize()
225 int ThreadCount(ThreadState *thr) { in ThreadCount()
[all …]
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()
49 static void ReportMutexMisuse(ThreadState *thr, uptr pc, ReportType typ, in ReportMutexMisuse()
65 void MutexCreate(ThreadState *thr, uptr pc, uptr addr, in MutexCreate()
84 void MutexDestroy(ThreadState *thr, uptr pc, uptr addr) { in MutexDestroy()
143 void MutexLock(ThreadState *thr, uptr pc, uptr addr, int rec, bool try_lock) { in MutexLock()
188 int MutexUnlock(ThreadState *thr, uptr pc, uptr addr, bool all) { in MutexUnlock()
231 void MutexReadLock(ThreadState *thr, uptr pc, uptr addr, bool trylock) { in MutexReadLock()
[all …]
Dtsan_rtl.cc47 THREADLOCAL char cur_thread_placeholder[sizeof(ThreadState)] ALIGNED(64);
104 ThreadState::ThreadState(Context *ctx, int tid, int unique_id, u64 epoch, in ThreadState() function in __tsan::ThreadState
303 void Initialize(ThreadState *thr) { in Initialize()
365 int Finalize(ThreadState *thr) { in Finalize()
416 void ForkBefore(ThreadState *thr, uptr pc) { in ForkBefore()
421 void ForkParentAfter(ThreadState *thr, uptr pc) { in ForkParentAfter()
426 void ForkChildAfter(ThreadState *thr, uptr pc) { in ForkChildAfter()
450 void GrowShadowStack(ThreadState *thr) { in GrowShadowStack()
463 u32 CurrentStackId(ThreadState *thr, uptr pc) { in CurrentStackId()
483 void TraceSwitch(ThreadState *thr) { in TraceSwitch()
[all …]
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()
39 void SyncVar::Reset(ThreadState *thr) { in Reset()
63 void MetaMap::AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz) { in AllocBlock()
74 uptr MetaMap::FreeBlock(ThreadState *thr, uptr pc, uptr p) { in FreeBlock()
83 bool MetaMap::FreeRange(ThreadState *thr, uptr pc, uptr p, uptr sz) { in FreeRange()
122 void MetaMap::ResetRange(ThreadState *thr, uptr pc, uptr p, uptr sz) { in ResetRange()
187 SyncVar* MetaMap::GetOrCreateAndLock(ThreadState *thr, uptr pc, in GetOrCreateAndLock()
196 SyncVar* MetaMap::GetAndLock(ThreadState *thr, uptr pc, in GetAndLock()
282 void MetaMap::OnThreadIdle(ThreadState *thr) { in OnThreadIdle()
Dtsan_interface_atomic.cc246 static T AtomicLoad(ThreadState *thr, uptr pc, const volatile T *a, in AtomicLoad()
276 static void AtomicStore(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicStore()
299 static T AtomicRMW(ThreadState *thr, uptr pc, volatile T *a, T v, morder mo) { in AtomicRMW()
356 static T AtomicExchange(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicExchange()
362 static T AtomicFetchAdd(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchAdd()
368 static T AtomicFetchSub(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchSub()
374 static T AtomicFetchAnd(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchAnd()
380 static T AtomicFetchOr(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchOr()
386 static T AtomicFetchXor(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchXor()
392 static T AtomicFetchNand(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchNand()
[all …]
/external/v8/src/
Dv8threads.h12 class ThreadState {
15 ThreadState* Next();
36 explicit ThreadState(ThreadManager* thread_manager);
37 ~ThreadState();
44 ThreadState* next_;
45 ThreadState* previous_;
88 ThreadState* FirstThreadStateInUse();
89 ThreadState* GetFreeThreadState();
95 void DeleteThreadStateList(ThreadState* anchor);
102 ThreadState* lazily_archived_thread_state_;
[all …]
Dv8threads.cc115 lazily_archived_thread_state_->LinkInto(ThreadState::FREE_LIST); in RestoreThread()
137 ThreadState* state = per_thread->thread_state(); in RestoreThread()
153 state->LinkInto(ThreadState::FREE_LIST); in RestoreThread()
182 ThreadState::ThreadState(ThreadManager* thread_manager) in ThreadState() function in v8::internal::ThreadState
192 ThreadState::~ThreadState() { in ~ThreadState()
197 void ThreadState::AllocateSpace() { in AllocateSpace()
202 void ThreadState::Unlink() { in Unlink()
208 void ThreadState::LinkInto(List list) { in LinkInto()
209 ThreadState* flying_anchor = in LinkInto()
219 ThreadState* ThreadManager::GetFreeThreadState() { in GetFreeThreadState()
[all …]
/external/valgrind/coregrind/m_sigframe/
Dsigframe-x86-linux.c354 ThreadState *tst = VG_(get_ThreadState)(tid); in synth_ucontext()
398 ThreadState *tst, in build_vg_sigframe()
415 static Addr build_sigframe(ThreadState *tst, in build_sigframe()
473 static Addr build_rt_sigframe(ThreadState *tst, in build_rt_sigframe()
547 ThreadState* tst = VG_(get_ThreadState)(tid); in VG_()
580 Bool restore_vg_sigframe ( ThreadState *tst, in restore_vg_sigframe()
605 void restore_sigcontext( ThreadState *tst, in restore_sigcontext()
631 SizeT restore_sigframe ( ThreadState *tst, in restore_sigframe()
641 SizeT restore_rt_sigframe ( ThreadState *tst, in restore_rt_sigframe()
655 ThreadState* tst; in VG_()
Dsigframe-amd64-linux.c331 ThreadState *tst = VG_(get_ThreadState)(tid); in synth_ucontext()
378 ThreadState *tst, in build_vg_sigframe()
396 static Addr build_rt_sigframe(ThreadState *tst, in build_rt_sigframe()
464 ThreadState* tst = VG_(get_ThreadState)(tid); in VG_()
507 Bool restore_vg_sigframe ( ThreadState *tst, in restore_vg_sigframe()
532 void restore_sigcontext( ThreadState *tst, in restore_sigcontext()
564 SizeT restore_rt_sigframe ( ThreadState *tst, in restore_rt_sigframe()
577 ThreadState* tst; in VG_()
Dsigframe-s390x-linux.c145 static void save_sigregs(ThreadState *tst, _vki_sigregs *sigregs) in save_sigregs()
204 static void restore_sigregs(ThreadState *tst, _vki_sigregs *sigregs) in restore_sigregs()
265 ThreadState *tst, in build_vg_sigframe()
282 static Addr build_sigframe(ThreadState *tst, in build_sigframe()
341 static Addr build_rt_sigframe(ThreadState *tst, in build_rt_sigframe()
415 ThreadState* tst = VG_(get_ThreadState)(tid); in VG_()
446 Bool restore_vg_sigframe ( ThreadState *tst, in restore_vg_sigframe()
471 SizeT restore_sigframe ( ThreadState *tst, in restore_sigframe()
481 SizeT restore_rt_sigframe ( ThreadState *tst, in restore_rt_sigframe()
495 ThreadState* tst; in VG_()
Dsigframe-arm64-linux.c86 ThreadState *tst = VG_(get_ThreadState)(tid); in synth_ucontext()
116 static void build_sigframe(ThreadState *tst, in build_sigframe()
163 ThreadState *tst; in VG_()
221 ThreadState *tst; in VG_()
/external/valgrind/coregrind/m_gdbserver/
Dtarget.c67 ThreadState *ts; in valgrind_update_threads()
229 ThreadState *tst; in valgrind_thread_alive()
232 tst = (ThreadState *) inferior_target_data (ti); in valgrind_thread_alive()
271 ThreadState *tst; in valgrind_wait()
333 ThreadState *tst = (ThreadState *) inferior_target_data (current_inferior); in fetch_register()
379 ThreadState *tst = (ThreadState *) inferior_target_data (current_inferior); in usr_store_inferior_registers()
500 ThreadState *tst = in valgrind_write_memory()
501 (ThreadState *) inferior_target_data (current_inferior); in valgrind_write_memory()
642 Bool valgrind_get_tls_addr (ThreadState *tst, in valgrind_get_tls_addr()
706 VexGuestArchState* get_arch (int set, ThreadState* tst) in get_arch()
[all …]
Dtarget.h215 extern Bool valgrind_get_tls_addr (ThreadState *tst,
231 extern VexGuestArchState* get_arch (int set, ThreadState* tst);
/external/valgrind/coregrind/
Dm_threadstate.c47 ThreadState *VG_(threads);
64 VG_(threads) = (ThreadState *)aligned_addr; in VG_()
101 ThreadState *VG_(get_ThreadState)(ThreadId tid) in VG_()
125 ThreadState *tst = VG_(get_ThreadState)(tid); in VG_()
Dpub_core_threadstate.h355 ThreadState; typedef
365 extern ThreadState *VG_(threads);
386 extern ThreadState *VG_(get_ThreadState) ( ThreadId tid );
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_sync_test.cc20 ThreadState *thr = cur_thread(); in TEST()
35 ThreadState *thr = cur_thread(); in TEST()
52 ThreadState *thr = cur_thread(); in TEST()
75 ThreadState *thr = cur_thread(); in TEST()
112 ThreadState *thr = cur_thread(); in TEST()
Dtsan_mman_test.cc38 ThreadState *thr = cur_thread(); in TEST()
52 ThreadState *thr = cur_thread(); in TEST()
97 ThreadState *thr = cur_thread(); in TEST()
110 ThreadState *thr = cur_thread(); in TEST()
/external/valgrind/coregrind/m_syswrap/
Dsyswrap-x86-darwin.c174 ThreadState *build_thread(const thread_state_t state, in build_thread()
179 ThreadState *tst = VG_(get_ThreadState)(tid); in build_thread()
203 ThreadState *tst) in hijack_thread_state()
280 ThreadState *tst = (ThreadState *)func_arg; in pthread_hijack()
383 ThreadState *tst; in wqthread_hijack()

1234