Home
last modified time | relevance | path

Searched defs:thr (Results 1 – 25 of 42) sorted by relevance

12

/external/compiler-rt/lib/tsan/go/
Dtsan_go.cc82 ThreadState *thr = (ThreadState*)internal_alloc(MBlockThreadContex, in AllocGoroutine() local
89 ThreadState *thr = AllocGoroutine(); in __tsan_init() local
98 ThreadState *thr = main_thr; in __tsan_fini() local
109 void __tsan_read(ThreadState *thr, void *addr, void *pc) { in __tsan_read()
113 void __tsan_write(ThreadState *thr, void *addr, void *pc) { in __tsan_write()
117 void __tsan_read_range(ThreadState *thr, void *addr, uptr size, uptr step, in __tsan_read_range()
123 void __tsan_write_range(ThreadState *thr, void *addr, uptr size, uptr step, in __tsan_write_range()
129 void __tsan_func_enter(ThreadState *thr, void *pc) { in __tsan_func_enter()
133 void __tsan_func_exit(ThreadState *thr) { in __tsan_func_exit()
137 void __tsan_malloc(ThreadState *thr, void *p, uptr sz, void *pc) { in __tsan_malloc()
[all …]
/external/compiler-rt/lib/tsan/rtl/
Dtsan_rtl_mutex.cc23 void MutexCreate(ThreadState *thr, uptr pc, uptr addr, in MutexCreate()
42 void MutexDestroy(ThreadState *thr, uptr pc, uptr addr) { in MutexDestroy()
82 void MutexLock(ThreadState *thr, uptr pc, uptr addr, int rec) { in MutexLock()
116 int MutexUnlock(ThreadState *thr, uptr pc, uptr addr, bool all) { in MutexUnlock()
156 void MutexReadLock(ThreadState *thr, uptr pc, uptr addr) { in MutexReadLock()
177 void MutexReadUnlock(ThreadState *thr, uptr pc, uptr addr) { in MutexReadUnlock()
199 void MutexReadOrWriteUnlock(ThreadState *thr, uptr pc, uptr addr) { in MutexReadOrWriteUnlock()
245 void Acquire(ThreadState *thr, uptr pc, uptr addr) { in Acquire()
256 ThreadState *thr = reinterpret_cast<ThreadState*>(arg); in UpdateClockCallback() local
264 void AcquireGlobal(ThreadState *thr, uptr pc) { in AcquireGlobal()
[all …]
Dtsan_fd.cc57 static void unref(ThreadState *thr, uptr pc, FdSync *s) { in unref()
71 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) { in fddesc()
90 static void init(ThreadState *thr, uptr pc, int fd, FdSync *s) { in init()
118 void FdOnFork(ThreadState *thr, uptr pc) { in FdOnFork()
150 void FdAcquire(ThreadState *thr, uptr pc, int fd) { in FdAcquire()
159 void FdRelease(ThreadState *thr, uptr pc, int fd) { in FdRelease()
168 void FdAccess(ThreadState *thr, uptr pc, int fd) { in FdAccess()
174 void FdClose(ThreadState *thr, uptr pc, int fd) { in FdClose()
188 void FdFileCreate(ThreadState *thr, uptr pc, int fd) { in FdFileCreate()
193 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd) { in FdDup()
[all …]
Dtsan_mman.cc76 void AllocatorThreadStart(ThreadState *thr) { in AllocatorThreadStart()
81 void AllocatorThreadFinish(ThreadState *thr) { in AllocatorThreadFinish()
90 static void SignalUnsafeCall(ThreadState *thr, uptr pc) { in SignalUnsafeCall()
104 void *user_alloc(ThreadState *thr, uptr pc, uptr sz, uptr align) { in user_alloc()
120 void user_free(ThreadState *thr, uptr pc, void *p) { in user_free()
143 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz) { in user_realloc()
163 uptr user_alloc_usable_size(ThreadState *thr, uptr pc, void *p) { in user_alloc_usable_size()
171 MBlock *user_mblock(ThreadState *thr, void *p) { in user_mblock()
182 ThreadState *thr = cur_thread(); in invoke_malloc_hook() local
190 ThreadState *thr = cur_thread(); in invoke_free_hook() local
[all …]
Dtsan_rtl_thread.cc50 ThreadState *thr; member
82 ThreadState *thr; member
168 static void ThreadCheckIgnore(ThreadState *thr) { in ThreadCheckIgnore()
175 void ThreadFinalize(ThreadState *thr) { in ThreadFinalize()
194 int ThreadCount(ThreadState *thr) { in ThreadCount()
202 int ThreadCreate(ThreadState *thr, uptr pc, uptr uid, bool detached) { in ThreadCreate()
213 void ThreadStart(ThreadState *thr, int tid, uptr os_id) { in ThreadStart()
244 void ThreadFinish(ThreadState *thr) { in ThreadFinish()
266 int ThreadTid(ThreadState *thr, uptr pc, uptr uid) { in ThreadTid()
274 void ThreadJoin(ThreadState *thr, uptr pc, int tid) { in ThreadJoin()
[all …]
Dtsan_rtl.cc185 void Initialize(ThreadState *thr) { in Initialize()
248 int Finalize(ThreadState *thr) { in Finalize()
299 u32 CurrentStackId(ThreadState *thr, uptr pc) { in CurrentStackId()
314 void TraceSwitch(ThreadState *thr) { in TraceSwitch()
331 uptr TraceTopPC(ThreadState *thr) { in TraceTopPC()
372 static inline void HandleRace(ThreadState *thr, u64 *shadow_mem, in HandleRace()
384 static inline bool OldIsInSameSynchEpoch(Shadow old, ThreadState *thr) { in OldIsInSameSynchEpoch()
388 static inline bool HappensBefore(Shadow old, ThreadState *thr) { in HappensBefore()
393 void MemoryAccessImpl(ThreadState *thr, uptr addr, in MemoryAccessImpl()
466 void UnalignedMemoryAccess(ThreadState *thr, uptr pc, uptr addr, in UnalignedMemoryAccess()
[all …]
Dtsan_sync.cc51 SyncVar* SyncTab::GetOrCreateAndLock(ThreadState *thr, uptr pc, in GetOrCreateAndLock()
60 SyncVar* SyncTab::Create(ThreadState *thr, uptr pc, uptr addr) { in Create()
71 SyncVar* SyncTab::GetAndLock(ThreadState *thr, uptr pc, in GetAndLock()
141 SyncVar* SyncTab::GetAndRemove(ThreadState *thr, uptr pc, uptr addr) { in GetAndRemove()
255 void StackTrace::ObtainCurrent(ThreadState *thr, uptr toppc) { in ObtainCurrent()
Dtsan_interface_inl.h56 ThreadState *thr = cur_thread(); in __tsan_vptr_update() local
65 ThreadState *thr = cur_thread(); in __tsan_vptr_read() local
Dtsan_symbolize.cc27 ThreadState *thr = cur_thread(); in ScopedInSymbolizer() local
33 ThreadState *thr = cur_thread(); in ~ScopedInSymbolizer() local
Dtsan_interface_java.cc44 ThreadState *thr = cur_thread(); in ~BlockDesc() local
77 ScopedJavaFunc(ThreadState *thr, uptr pc) in ScopedJavaFunc()
121 SyncVar* GetJavaSync(ThreadState *thr, uptr pc, uptr addr, in GetJavaSync()
151 SyncVar* GetAndRemoveJavaSync(ThreadState *thr, uptr pc, uptr addr) { in GetAndRemoveJavaSync()
Dtsan_interface_atomic.cc57 ScopedAtomic(ThreadState *thr, uptr pc, const volatile void *a, in ScopedAtomic()
75 static void AtomicStatInc(ThreadState *thr, uptr size, morder mo, StatType t) { in AtomicStatInc()
247 static T AtomicLoad(ThreadState *thr, uptr pc, const volatile T *a, in AtomicLoad()
267 static void AtomicStore(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicStore()
291 static T AtomicRMW(ThreadState *thr, uptr pc, volatile T *a, T v, morder mo) { in AtomicRMW()
311 static T AtomicExchange(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicExchange()
317 static T AtomicFetchAdd(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchAdd()
323 static T AtomicFetchSub(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchSub()
329 static T AtomicFetchAnd(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchAnd()
335 static T AtomicFetchOr(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchOr()
[all …]
Dtsan_rtl_report.cc242 ThreadState *thr = tctx->thr; in IsInStackOrTls() local
256 ThreadState *thr = tctx->thr; in IsThreadStackOrTls() local
455 static bool HandleRacyStacks(ThreadState *thr, const StackTrace (&traces)[2], in HandleRacyStacks()
495 static void AddRacyStacks(ThreadState *thr, const StackTrace (&traces)[2], in AddRacyStacks()
610 static bool RaceBetweenAtomicAndFree(ThreadState *thr) { in RaceBetweenAtomicAndFree()
623 void ReportRace(ThreadState *thr) { in ReportRace()
717 void PrintCurrentStack(ThreadState *thr, uptr pc) { in PrintCurrentStack()
/external/valgrind/main/helgrind/
Dhg_main.c235 static void lockN_acquire_writer ( Lock* lk, Thread* thr ) in lockN_acquire_writer()
286 static void lockN_acquire_reader ( Lock* lk, Thread* thr ) in lockN_acquire_reader()
327 static void lockN_release ( Lock* lk, Thread* thr ) in lockN_release()
352 Thread* thr; in remove_Lock_from_locksets_of_all_owning_Threads() local
472 Thread* thr; in pp_Lock() local
551 Thread* thr; in initialise_data_structures() local
616 Thread* thr; in map_threads_maybe_lookup() local
625 Thread* thr; in map_threads_lookup() local
634 static ThreadId map_threads_maybe_reverse_lookup_SLOW ( Thread* thr ) in map_threads_maybe_reverse_lookup_SLOW()
648 static ThreadId map_threads_reverse_lookup_SLOW ( Thread* thr ) in map_threads_reverse_lookup_SLOW()
[all …]
Dlibhb_core.c2041 static void VTS__singleton ( /*OUT*/VTS* out, Thr* thr, ULong tym ) in VTS__singleton()
2436 static void VTS__declare_thread_very_dead ( Thr* thr ) in VTS__declare_thread_very_dead()
3282 static VtsID VtsID__mk_Singleton ( Thr* thr, ULong tym ) { in VtsID__mk_Singleton()
3655 static ThrID Thr__to_ThrID ( Thr* thr ) { in Thr__to_ThrID()
3659 Thr* thr = *(Thr**)VG_(indexXA)( thrid_to_thr_map, thrid - 1024 ); in Thr__from_ThrID() local
3666 Thr* thr = HG_(zalloc)( "libhb.Thr__new.1", sizeof(Thr) ); in Thr__new() local
3701 static void note_local_Kw_n_stack_for ( Thr* thr ) in note_local_Kw_n_stack_for()
4053 static RCEC* get_RCEC ( Thr* thr ) in get_RCEC()
4147 static void event_map_bind ( Addr a, SizeT szB, Bool isW, Thr* thr ) in event_map_bind()
4286 Thr* thr, Addr a, SizeT szB, Bool isW ) in libhb_event_map_lookup()
[all …]
Dhg_errors.c295 Thread* thr; member
316 Thread* thr; /* doing the unlocking */ member
320 Thread* thr; /* doing the unlocking */ member
325 Thread* thr; /* doing the unlocking */ member
329 Thread* thr; member
335 Thread* thr; member
351 Thread* thr; member
765 static Bool announce_one_thread ( Thread* thr ) in announce_one_thread()
Dhg_lock_n_thread.c54 Thread* thr; in is_sane_Bag_of_Threads() local
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_mman_test.cc49 ThreadState *thr = cur_thread(); in TEST() local
76 ThreadState *thr = cur_thread(); in TEST() local
122 ThreadState *thr = cur_thread(); in TEST() local
135 ThreadState *thr = cur_thread(); in TEST() local
Dtsan_stack_test.cc21 ThreadState thr(0, 0, 0, 0, 0, 0, 0, 0); in TestStackTrace() local
63 ThreadState thr(0, 0, 0, 0, 0, 0, 0, 0); in TEST() local
Dtsan_sync_test.cc29 ThreadState *thr = cur_thread(); in TEST() local
/external/compiler-rt/lib/tsan/lit_tests/
Dmalloc_stack.cc7 void *thr(void *a) { in thr() function
/external/valgrind/main/drd/tests/
Dpth_create_glibc_2_0.c28 pthread_t thr; in main() local
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/
Dtestutil.cc182 pthread_t thr; in RunThread() local
190 pthread_t* thr = new pthread_t[count]; in RunManyThreads() local
205 pthread_t* thr = new pthread_t[count]; in RunManyThreadsWithId() local
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/
Dtestutil.cc182 pthread_t thr; in RunThread() local
190 pthread_t* thr = new pthread_t[count]; in RunManyThreads() local
205 pthread_t* thr = new pthread_t[count]; in RunManyThreadsWithId() local
/external/valgrind/main/helgrind/tests/
Dbar_trivial.c38 pthread_t thr[NTHR]; in main() local
/external/valgrind/main/none/tests/
Dthread-exits.c40 static void *thr(void *v) in thr() function

12