Searched refs:thr (Results 1 - 25 of 84) sorted by relevance

1234

/external/compiler-rt/test/asan/TestCases/Windows/
H A Dthread_stack_reuse.cc22 HANDLE thr = NULL; local
24 thr = CreateThread(NULL, 0, thread_proc_1, NULL, 0, NULL);
25 if (thr == 0)
27 if (WAIT_OBJECT_0 != WaitForSingleObject(thr, INFINITE))
30 thr = CreateThread(NULL, 0, thread_proc_2, NULL, 0, NULL);
31 if (thr == 0)
33 if (WAIT_OBJECT_0 != WaitForSingleObject(thr, INFINITE))
35 CloseHandle(thr);
H A Dbeginthreadex.cc15 HANDLE thr = (HANDLE)_beginthreadex(NULL, 0, thread_proc, NULL, 0, NULL); local
16 if (thr == 0)
18 if (WAIT_OBJECT_0 != WaitForSingleObject(thr, INFINITE))
20 CloseHandle(thr);
H A Dthread_simple.cc15 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); local
16 if (thr == 0)
18 if (WAIT_OBJECT_0 != WaitForSingleObject(thr, INFINITE))
21 GetExitCodeThread(thr, &exitcode);
24 CloseHandle(thr);
H A Ddll_thread_stack_array_left_oob.cc26 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); local
31 if (thr == 0)
33 if (WAIT_OBJECT_0 != WaitForSingleObject(thr, INFINITE))
H A Dthread_stack_array_left_oob.cc19 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); local
24 if (thr == 0) return 0;
26 WaitForSingleObject(thr, INFINITE);
H A Dthread_stack_array_right_oob.cc19 HANDLE thr = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL); local
24 if (thr == 0) return 0;
26 WaitForSingleObject(thr, INFINITE);
H A Dthread_stress.cc16 HANDLE thr[NUM_THREADS]; local
18 thr[i] = CreateThread(NULL, 0, thread_proc, NULL, 0, NULL);
19 if (thr[i] == 0)
23 if (WAIT_OBJECT_0 != WaitForSingleObject(thr[i], INFINITE))
25 CloseHandle(thr[i]);
/external/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);
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, upt
[all...]
H A Dtsan_rtl_thread.cc27 , thr()
49 ThreadState *thr; member in struct:__tsan::OnCreatedArgs
54 thr = 0;
58 args->thr->fast_state.IncrementEpoch();
60 TraceAddEvent(args->thr, args->thr->fast_state, EventTypeMop, 0);
61 ReleaseImpl(args->thr, 0, &sync);
62 creation_stack_id = CurrentStackId(args->thr, args->pc);
64 StatInc(args->thr, StatThreadMaxTid);
74 ThreadState *thr; member in struct:__tsan::OnStartedArgs
186 ThreadCheckIgnore(ThreadState *thr) argument
195 ThreadCheckIgnore(ThreadState *thr) argument
198 ThreadFinalize(ThreadState *thr) argument
216 ThreadCount(ThreadState *thr) argument
222 ThreadCreate(ThreadState *thr, uptr pc, uptr uid, bool detached) argument
231 ThreadStart(ThreadState *thr, int tid, uptr os_id) argument
274 ThreadFinish(ThreadState *thr) argument
294 ThreadTid(ThreadState *thr, uptr pc, uptr uid) argument
300 ThreadJoin(ThreadState *thr, uptr pc, int tid) argument
307 ThreadDetach(ThreadState *thr, uptr pc, int tid) argument
313 ThreadSetName(ThreadState *thr, const char *name) argument
317 MemoryAccessRange(ThreadState *thr, uptr pc, uptr addr, uptr size, bool is_write) argument
[all...]
H A Dtsan_rtl_mutex.cc26 void ReportDeadlock(ThreadState *thr, uptr pc, DDReport *r);
29 ThreadState *thr; member in struct:__tsan::Callback
32 Callback(ThreadState *thr, uptr pc) argument
33 : thr(thr)
35 DDCallback::pt = thr->dd_pt;
36 DDCallback::lt = thr->dd_lt;
40 return CurrentStackId(thr, pc);
43 return thr->unique_id;
47 void DDMutexInit(ThreadState *thr, upt argument
53 ReportMutexMisuse(ThreadState *thr, uptr pc, ReportType typ, uptr addr, u64 mid) argument
69 MutexCreate(ThreadState *thr, uptr pc, uptr addr, bool rw, bool recursive, bool linker_init) argument
88 MutexDestroy(ThreadState *thr, uptr pc, uptr addr) argument
147 MutexLock(ThreadState *thr, uptr pc, uptr addr, int rec, bool try_lock) argument
192 MutexUnlock(ThreadState *thr, uptr pc, uptr addr, bool all) argument
234 MutexReadLock(ThreadState *thr, uptr pc, uptr addr, bool trylock) argument
269 MutexReadUnlock(ThreadState *thr, uptr pc, uptr addr) argument
301 MutexReadOrWriteUnlock(ThreadState *thr, uptr pc, uptr addr) argument
348 MutexRepair(ThreadState *thr, uptr pc, uptr addr) argument
356 Acquire(ThreadState *thr, uptr pc, uptr addr) argument
366 ThreadState *thr = reinterpret_cast<ThreadState*>(arg); local
374 AcquireGlobal(ThreadState *thr, uptr pc) argument
383 Release(ThreadState *thr, uptr pc, uptr addr) argument
395 ReleaseStore(ThreadState *thr, uptr pc, uptr addr) argument
409 ThreadState *thr = reinterpret_cast<ThreadState*>(arg); local
417 AfterSleep(ThreadState *thr, uptr pc) argument
428 AcquireImpl(ThreadState *thr, uptr pc, SyncClock *c) argument
436 ReleaseImpl(ThreadState *thr, uptr pc, SyncClock *c) argument
445 ReleaseStoreImpl(ThreadState *thr, uptr pc, SyncClock *c) argument
454 AcquireReleaseImpl(ThreadState *thr, uptr pc, SyncClock *c) argument
464 ReportDeadlock(ThreadState *thr, uptr pc, DDReport *r) argument
[all...]
H A Dtsan_mman.cc58 void AllocatorThreadStart(ThreadState *thr) { argument
59 allocator()->InitCache(&thr->alloc_cache);
60 internal_allocator()->InitCache(&thr->internal_alloc_cache);
63 void AllocatorThreadFinish(ThreadState *thr) { argument
64 allocator()->DestroyCache(&thr->alloc_cache);
65 internal_allocator()->DestroyCache(&thr->internal_alloc_cache);
72 static void SignalUnsafeCall(ThreadState *thr, uptr pc) { argument
73 if (!thr->in_signal_handler || !flags()->report_signal_unsafe)
76 stack.ObtainCurrent(thr, pc);
81 OutputReport(thr, re
85 user_alloc(ThreadState *thr, uptr pc, uptr sz, uptr align) argument
97 user_free(ThreadState *thr, uptr pc, void *p) argument
104 OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write) argument
113 OnUserFree(ThreadState *thr, uptr pc, uptr p, bool write) argument
121 user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz) argument
147 ThreadState *thr = cur_thread(); local
155 ThreadState *thr = cur_thread(); local
163 ThreadState *thr = cur_thread(); local
173 ThreadState *thr = cur_thread(); local
240 ThreadState *thr = cur_thread(); local
[all...]
H A Dtsan_fd.cc50 static FdSync *allocsync(ThreadState *thr, uptr pc) { argument
51 FdSync *s = (FdSync*)user_alloc(thr, pc, sizeof(FdSync));
62 static void unref(ThreadState *thr, uptr pc, FdSync *s) { argument
68 user_free(thr, pc, s);
73 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) { argument
81 void *p = user_alloc(thr, pc, size);
83 MemoryResetRange(thr, (uptr)&fddesc, (uptr)p, size);
87 user_free(thr, pc, p);
93 static void init(ThreadState *thr, uptr pc, int fd, FdSync *s) { argument
94 FdDesc *d = fddesc(thr, p
121 FdOnFork(ThreadState *thr, uptr pc) argument
153 FdAcquire(ThreadState *thr, uptr pc, int fd) argument
164 FdRelease(ThreadState *thr, uptr pc, int fd) argument
175 FdAccess(ThreadState *thr, uptr pc, int fd) argument
183 FdClose(ThreadState *thr, uptr pc, int fd) argument
199 FdFileCreate(ThreadState *thr, uptr pc, int fd) argument
206 FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd) argument
217 FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd) argument
225 FdEventCreate(ThreadState *thr, uptr pc, int fd) argument
232 FdSignalCreate(ThreadState *thr, uptr pc, int fd) argument
239 FdInotifyCreate(ThreadState *thr, uptr pc, int fd) argument
246 FdPollCreate(ThreadState *thr, uptr pc, int fd) argument
253 FdSocketCreate(ThreadState *thr, uptr pc, int fd) argument
261 FdSocketAccept(ThreadState *thr, uptr pc, int fd, int newfd) argument
270 FdSocketConnecting(ThreadState *thr, uptr pc, int fd) argument
278 FdSocketConnect(ThreadState *thr, uptr pc, int fd) argument
[all...]
H A Dtsan_update_shadow_word_inl.h17 StatInc(thr, StatShadowProcessed);
22 StatInc(thr, StatShadowZero);
31 StatInc(thr, StatShadowSameSize);
34 StatInc(thr, StatShadowSameThread);
39 StatInc(thr, StatShadowAnotherThread);
40 if (HappensBefore(old, thr)) {
50 StatInc(thr, StatShadowIntersect);
52 StatInc(thr, StatShadowSameThread);
55 StatInc(thr, StatShadowAnotherThread);
58 if (HappensBefore(old, thr))
[all...]
H A Dtsan_rtl.cc282 void Initialize(ThreadState *thr) { argument
326 int tid = ThreadCreate(thr, 0, 0, true);
328 ThreadStart(thr, tid, internal_getpid());
341 int Finalize(ThreadState *thr) { argument
345 if (flags()->atexit_sleep_ms > 0 && ThreadCount(thr) > 1)
359 ThreadFinalize(thr);
385 StatAggregate(ctx->stat, thr->stat);
391 void ForkBefore(ThreadState *thr, uptr pc) { argument
396 void ForkParentAfter(ThreadState *thr, uptr pc) { argument
401 void ForkChildAfter(ThreadState *thr, upt argument
425 GrowShadowStack(ThreadState *thr) argument
438 CurrentStackId(ThreadState *thr, uptr pc) argument
458 TraceSwitch(ThreadState *thr) argument
474 TraceTopPC(ThreadState *thr) argument
516 HandleRace(ThreadState *thr, u64 *shadow_mem, Shadow cur, Shadow old) argument
528 HappensBefore(Shadow old, ThreadState *thr) argument
533 MemoryAccessImpl1(ThreadState *thr, uptr addr, int kAccessSizeLog, bool kAccessIsWrite, bool kIsAtomic, u64 *shadow_mem, Shadow cur) argument
606 UnalignedMemoryAccess(ThreadState *thr, uptr pc, uptr addr, int size, bool kAccessIsWrite, bool kIsAtomic) argument
712 MemoryAccess(ThreadState *thr, uptr pc, uptr addr, int kAccessSizeLog, bool kAccessIsWrite, bool kIsAtomic) argument
778 MemoryAccessImpl(ThreadState *thr, uptr addr, int kAccessSizeLog, bool kAccessIsWrite, bool kIsAtomic, u64 *shadow_mem, Shadow cur) argument
794 MemoryRangeSet(ThreadState *thr, uptr pc, uptr addr, uptr size, u64 val) argument
855 MemoryResetRange(ThreadState *thr, uptr pc, uptr addr, uptr size) argument
859 MemoryRangeFreed(ThreadState *thr, uptr pc, uptr addr, uptr size) argument
881 MemoryRangeImitateWrite(ThreadState *thr, uptr pc, uptr addr, uptr size) argument
894 FuncEntry(ThreadState *thr, uptr pc) argument
916 FuncExit(ThreadState *thr) argument
931 ThreadIgnoreBegin(ThreadState *thr, uptr pc) argument
942 ThreadIgnoreEnd(ThreadState *thr, uptr pc) argument
954 ThreadIgnoreSyncBegin(ThreadState *thr, uptr pc) argument
964 ThreadIgnoreSyncEnd(ThreadState *thr, uptr pc) argument
[all...]
H A Dtsan_interface_java.cc41 ScopedJavaFunc(ThreadState *thr, uptr pc) argument
42 : thr_(thr) {
44 FuncEntry(thr, pc);
62 ThreadState *thr = cur_thread(); \
66 ScopedJavaFunc scoped(thr, caller_pc); \
71 DPrintf("#%d: java_init(%p, %p)\n", thr->tid, heap_begin, heap_size);
83 DPrintf("#%d: java_fini()\n", thr->tid);
86 int status = Finalize(thr);
87 DPrintf("#%d: java_fini() = %d\n", thr->tid, status);
93 DPrintf("#%d: java_alloc(%p, %p)\n", thr
[all...]
/external/compiler-rt/lib/tsan/tests/unit/
H A Dtsan_stack_test.cc21 ThreadState thr(0, 0, 0, 0, 0, 0, 0, 0, 0);
23 thr.shadow_stack = &stack[0];
24 thr.shadow_stack_pos = &stack[0];
25 thr.shadow_stack_end = &stack[128];
27 trace->ObtainCurrent(&thr, 0);
30 trace->ObtainCurrent(&thr, 42);
34 *thr.shadow_stack_pos++ = 100;
35 *thr.shadow_stack_pos++ = 101;
36 trace->ObtainCurrent(&thr, 0);
41 trace->ObtainCurrent(&thr, 4
[all...]
H A Dtsan_mman_test.cc38 ThreadState *thr = cur_thread(); local
40 char *p = (char*)user_alloc(thr, pc, 10);
42 char *p2 = (char*)user_alloc(thr, pc, 20);
47 user_free(thr, pc, p);
48 user_free(thr, pc, p2);
52 ThreadState *thr = cur_thread(); local
55 void *p = user_realloc(thr, pc, 0, 0);
61 void *p = user_realloc(thr, pc, 0, 100);
64 user_free(thr, pc, p);
67 void *p = user_alloc(thr, p
97 ThreadState *thr = cur_thread(); local
110 ThreadState *thr = cur_thread(); local
[all...]
/external/compiler-rt/lib/tsan/dd/
H A Ddd_rtl.cc21 static u32 CurrentStackTrace(Thread *thr, uptr skip) { argument
23 thr->ignore_interceptors = true;
25 thr->ignore_interceptors = false;
31 static void PrintStackTrace(Thread *thr, u32 stk) { argument
34 thr->ignore_interceptors = true;
36 thr->ignore_interceptors = false;
39 static void ReportDeadlock(Thread *thr, DDReport *rep) { argument
48 PrintStackTrace(thr, rep->loop[i].stk[1]);
52 PrintStackTrace(thr, rep->loop[i].stk[0]);
58 Callback::Callback(Thread *thr) argument
96 ThreadInit(Thread *thr) argument
103 ThreadDestroy(Thread *thr) argument
108 MutexBeforeLock(Thread *thr, uptr m, bool writelock) argument
121 MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock) argument
134 MutexBeforeUnlock(Thread *thr, uptr m, bool writelock) argument
145 MutexDestroy(Thread *thr, uptr m) argument
[all...]
H A Ddd_rtl.h36 Thread *thr; member in struct:__dsan::Callback
38 Callback(Thread *thr);
59 void ThreadInit(Thread *thr);
60 void ThreadDestroy(Thread *thr);
62 void MutexBeforeLock(Thread *thr, uptr m, bool writelock);
63 void MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock);
64 void MutexBeforeUnlock(Thread *thr, uptr m, bool writelock);
65 void MutexDestroy(Thread *thr, uptr m);
/external/compiler-rt/lib/tsan/go/
H A Dtsan_go.cc95 ThreadState *thr = (ThreadState*)internal_alloc(MBlockThreadContex, local
97 internal_memset(thr, 0, sizeof(*thr));
98 return thr;
103 ThreadState *thr = AllocGoroutine(); local
104 main_thr = *thrp = thr;
105 Initialize(thr);
111 ThreadState *thr = main_thr; local
112 int res = Finalize(thr);
120 void __tsan_read(ThreadState *thr, voi argument
124 __tsan_read_pc(ThreadState *thr, void *addr, uptr callpc, uptr pc) argument
132 __tsan_write(ThreadState *thr, void *addr, void *pc) argument
136 __tsan_write_pc(ThreadState *thr, void *addr, uptr callpc, uptr pc) argument
144 __tsan_read_range(ThreadState *thr, void *addr, uptr size, uptr pc) argument
148 __tsan_write_range(ThreadState *thr, void *addr, uptr size, uptr pc) argument
152 __tsan_func_enter(ThreadState *thr, void *pc) argument
156 __tsan_func_exit(ThreadState *thr) argument
167 ThreadState *thr = AllocGoroutine(); local
173 __tsan_go_end(ThreadState *thr) argument
178 __tsan_acquire(ThreadState *thr, void *addr) argument
182 __tsan_release(ThreadState *thr, void *addr) argument
186 __tsan_release_merge(ThreadState *thr, void *addr) argument
190 __tsan_finalizer_goroutine(ThreadState *thr) argument
194 __tsan_mutex_before_lock(ThreadState *thr, uptr addr, uptr write) argument
197 __tsan_mutex_after_lock(ThreadState *thr, uptr addr, uptr write) argument
204 __tsan_mutex_before_unlock(ThreadState *thr, uptr addr, uptr write) argument
[all...]
H A Dtest.c16 void __tsan_init(void **thr, void (*cb)(void*));
19 void __tsan_go_start(void *thr, void **chthr, void *pc);
20 void __tsan_go_end(void *thr);
21 void __tsan_read(void *thr, void *addr, void *pc);
22 void __tsan_write(void *thr, void *addr, void *pc);
23 void __tsan_func_enter(void *thr, void *pc);
24 void __tsan_func_exit(void *thr);
26 void __tsan_acquire(void *thr, void *addr);
27 void __tsan_release(void *thr, void *addr);
28 void __tsan_release_merge(void *thr, voi
[all...]
/external/valgrind/main/drd/tests/
H A Dpth_create_glibc_2_0.c28 pthread_t thr; local
30 result = (*pthread_create_glibc_2_0)(&thr, 0, thread_func, 0);
36 pthread_join(thr, 0);
/external/compiler-rt/test/tsan/
H A Dsunrpc.cc7 void *thr(void *p) { function
17 pthread_create(&th[0], 0, thr, 0);
18 pthread_create(&th[1], 0, thr, 0);
H A Dmalloc_stack.cc7 void *thr(void *a) { function
16 pthread_create(&th, 0, thr, p);
/external/valgrind/main/helgrind/
H A Dlibhb.h84 void libhb_so_send ( Thr* thr, SO* so, Bool strong_send );
94 void libhb_so_recv ( Thr* thr, SO* so, Bool strong_recv );
113 void zsm_sapply08_f__msmcwrite ( Thr* thr, Addr a );
114 void zsm_sapply16_f__msmcwrite ( Thr* thr, Addr a );
115 void zsm_sapply32_f__msmcwrite ( Thr* thr, Addr a );
116 void zsm_sapply64_f__msmcwrite ( Thr* thr, Addr a );
117 void zsm_sapplyNN_f__msmcwrite ( Thr* thr, Addr a, SizeT len );
119 void zsm_sapply08_f__msmcread ( Thr* thr, Addr a );
120 void zsm_sapply16_f__msmcread ( Thr* thr, Addr a );
121 void zsm_sapply32_f__msmcread ( Thr* thr, Add
[all...]

Completed in 245 milliseconds

1234