Home
last modified time | relevance | path

Searched refs:flagz (Results 1 – 5 of 5) sorted by relevance

/external/llvm-project/compiler-rt/lib/tsan/rtl/
Dtsan_rtl_mutex.cpp64 void MutexCreate(ThreadState *thr, uptr pc, uptr addr, u32 flagz) { in MutexCreate() argument
65 DPrintf("#%d: MutexCreate %zx flagz=0x%x\n", thr->tid, addr, flagz); in MutexCreate()
67 if (!(flagz & MutexFlagLinkerInit) && IsAppMem(addr)) { in MutexCreate()
74 s->SetFlags(flagz & MutexCreationFlagMask); in MutexCreate()
80 void MutexDestroy(ThreadState *thr, uptr pc, uptr addr, u32 flagz) { in MutexDestroy() argument
86 if ((flagz & MutexFlagLinkerInit) in MutexDestroy()
88 || ((flagz & MutexFlagNotStatic) && !s->IsFlagSet(MutexFlagNotStatic))) { in MutexDestroy()
142 void MutexPreLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz) { in MutexPreLock() argument
143 DPrintf("#%d: MutexPreLock %zx flagz=0x%x\n", thr->tid, addr, flagz); in MutexPreLock()
144 if (!(flagz & MutexFlagTryLock) && common_flags()->detect_deadlocks) { in MutexPreLock()
[all …]
Dtsan_interface_ann.cpp465 void __tsan_mutex_create(void *m, unsigned flagz) { in __tsan_mutex_create() argument
467 MutexCreate(thr, pc, (uptr)m, flagz & MutexCreationFlagMask); in __tsan_mutex_create()
471 void __tsan_mutex_destroy(void *m, unsigned flagz) { in __tsan_mutex_destroy() argument
473 MutexDestroy(thr, pc, (uptr)m, flagz); in __tsan_mutex_destroy()
477 void __tsan_mutex_pre_lock(void *m, unsigned flagz) { in __tsan_mutex_pre_lock() argument
479 if (!(flagz & MutexFlagTryLock)) { in __tsan_mutex_pre_lock()
480 if (flagz & MutexFlagReadLock) in __tsan_mutex_pre_lock()
490 void __tsan_mutex_post_lock(void *m, unsigned flagz, int rec) { in __tsan_mutex_post_lock() argument
494 if (!(flagz & MutexFlagTryLockFailed)) { in __tsan_mutex_post_lock()
495 if (flagz & MutexFlagReadLock) in __tsan_mutex_post_lock()
[all …]
Dtsan_sync.h94 void UpdateFlags(u32 flagz) { in UpdateFlags()
96 if (!(flagz & MutexCreationFlagMask)) in UpdateFlags()
103 atomic_store_relaxed(&flags, current | (flagz & MutexCreationFlagMask)); in UpdateFlags()
Dtsan_rtl.h794 void MutexCreate(ThreadState *thr, uptr pc, uptr addr, u32 flagz = 0);
795 void MutexDestroy(ThreadState *thr, uptr pc, uptr addr, u32 flagz = 0);
796 void MutexPreLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz = 0);
797 void MutexPostLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz = 0,
799 int MutexUnlock(ThreadState *thr, uptr pc, uptr addr, u32 flagz = 0);
800 void MutexPreReadLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz = 0);
801 void MutexPostReadLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz = 0);
Dtsan_interceptors_posix.cpp1265 u32 flagz = 0; in TSAN_INTERCEPTOR() local
1271 flagz |= MutexFlagWriteReentrant; in TSAN_INTERCEPTOR()
1273 MutexCreate(thr, pc, (uptr)m, flagz); in TSAN_INTERCEPTOR()