/external/compiler-rt/lib/tsan/dd/ |
H A D | dd_interceptors.cc | 22 static __thread Thread *thr; variable 32 if (thr != 0) 39 thr = (Thread*)InternalAlloc(sizeof(*thr)); 40 internal_memset(thr, 0, sizeof(*thr)); 41 ThreadInit(thr); 48 MutexDestroy(thr, (uptr)m); 54 MutexBeforeLock(thr, (uptr)m, true); 56 MutexAfterLock(thr, (upt [all...] |
/external/valgrind/main/memcheck/tests/ |
H A D | thread_alloca.c | 7 Also, a high nr of threads in thr[] is needed to get 36 pthread_t thr[50]; local 39 for (i = 0; i < sizeof(thr) / sizeof(*thr); i++) { 40 err = pthread_create(&thr[i], NULL, nop, NULL); 47 for (i = 0; i < sizeof(thr) / sizeof(*thr); i++) 48 pthread_join(thr[i], NULL);
|
H A D | reach_thread_register.c | 46 pthread_t thr; local 47 pthread_create(&thr, NULL, &helper, &bar); 51 pthread_detach(thr);
|
/external/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_rtl.h | 409 ThreadState *thr; member in class:__tsan::ThreadContext 531 void ALWAYS_INLINE StatInc(ThreadState *thr, StatType typ, u64 n = 1) { argument 533 thr->stat[typ] += n; 535 void ALWAYS_INLINE StatSet(ThreadState *thr, StatType typ, u64 n) { argument 537 thr->stat[typ] = n; 548 void ForkBefore(ThreadState *thr, uptr pc); 549 void ForkParentAfter(ThreadState *thr, uptr pc); 550 void ForkChildAfter(ThreadState *thr, uptr pc); 552 void ReportRace(ThreadState *thr); 553 bool OutputReport(ThreadState *thr, cons 602 MemoryRead(ThreadState *thr, uptr pc, uptr addr, int kAccessSizeLog) argument 607 MemoryWrite(ThreadState *thr, uptr pc, uptr addr, int kAccessSizeLog) argument 612 MemoryReadAtomic(ThreadState *thr, uptr pc, uptr addr, int kAccessSizeLog) argument 617 MemoryWriteAtomic(ThreadState *thr, uptr pc, uptr addr, int kAccessSizeLog) argument 694 TraceAddEvent(ThreadState *thr, FastState fs, EventType typ, u64 addr) argument [all...] |
H A D | tsan_interceptors.cc | 147 static SignalContext *SigCtx(ThreadState *thr) { argument 148 SignalContext *ctx = (SignalContext*)thr->signal_ctx; 149 if (ctx == 0 && thr->is_alive) { 151 MemoryResetRange(thr, (uptr)&SigCtx, (uptr)ctx, sizeof(*ctx)); 152 thr->signal_ctx = ctx; 161 ScopedInterceptor(ThreadState *thr, const char *fname, uptr pc); 169 ScopedInterceptor::ScopedInterceptor(ThreadState *thr, const char *fname, argument 171 : thr_(thr) 175 Initialize(thr); 176 FuncEntry(thr, p 223 BlockingCall(ThreadState *thr) argument 272 atexit(ThreadState *thr, uptr pc, bool is_on_exit, atexit_t f, void *arg) argument 285 exit(ThreadState *thr, uptr pc) argument 353 JmpBufGarbageCollect(ThreadState *thr, uptr sp) argument 365 SetJmp(ThreadState *thr, uptr sp, uptr mangled_sp) argument 377 LongJmp(ThreadState *thr, uptr *env) argument 801 ThreadState *thr = cur_thread(); local 824 ThreadState *thr = cur_thread(); local 953 ThreadState *thr; member in struct:CondMutexUnlockCtx 1686 CallUserSignalHandler(ThreadState *thr, bool sync, bool sigact, int sig, my_siginfo_t *info, void *uctx) argument 1720 ProcessPendingSignals(ThreadState *thr) argument 1757 ThreadState *thr = cur_thread(); local 1974 OnExit(ThreadState *thr) argument 1981 ThreadState *thr; member in struct:TsanInterceptorContext 1986 HandleRecvmsg(ThreadState *thr, uptr pc, __sanitizer_msghdr *msg) argument 2090 ThreadState *thr; member in struct:ScopedSyscall 2092 ScopedSyscall(ThreadState *thr) argument 2197 ThreadState *thr = cur_thread(); local [all...] |
H A D | tsan_interface_inl.h | 56 ThreadState *thr = cur_thread(); local 57 thr->is_vptr_access = true; 58 MemoryWrite(thr, CALLERPC, (uptr)vptr_p, kSizeLog8); 59 thr->is_vptr_access = false; 65 ThreadState *thr = cur_thread(); local 66 thr->is_vptr_access = true; 67 MemoryRead(thr, CALLERPC, (uptr)vptr_p, kSizeLog8); 68 thr->is_vptr_access = false;
|
H A D | tsan_mman.h | 23 void AllocatorThreadStart(ThreadState *thr); 24 void AllocatorThreadFinish(ThreadState *thr); 28 void *user_alloc(ThreadState *thr, uptr pc, uptr sz, 31 void user_free(ThreadState *thr, uptr pc, void *p); 32 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz); 33 void *user_alloc_aligned(ThreadState *thr, uptr pc, uptr sz, uptr align);
|
H A D | tsan_sync.cc | 20 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s); 27 void SyncVar::Init(ThreadState *thr, uptr pc, uptr addr, u64 uid) { argument 34 creation_stack_id = CurrentStackId(thr, pc); 36 DDMutexInit(thr, pc, this); 58 void MetaMap::AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz) { argument 59 u32 idx = block_alloc_.Alloc(&thr->block_cache); 62 b->tid = thr->tid; 63 b->stk = CurrentStackId(thr, pc); 69 uptr MetaMap::FreeBlock(ThreadState *thr, uptr pc, uptr p) { argument 74 FreeRange(thr, p 78 FreeRange(ThreadState *thr, uptr pc, uptr p, uptr sz) argument 120 GetOrCreateAndLock(ThreadState *thr, uptr pc, uptr addr, bool write_lock) argument 129 GetAndLock(ThreadState *thr, uptr pc, uptr addr, bool write_lock, bool create) argument 215 OnThreadIdle(ThreadState *thr) argument [all...] |
H A D | tsan_sync.h | 49 void Init(ThreadState *thr, uptr pc, uptr addr, u64 uid); 74 void AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz); 75 uptr FreeBlock(ThreadState *thr, uptr pc, uptr p); 76 void FreeRange(ThreadState *thr, uptr pc, uptr p, uptr sz); 79 SyncVar* GetOrCreateAndLock(ThreadState *thr, uptr pc, 85 void OnThreadIdle(ThreadState *thr); 97 SyncVar* GetAndLock(ThreadState *thr, uptr pc, uptr addr, bool write_lock,
|
H A D | tsan_rtl_report.cc | 239 ThreadState *thr = tctx->thr; 240 CHECK(thr); 241 return ((addr >= thr->stk_addr && addr < thr->stk_addr + thr->stk_size) || 242 (addr >= thr->tls_addr && addr < thr->tls_addr + thr->tls_size)); 252 ThreadState *thr 456 HandleRacyStacks(ThreadState *thr, const StackTrace (&traces)[2], uptr addr_min, uptr addr_max) argument 495 AddRacyStacks(ThreadState *thr, const StackTrace (&traces)[2], uptr addr_min, uptr addr_max) argument 509 OutputReport(ThreadState *thr, const ScopedReport &srep) argument 617 RaceBetweenAtomicAndFree(ThreadState *thr) argument 630 ReportRace(ThreadState *thr) argument 723 PrintCurrentStack(ThreadState *thr, uptr pc) argument [all...] |
H A D | tsan_symbolize.cc | 26 ThreadState *thr = cur_thread(); local 27 CHECK(!thr->in_symbolizer); 28 thr->in_symbolizer = true; 29 thr->ignore_interceptors++; 33 ThreadState *thr = cur_thread(); local 34 CHECK(thr->in_symbolizer); 35 thr->in_symbolizer = false; 36 thr->ignore_interceptors--;
|
/external/compiler-rt/lib/tsan/tests/unit/ |
H A D | tsan_sync_test.cc | 20 ThreadState *thr = cur_thread(); local 23 m->AllocBlock(thr, 0, (uptr)&block[0], 1 * sizeof(u64)); 27 EXPECT_EQ(mb->tid, thr->tid); 28 uptr sz = m->FreeBlock(thr, 0, (uptr)&block[0]); 35 ThreadState *thr = cur_thread(); local 38 m->AllocBlock(thr, 0, (uptr)&block[0], 1 * sizeof(u64)); 39 m->AllocBlock(thr, 0, (uptr)&block[1], 3 * sizeof(u64)); 44 m->FreeRange(thr, 0, (uptr)&block[0], 4 * sizeof(u64)); 52 ThreadState *thr = cur_thread(); local 55 m->AllocBlock(thr, 75 ThreadState *thr = cur_thread(); local 112 ThreadState *thr = cur_thread(); local [all...] |
/external/valgrind/main/helgrind/ |
H A D | hg_errors.c | 298 Thread* thr; member in struct:__anon32822::__anon32823::__anon32824 312 Thread* thr; /* doing the unlocking */ member in struct:__anon32822::__anon32823::__anon32825 316 Thread* thr; /* doing the unlocking */ member in struct:__anon32822::__anon32823::__anon32826 321 Thread* thr; /* doing the unlocking */ member in struct:__anon32822::__anon32823::__anon32827 325 Thread* thr; member in struct:__anon32822::__anon32823::__anon32828 331 Thread* thr; member in struct:__anon32822::__anon32823::__anon32829 347 Thread* thr; member in struct:__anon32822::__anon32823::__anon32830 392 tl_assert(xe->XE.Race.thr); 396 xe->XE.Race.thr->locksetW, 420 Thr* acc_thr = xe->XE.Race.thr 455 record_error_Race( Thread* thr, Addr data_addr, Int szB, Bool isWrite, Thread* h1_ct, ExeContext* h1_ct_segstart, ExeContext* h1_ct_mbsegendEC ) argument 514 record_error_UnlockUnlocked( Thread* thr, Lock* lk ) argument 532 record_error_UnlockForeign( Thread* thr, Thread* owner, Lock* lk ) argument 552 record_error_UnlockBogus( Thread* thr, Addr lock_ga ) argument 567 record_error_LockOrder( Thread* thr, Addr shouldbe_earlier_ga, Addr shouldbe_later_ga, ExeContext* shouldbe_earlier_ec, ExeContext* shouldbe_later_ec, ExeContext* actual_earlier_ec ) argument 594 record_error_PthAPIerror( Thread* thr, const HChar* fnname, Word err, const HChar* errstr ) argument 614 record_error_Misc_w_aux( Thread* thr, const HChar* errstr, const HChar* auxstr, ExeContext* auxctx ) argument 633 record_error_Misc( Thread* thr, const HChar* errstr ) argument [all...] |
H A D | hg_main.c | 164 ThreadId map_threads_maybe_reverse_lookup_SLOW ( Thread* thr ); /*fwds*/ 236 /* Update 'lk' to reflect that 'thr' now has a write-acquisition of 239 static void lockN_acquire_writer ( Lock* lk, Thread* thr ) 242 tl_assert(HG_(is_sane_Thread)(thr)); 252 tid = map_threads_maybe_reverse_lookup_SLOW(thr); 267 VG_(addToBag)( lk->heldBy, (UWord)thr ); 276 /* assert: .. and that thread is 'thr'. */ 277 tl_assert(VG_(elemBag)(lk->heldBy, (UWord)thr) 279 VG_(addToBag)(lk->heldBy, (UWord)thr); 290 static void lockN_acquire_reader ( Lock* lk, Thread* thr ) 356 Thread* thr; local 497 Thread* thr; local 589 Thread* thr; local 652 Thread* thr; local 661 Thread* thr; local 695 Thread* thr; local 837 thread_is_a_holder_of_Lock( Thread* thr, Lock* lk ) argument 851 Thread* thr; local 911 Thread* thr; local 973 shadow_mem_scopy_range( Thread* thr, Addr src, Addr dst, SizeT len ) argument 981 shadow_mem_cread_range( Thread* thr, Addr a, SizeT len ) argument 988 shadow_mem_cwrite_range( Thread* thr, Addr a, SizeT len ) argument 994 shadow_mem_make_New( Thread* thr, Addr a, SizeT len ) argument 999 shadow_mem_make_NoAccess_NoFX( Thread* thr, Addr aIN, SizeT len ) argument 1007 shadow_mem_make_NoAccess_AHAE( Thread* thr, Addr aIN, SizeT len ) argument 1015 shadow_mem_make_Untracked( Thread* thr, Addr aIN, SizeT len ) argument 1057 evhH__post_thread_w_acquires_lock( Thread* thr, LockKind lkk, Addr lock_ga ) argument 1154 evhH__post_thread_r_acquires_lock( Thread* thr, LockKind lkk, Addr lock_ga ) argument 1229 evhH__pre_thread_releases_lock( Thread* thr, Addr lock_ga, Bool isRDWR ) argument 1410 Thread* thr; local 1652 Thread* thr; local 1800 Thread* thr; local 1822 Thread* thr = get_current_Thread_in_C_C(); local 1829 Thread* thr = get_current_Thread_in_C_C(); local 1836 Thread* thr = get_current_Thread_in_C_C(); local 1843 Thread* thr = get_current_Thread_in_C_C(); local 1850 Thread* thr = get_current_Thread_in_C_C(); local 1857 Thread* thr = get_current_Thread_in_C_C(); local 1864 Thread* thr = get_current_Thread_in_C_C(); local 1871 Thread* thr = get_current_Thread_in_C_C(); local 1878 Thread* thr = get_current_Thread_in_C_C(); local 1885 Thread* thr = get_current_Thread_in_C_C(); local 1917 Thread* thr; local 1976 Thread* thr; local 2017 Thread* thr; local 2035 Thread* thr; local 2049 Thread* thr; local 2070 Thread* thr; local 2202 Thread* thr; local 2247 Thread* thr; local 2323 Thread* thr; local 2394 Thread* thr; local 2487 Thread* thr; local 2538 Thread* thr; local 2563 Thread* thr; local 2583 Thread* thr; local 2597 Thread* thr; local 2729 Thread* thr; local 2776 Thread* thr; local 2804 Thread* thr; local 2906 Thread* thr; local 2961 Thread* thr; local 3082 Thread* thr; local 3125 Thread* thr; local 3246 Thread* thr; local 3271 Thread* thr; local 3754 laog__pre_thread_acquires_lock( Thread* thr, Lock* lk ) argument 3976 Thread* thr; /* allocating thread */ member in struct:__anon32837 5101 Thread* thr = map_threads_maybe_lookup( tid ); local 5338 Thread* thr; local 5355 Thread* thr; local [all...] |
H A D | hg_lock_n_thread.c | 48 inline Bool HG_(is_sane_Thread) ( Thread* thr ) { 49 return thr != NULL && thr->magic == Thread_MAGIC; 54 Thread* thr; local 57 while (VG_(nextIterBag)( bag, (UWord*)&thr, &count )) { 59 if (!HG_(is_sane_Thread)(thr)) return False;
|
/external/compiler-rt/test/asan/TestCases/ |
H A D | current_allocated_bytes.cc | 29 pthread_t thr[4]; local 32 pthread_create(&thr[j], 0, (j < 2) ? allocate : check_stats, 0)); 35 assert(0 == pthread_join(thr[j], 0));
|
/external/valgrind/main/helgrind/tests/ |
H A D | bar_trivial.c | 38 pthread_t thr[NTHR]; local 44 r = pthread_create(&thr[i], NULL, child_fn, (void*)i); 49 r = pthread_join(thr[i], NULL);
|
/external/compiler-rt/test/tsan/ |
H A D | mutex_robust.cc | 10 void *thr(void *p) { function 21 pthread_create(&th, 0, thr, 0);
|
H A D | mutex_robust2.cc | 11 void *thr(void *p) { function 23 pthread_create(&th, 0, thr, 0);
|
H A D | barrier.cc | 15 void *thr(void *p) { function 32 pthread_create(&th[i], 0, thr, (void*)(long)i);
|
H A D | cond_race.cc | 17 void *thr(void *p) { function 31 pthread_create(&th, 0, thr, c);
|
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/ |
H A D | testutil.cc | 182 pthread_t thr; local 185 SAFE_PTHREAD(pthread_create(&thr, NULL, RunFunctionInThread, &fn)); 186 SAFE_PTHREAD(pthread_join(thr, NULL)); 190 pthread_t* thr = new pthread_t[count]; local 192 SAFE_PTHREAD(pthread_create(&thr[i], NULL, RunFunctionInThread, &fn)); 195 SAFE_PTHREAD(pthread_join(thr[i], NULL)); 197 delete[] thr; 205 pthread_t* thr = new pthread_t[count]; local 210 SAFE_PTHREAD(pthread_create(&thr[i], &attr, 214 SAFE_PTHREAD(pthread_join(thr[ [all...] |
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/ |
H A D | testutil.cc | 182 pthread_t thr; local 185 SAFE_PTHREAD(pthread_create(&thr, NULL, RunFunctionInThread, &fn)); 186 SAFE_PTHREAD(pthread_join(thr, NULL)); 190 pthread_t* thr = new pthread_t[count]; local 192 SAFE_PTHREAD(pthread_create(&thr[i], NULL, RunFunctionInThread, &fn)); 195 SAFE_PTHREAD(pthread_join(thr[i], NULL)); 197 delete[] thr; 205 pthread_t* thr = new pthread_t[count]; local 210 SAFE_PTHREAD(pthread_create(&thr[i], &attr, 214 SAFE_PTHREAD(pthread_join(thr[ [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/common/ppc/ |
H A D | loopfilter_altivec.c | 58 mbloop_filter_horizontal_edge_y_ppc(y_ptr, y_stride, lfi->mbflim, lfi->lim, lfi->thr); 61 mbloop_filter_horizontal_edge_uv_ppc(u_ptr, v_ptr, uv_stride, lfi->mbflim, lfi->lim, lfi->thr); 77 mbloop_filter_vertical_edge_y_ppc(y_ptr, y_stride, lfi->mbflim, lfi->lim, lfi->thr); 80 mbloop_filter_vertical_edge_uv_ppc(u_ptr, v_ptr, uv_stride, lfi->mbflim, lfi->lim, lfi->thr); 97 loop_filter_horizontal_edge_y_ppc(y_ptr + 4 * y_stride, y_stride, lfi->flim, lfi->lim, lfi->thr); 98 loop_filter_horizontal_edge_y_ppc(y_ptr + 8 * y_stride, y_stride, lfi->flim, lfi->lim, lfi->thr); 99 loop_filter_horizontal_edge_y_ppc(y_ptr + 12 * y_stride, y_stride, lfi->flim, lfi->lim, lfi->thr); 102 loop_filter_horizontal_edge_uv_ppc(u_ptr + 4 * uv_stride, v_ptr + 4 * uv_stride, uv_stride, lfi->flim, lfi->lim, lfi->thr); 120 loop_filter_vertical_edge_y_ppc(y_ptr, y_stride, lfi->flim, lfi->lim, lfi->thr); 123 loop_filter_vertical_edge_uv_ppc(u_ptr + 4, v_ptr + 4, uv_stride, lfi->flim, lfi->lim, lfi->thr); [all...] |
/external/libvpx/libvpx/vp8/common/ppc/ |
H A D | loopfilter_altivec.c | 58 mbloop_filter_horizontal_edge_y_ppc(y_ptr, y_stride, lfi->mbflim, lfi->lim, lfi->thr); 61 mbloop_filter_horizontal_edge_uv_ppc(u_ptr, v_ptr, uv_stride, lfi->mbflim, lfi->lim, lfi->thr); 77 mbloop_filter_vertical_edge_y_ppc(y_ptr, y_stride, lfi->mbflim, lfi->lim, lfi->thr); 80 mbloop_filter_vertical_edge_uv_ppc(u_ptr, v_ptr, uv_stride, lfi->mbflim, lfi->lim, lfi->thr); 97 loop_filter_horizontal_edge_y_ppc(y_ptr + 4 * y_stride, y_stride, lfi->flim, lfi->lim, lfi->thr); 98 loop_filter_horizontal_edge_y_ppc(y_ptr + 8 * y_stride, y_stride, lfi->flim, lfi->lim, lfi->thr); 99 loop_filter_horizontal_edge_y_ppc(y_ptr + 12 * y_stride, y_stride, lfi->flim, lfi->lim, lfi->thr); 102 loop_filter_horizontal_edge_uv_ppc(u_ptr + 4 * uv_stride, v_ptr + 4 * uv_stride, uv_stride, lfi->flim, lfi->lim, lfi->thr); 120 loop_filter_vertical_edge_y_ppc(y_ptr, y_stride, lfi->flim, lfi->lim, lfi->thr); 123 loop_filter_vertical_edge_uv_ppc(u_ptr + 4, v_ptr + 4, uv_stride, lfi->flim, lfi->lim, lfi->thr); [all...] |