Home
last modified time | relevance | path

Searched refs:mset (Results 1 – 14 of 14) sorted by relevance

/llvm-project-15.0.7/compiler-rt/lib/tsan/tests/unit/
H A Dtsan_mutexset_test.cpp27 MutexSet mset; in TEST() local
33 mset.Del(1, true); in TEST()
41 mset.Del(3, true); in TEST()
48 MutexSet mset; in TEST() local
57 mset.Del(1, true); in TEST()
61 mset.Del(1, true); in TEST()
66 MutexSet mset; in TEST() local
76 MutexSet mset; in TEST() local
83 mset.Remove(1); in TEST()
89 MutexSet mset; in TEST() local
[all …]
H A Dtsan_trace_test.cpp94 MutexSet mset; in TRACE_TEST() local
105 CHECK_EQ(mset.Size(), 2); in TRACE_TEST()
106 CHECK_EQ(mset.Get(0).addr, 0x5001); in TRACE_TEST()
108 CHECK_EQ(mset.Get(0).write, true); in TRACE_TEST()
154 MutexSet mset; in TRACE_TEST() local
182 MutexSet mset; in TRACE_TEST() local
191 CHECK_EQ(mset.Size(), 2); in TRACE_TEST()
225 MutexSet mset; in TRACE_TEST() local
237 CHECK_EQ(mset.Size(), 2); in TRACE_TEST()
240 CHECK_EQ(mset.Get(0).count, 2); in TRACE_TEST()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/
H A Dtsan_rtl_report.cpp191 MutexSet::Desc d = mset->Get(i); in AddMemoryAccess()
194 mop->mset.PushBack(mtx); in AddMemoryAccess()
413 if (mset) in RestoreStack()
414 *mset = hdr->mset0; in RestoreStack()
432 if (mset) { in RestoreStack()
434 mset->Add(pc, true, epoch0 + i); in RestoreStack()
436 mset->Del(pc, true); in RestoreStack()
440 mset->Del(pc, false); in RestoreStack()
515 *pmset = *mset; in RestoreStackMatch()
563 DynamicMutexSet mset; in RestoreStack() local
[all …]
H A Dtsan_report.cpp45 : mset() { in ReportMop()
124 static void PrintMutexSet(Vector<ReportMopMutex> const& mset) { in PrintMutexSet() argument
125 for (uptr i = 0; i < mset.Size(); i++) { in PrintMutexSet()
128 const ReportMopMutex m = mset[i]; in PrintMutexSet()
130 Printf(i == mset.Size() - 1 ? ")" : ","); in PrintMutexSet()
162 PrintMutexSet(mop->mset); in PrintMop()
H A Dtsan_rtl_mutex.cpp131 thr->mset.Remove(mid); in MutexDestroy()
193 thr->mset.Add(s->GetId(), true, thr->fast_state.epoch()); in MutexPostLock()
238 thr->mset.Del(s->GetId(), true); in MutexUnlock()
291 thr->mset.Add(s->GetId(), false, thr->fast_state.epoch()); in MutexPostReadLock()
334 thr->mset.Del(mid, false); in MutexReadUnlock()
374 thr->mset.Del(s->GetId(), write); in MutexReadOrWriteUnlock()
H A Dtsan_report.h57 Vector<ReportMopMutex> mset; member
H A Dtsan_rtl.cpp676 for (uptr i = 0; i < thr->mset.Size(); i++) { in TraceSwitchPart()
677 MutexSet::Desc d = thr->mset.Get(i); in TraceSwitchPart()
697 hdr->mset0 = thr->mset; in TraceSwitch()
H A Dtsan_rtl.h168 MutexSet mset; member
352 const MutexSet *mset);
393 MutexSet *mset, uptr *tag = nullptr);
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl_report.cpp179 const MutexSet *mset) { in AddMemoryAccess() argument
194 for (uptr i = 0; i < mset->Size(); i++) { in AddMemoryAccess()
195 MutexSet::Desc d = mset->Get(i); in AddMemoryAccess()
198 mop->mset.PushBack(mtx); in AddMemoryAccess()
413 *pmset = *mset; in RestoreStackMatch()
478 DynamicMutexSet mset; in RestoreStack() local
493 mset->Reset(); in RestoreStack()
513 RestoreStackMatch(pstk, pmset, &stack, mset, ev_pc, &found); in RestoreStack()
572 mset->AddAddr(ev_addr, stack_id, is_write); in RestoreStack()
583 mset->DelAddr(ev_addr); in RestoreStack()
[all …]
H A Dtsan_report.cpp45 : mset() { in ReportMop()
124 static void PrintMutexSet(Vector<ReportMopMutex> const& mset) { in PrintMutexSet() argument
125 for (uptr i = 0; i < mset.Size(); i++) { in PrintMutexSet()
128 const ReportMopMutex m = mset[i]; in PrintMutexSet()
130 Printf(i == mset.Size() - 1 ? ")" : ","); in PrintMutexSet()
162 PrintMutexSet(mop->mset); in PrintMop()
H A Dtsan_rtl_mutex.cpp77 thr->mset.AddAddr(addr, stack_id, write); in RecordMutexLock()
83 thr->mset.DelAddr(addr); in RecordMutexUnlock()
136 thr->mset.DelAddr(addr, true); in MutexDestroy()
568 DynamicMutexSet mset; in ReportDestroyLocked() local
571 0, kAccessWrite, &tid, &trace, mset, &tag)) in ReportDestroyLocked()
H A Dtsan_report.h57 Vector<ReportMopMutex> mset; member
H A Dtsan_rtl.h197 MutexSet mset; member
408 StackTrace stack, const MutexSet *mset);
H A Dtsan_rtl.cpp993 for (uptr i = 0; i < thr->mset.Size(); i++) { in TraceSwitchPartImpl()
994 MutexSet::Desc d = thr->mset.Get(i); in TraceSwitchPartImpl()