Home
last modified time | relevance | path

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

123

/external/compiler-rt/lib/tsan/go/
Dtsan_go.cc78 ThreadState *thr = (ThreadState*)internal_alloc(MBlockThreadContex, in AllocGoroutine() local
86 ThreadState *thr = AllocGoroutine(); in __tsan_init() local
94 ThreadState *thr = main_thr; in __tsan_fini() local
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()
119 void __tsan_write_pc(ThreadState *thr, void *addr, uptr callpc, uptr pc) { in __tsan_write_pc()
127 void __tsan_read_range(ThreadState *thr, void *addr, uptr size, uptr pc) { in __tsan_read_range()
131 void __tsan_write_range(ThreadState *thr, void *addr, uptr size, uptr pc) { in __tsan_write_range()
135 void __tsan_func_enter(ThreadState *thr, void *pc) { in __tsan_func_enter()
[all …]
/external/compiler-rt/lib/tsan/rtl/
Dtsan_rtl_mutex.cc29 ThreadState *thr; member
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()
266 void MutexReadUnlock(ThreadState *thr, uptr pc, uptr addr) { in MutexReadUnlock()
298 void MutexReadOrWriteUnlock(ThreadState *thr, uptr pc, uptr addr) { in MutexReadOrWriteUnlock()
[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() local
[all …]
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_rtl_thread.cc49 ThreadState *thr; member
79 ThreadState *thr; member
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()
231 int ThreadCreate(ThreadState *thr, uptr pc, uptr uid, bool detached) { in ThreadCreate()
240 void ThreadStart(ThreadState *thr, int tid, uptr os_id) { in ThreadStart()
285 void ThreadFinish(ThreadState *thr) { in ThreadFinish()
305 int ThreadTid(ThreadState *thr, uptr pc, uptr uid) { in ThreadTid()
[all …]
Dtsan_rtl.cc303 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()
499 uptr TraceTopPC(ThreadState *thr) { in TraceTopPC()
541 void HandleRace(ThreadState *thr, u64 *shadow_mem, in HandleRace()
[all …]
Dtsan_sync.cc27 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 …]
Dtsan_symbolize.cc26 ThreadState *thr = cur_thread(); in EnterSymbolizer() local
33 ThreadState *thr = cur_thread(); in ExitSymbolizer() local
Dtsan_rtl_report.cc226 ThreadState *thr = tctx->thr; in IsInStackOrTls() local
239 ThreadState *thr = tctx->thr; in IsThreadStackOrTls() local
434 static bool HandleRacyStacks(ThreadState *thr, VarSizeStackTrace traces[2], in HandleRacyStacks()
473 static void AddRacyStacks(ThreadState *thr, VarSizeStackTrace traces[2], in AddRacyStacks()
487 bool OutputReport(ThreadState *thr, const ScopedReport &srep) { in OutputReport()
552 static bool RaceBetweenAtomicAndFree(ThreadState *thr) { in RaceBetweenAtomicAndFree()
565 void ReportRace(ThreadState *thr) { in ReportRace()
657 void PrintCurrentStack(ThreadState *thr, uptr pc) { in PrintCurrentStack()
Dtsan_interface_inl.h56 ThreadState *thr = cur_thread(); in __tsan_vptr_update() local
65 ThreadState *thr = cur_thread(); in __tsan_vptr_read() local
/external/compiler-rt/lib/tsan/dd/
Ddd_rtl.cc22 static u32 CurrentStackTrace(Thread *thr, uptr skip) { in CurrentStackTrace()
32 static void PrintStackTrace(Thread *thr, u32 stk) { in PrintStackTrace()
39 static void ReportDeadlock(Thread *thr, DDReport *rep) { in ReportDeadlock()
58 Callback::Callback(Thread *thr) in Callback()
100 void ThreadInit(Thread *thr) { in ThreadInit()
107 void ThreadDestroy(Thread *thr) { in ThreadDestroy()
112 void MutexBeforeLock(Thread *thr, uptr m, bool writelock) { in MutexBeforeLock()
125 void MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock) { in MutexAfterLock()
138 void MutexBeforeUnlock(Thread *thr, uptr m, bool writelock) { in MutexBeforeUnlock()
149 void MutexDestroy(Thread *thr, uptr m) { in MutexDestroy()
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_sync_test.cc20 ThreadState *thr = cur_thread(); in TEST() local
35 ThreadState *thr = cur_thread(); in TEST() local
52 ThreadState *thr = cur_thread(); in TEST() local
75 ThreadState *thr = cur_thread(); in TEST() local
112 ThreadState *thr = cur_thread(); in TEST() local
Dtsan_mman_test.cc38 ThreadState *thr = cur_thread(); in TEST() local
52 ThreadState *thr = cur_thread(); in TEST() local
97 ThreadState *thr = cur_thread(); in TEST() local
110 ThreadState *thr = cur_thread(); in TEST() local
Dtsan_stack_test.cc22 ThreadState thr(0, 0, 0, 0, 0, 0, 0, 0, 0); in TestStackTrace() local
51 ThreadState thr(0, 0, 0, 0, 0, 0, 0, 0, 0); in TestTrim() local
/external/valgrind/helgrind/
Dhg_main.c239 static void lockN_acquire_writer ( Lock* lk, Thread* thr ) in lockN_acquire_writer()
290 static void lockN_acquire_reader ( Lock* lk, Thread* thr ) in lockN_acquire_reader()
331 static void lockN_release ( Lock* lk, Thread* thr ) in lockN_release()
356 Thread* thr; in remove_Lock_from_locksets_of_all_owning_Threads() local
497 Thread* thr; in pp_Lock() local
589 Thread* thr; in initialise_data_structures() local
650 Thread* thr; in map_threads_maybe_lookup() local
659 Thread* thr; in map_threads_lookup() local
668 static ThreadId map_threads_maybe_reverse_lookup_SLOW ( Thread* thr ) in map_threads_maybe_reverse_lookup_SLOW()
682 static ThreadId map_threads_reverse_lookup_SLOW ( Thread* thr ) in map_threads_reverse_lookup_SLOW()
[all …]
Dhg_errors.c312 Thread* thr; member
326 Thread* thr; /* doing the unlocking */ member
330 Thread* thr; /* doing the unlocking */ member
335 Thread* thr; /* doing the unlocking */ member
339 Thread* thr; member
345 Thread* thr; member
361 Thread* thr; member
735 static Bool announce_one_thread ( Thread* thr ) in announce_one_thread()
898 Thread* thr = get_admin_threads(); in HG_() local
/external/compiler-rt/test/tsan/
Dmalloc_stack.cc6 void *thr(void *a) { in thr() function
/external/compiler-rt/test/tsan/Linux/
Dmutex_robust.cc10 void *thr(void *p) { in thr() function
/external/compiler-rt/test/asan/TestCases/Windows/
Ddll_thread_stack_array_left_oob.cc26 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); in test_function() local
Dbeginthreadex.cc15 HANDLE thr = (HANDLE)_beginthreadex(NULL, 0, thread_proc, NULL, 0, NULL); in main() local
Dthread_stack_array_left_oob.cc19 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); in main() local
Dthread_simple.cc15 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); in main() local
Dthread_suspended.cc15 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, CREATE_SUSPENDED, NULL); in main() local
Dthread_stack_array_right_oob.cc19 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); in main() local

123