Home
last modified time | relevance | path

Searched refs:cur_thread (Results 1 – 24 of 24) sorted by relevance

/external/compiler-rt/lib/tsan/rtl/
Dtsan_interface_inl.h22 MemoryRead(cur_thread(), CALLERPC, (uptr)addr, kSizeLog1); in __tsan_read1()
26 MemoryRead(cur_thread(), CALLERPC, (uptr)addr, kSizeLog2); in __tsan_read2()
30 MemoryRead(cur_thread(), CALLERPC, (uptr)addr, kSizeLog4); in __tsan_read4()
34 MemoryRead(cur_thread(), CALLERPC, (uptr)addr, kSizeLog8); in __tsan_read8()
38 MemoryWrite(cur_thread(), CALLERPC, (uptr)addr, kSizeLog1); in __tsan_write1()
42 MemoryWrite(cur_thread(), CALLERPC, (uptr)addr, kSizeLog2); in __tsan_write2()
46 MemoryWrite(cur_thread(), CALLERPC, (uptr)addr, kSizeLog4); in __tsan_write4()
50 MemoryWrite(cur_thread(), CALLERPC, (uptr)addr, kSizeLog8); in __tsan_write8()
54 MemoryRead(cur_thread(), (uptr)pc, (uptr)addr, kSizeLog1); in __tsan_read1_pc()
58 MemoryRead(cur_thread(), (uptr)pc, (uptr)addr, kSizeLog2); in __tsan_read2_pc()
[all …]
Dtsan_interface.cc28 Initialize(cur_thread()); in __tsan_init()
32 MemoryRead(cur_thread(), CALLERPC, (uptr)addr, kSizeLog8); in __tsan_read16()
33 MemoryRead(cur_thread(), CALLERPC, (uptr)addr + 8, kSizeLog8); in __tsan_read16()
37 MemoryWrite(cur_thread(), CALLERPC, (uptr)addr, kSizeLog8); in __tsan_write16()
38 MemoryWrite(cur_thread(), CALLERPC, (uptr)addr + 8, kSizeLog8); in __tsan_write16()
42 MemoryRead(cur_thread(), (uptr)pc, (uptr)addr, kSizeLog8); in __tsan_read16_pc()
43 MemoryRead(cur_thread(), (uptr)pc, (uptr)addr + 8, kSizeLog8); in __tsan_read16_pc()
47 MemoryWrite(cur_thread(), (uptr)pc, (uptr)addr, kSizeLog8); in __tsan_write16_pc()
48 MemoryWrite(cur_thread(), (uptr)pc, (uptr)addr + 8, kSizeLog8); in __tsan_write16_pc()
54 UnalignedMemoryAccess(cur_thread(), CALLERPC, (uptr)addr, 2, false, false); in __tsan_unaligned_read2()
[all …]
Dtsan_malloc_mac.cc24 #define COMMON_MALLOC_SANITIZER_INITIALIZED (cur_thread()->is_inited)
29 user_alloc(cur_thread(), StackTrace::GetCurrentPc(), size, alignment)
31 if (cur_thread()->in_symbolizer) return InternalAlloc(size); \
35 if (cur_thread()->in_symbolizer) return InternalRealloc(ptr, size); \
39 if (cur_thread()->in_symbolizer) return InternalCalloc(count, size); \
43 if (cur_thread()->in_symbolizer) \
48 if (cur_thread()->in_symbolizer) return InternalFree(ptr); \
Dtsan_interceptors_mac.cc176 CHECK(!cur_thread()->is_dead); in TSAN_INTERCEPTOR()
177 if (!cur_thread()->is_inited) { in TSAN_INTERCEPTOR()
186 CHECK(!cur_thread()->is_dead); in TSAN_INTERCEPTOR()
187 if (!cur_thread()->is_inited) { in TSAN_INTERCEPTOR()
198 CHECK(!cur_thread()->is_dead); in TSAN_INTERCEPTOR()
199 if (!cur_thread()->is_inited) { in TSAN_INTERCEPTOR()
208 CHECK(!cur_thread()->is_dead); in TSAN_INTERCEPTOR()
209 if (!cur_thread()->is_inited) { in TSAN_INTERCEPTOR()
218 CHECK(!cur_thread()->is_dead); in TSAN_INTERCEPTOR()
219 if (!cur_thread()->is_inited) { in TSAN_INTERCEPTOR()
[all …]
Dtsan_mman.cc83 ThreadState *thr = cur_thread(); in ScopedGlobalProcessor()
106 ThreadState *thr = cur_thread(); in ~ScopedGlobalProcessor()
227 ThreadState *thr = cur_thread(); in invoke_malloc_hook()
235 ThreadState *thr = cur_thread(); in invoke_free_hook()
243 ThreadState *thr = cur_thread(); in internal_alloc()
252 ThreadState *thr = cur_thread(); in internal_free()
298 ThreadState *thr = cur_thread(); in __tsan_on_thread_idle()
Dtsan_mutex.cc229 cur_thread()->internal_deadlock_detector.Lock(type_); in Lock()
241 StatInc(cur_thread(), stat_type_, backoff.Contention()); in Lock()
254 cur_thread()->internal_deadlock_detector.Unlock(type_); in Unlock()
260 cur_thread()->internal_deadlock_detector.Lock(type_); in ReadLock()
269 StatInc(cur_thread(), stat_type_, backoff.Contention()); in ReadLock()
282 cur_thread()->internal_deadlock_detector.Unlock(type_); in ReadUnlock()
Dtsan_platform_mac.cc76 ThreadState *cur_thread() { in cur_thread() function
136 ThreadState *thr = cur_thread(); in my_pthread_introspection_hook()
146 ThreadState *thr = cur_thread(); in my_pthread_introspection_hook()
Dtsan_symbolize.cc26 ThreadState *thr = cur_thread(); in EnterSymbolizer()
33 ThreadState *thr = cur_thread(); in ExitSymbolizer()
Dtsan_new_delete.cc28 if (cur_thread()->in_symbolizer) \
64 if (cur_thread()->in_symbolizer) \
Dtsan_interceptors.cc199 (!cur_thread()->is_inited)
378 ThreadState *thr = cur_thread(); in at_exit_wrapper()
391 if (cur_thread()->in_symbolizer) in TSAN_INTERCEPTOR()
401 if (cur_thread()->in_symbolizer) in TSAN_INTERCEPTOR()
423 ThreadState *thr = cur_thread(); in on_exit_wrapper()
432 if (cur_thread()->in_symbolizer) in TSAN_INTERCEPTOR()
518 SetJmp(cur_thread(), sp, mangled_sp); in __tsan_setjmp()
573 LongJmp(cur_thread(), env); in DEFINE_REAL()
581 LongJmp(cur_thread(), env); in TSAN_INTERCEPTOR()
587 if (cur_thread()->in_symbolizer) in TSAN_INTERCEPTOR()
[all …]
Dtsan_interceptors.h24 ThreadState *thr = cur_thread(); \
Dtsan_rtl.h448 ThreadState *cur_thread();
453 INLINE ThreadState *cur_thread() { in cur_thread() function
545 cur_thread()->ignore_interceptors++; in ScopedIgnoreInterceptors()
551 cur_thread()->ignore_interceptors--; in ~ScopedIgnoreInterceptors()
Dtsan_debugging.cc60 return const_cast<ReportDesc*>(cur_thread()->current_report); in __tsan_get_current_report()
Dtsan_rtl.cc150 cur_thread()->ignore_interceptors++; in BackgroundThread()
537 TraceSwitch(cur_thread()); in __tsan_trace_switch()
541 ReportRace(cur_thread()); in __tsan_report_race()
Dtsan_platform_linux.cc355 ThreadState *cur_thread() { in cur_thread() function
Dtsan_interface_java.cc62 ThreadState *thr = cur_thread(); \
Dtsan_clock.cc86 # define CPP_STAT_INC(typ) StatInc(cur_thread(), typ)
Dtsan_interface_ann.cc52 ThreadState *thr = cur_thread(); \
Dtsan_interface_atomic.cc457 ThreadState *const thr = cur_thread(); \
/external/compiler-rt/lib/tsan/tests/unit/
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()
144 ThreadState *thr = cur_thread(); in TEST()
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()
/external/libmpeg2/common/
Dithread.c162 pthread_t cur_thread = pthread_self(); in ithread_set_affinity() local
170 return pthread_setaffinity_np(cur_thread, sizeof(cpu_set_t), &cpuset); in ithread_set_affinity()
/external/libhevc/common/
Dithread.c155 pthread_t cur_thread = pthread_self(); in ithread_set_affinity() local
163 return pthread_setaffinity_np(cur_thread, sizeof(cpu_set_t), &cpuset); in ithread_set_affinity()
/external/libavc/common/
Dithread.c180 pthread_t cur_thread = pthread_self(); in ithread_set_affinity() local
188 return pthread_setaffinity_np(cur_thread, sizeof(cpu_set_t), &cpuset); in ithread_set_affinity()