Searched refs:mset (Results 1 - 20 of 20) sorted by relevance

/netbsd-current/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/unit/
H A Dtsan_mutexset_test.cc18 static void Expect(const MutexSet &mset, uptr i, u64 id, bool write, u64 epoch, argument
20 MutexSet::Desc d = mset.Get(i);
28 MutexSet mset; local
29 EXPECT_EQ(mset.Size(), (uptr)0);
31 mset.Add(1, true, 2);
32 EXPECT_EQ(mset.Size(), (uptr)1);
33 Expect(mset, 0, 1, true, 2, 1);
34 mset.Del(1, true);
35 EXPECT_EQ(mset.Size(), (uptr)0);
37 mset
49 MutexSet mset; local
67 MutexSet mset; local
77 MutexSet mset; local
90 MutexSet mset; local
109 MutexSet mset; local
[all...]
/netbsd-current/external/gpl3/gcc/dist/libsanitizer/tsan/
H A Dtsan_rtl_report.cpp178 StackTrace stack, const MutexSet *mset) {
190 for (uptr i = 0; i < mset->Size(); i++) {
191 MutexSet::Desc d = mset->Get(i);
194 mop->mset.PushBack(mtx);
391 MutexSet *mset, uptr *tag) {
413 if (mset)
414 *mset = hdr->mset0;
432 if (mset) {
434 mset->Add(pc, true, epoch0 + i);
436 mset
177 AddMemoryAccess(uptr addr, uptr external_tag, Shadow s, StackTrace stack, const MutexSet *mset) argument
390 RestoreStack(Tid tid, const u64 epoch, VarSizeStackTrace *stk, MutexSet *mset, uptr *tag) argument
511 RestoreStackMatch(VarSizeStackTrace *pstk, MutexSet *pmset, Vector<uptr> *stack, MutexSet *mset, uptr pc, bool *found) argument
563 DynamicMutexSet mset; local
[all...]
H A Dtsan_report.cpp45 : mset() {
124 static void PrintMutexSet(Vector<ReportMopMutex> const& mset) { argument
125 for (uptr i = 0; i < mset.Size(); i++) {
128 const ReportMopMutex m = mset[i];
130 Printf(i == mset.Size() - 1 ? ")" : ",");
162 PrintMutexSet(mop->mset);
H A Dtsan_report.h57 Vector<ReportMopMutex> mset; member in struct:__tsan::ReportMop
H A Dtsan_rtl_mutex.cpp131 thr->mset.Remove(mid);
193 thr->mset.Add(s->GetId(), true, thr->fast_state.epoch());
238 thr->mset.Del(s->GetId(), true);
291 thr->mset.Add(s->GetId(), false, thr->fast_state.epoch());
334 thr->mset.Del(mid, false);
374 thr->mset.Del(s->GetId(), write);
H A Dtsan_rtl.cpp630 for (uptr i = 0; i < thr->mset.Size(); i++) {
631 MutexSet::Desc d = thr->mset.Get(i);
651 hdr->mset0 = thr->mset;
H A Dtsan_rtl.h172 MutexSet mset; member in struct:__tsan::ThreadState
356 const MutexSet *mset);
397 MutexSet *mset, uptr *tag = nullptr);
/netbsd-current/external/bsd/file/dist/src/
H A Dapprentice.c1294 struct magic_entry_set *mset)
1297 if (mset[i].me == NULL || mset[i].count == mset[i].max) {
1300 size_t incr = mset[i].max + ALLOC_INCR;
1302 realloc(mset[i].me, sizeof(*mp) * incr))) ==
1307 (void)memset(&mp[mset[i].count], 0, sizeof(*mp) *
1309 mset[i].me = mp;
1310 mset[i].max = CAST(uint32_t, incr);
1311 assert(mset[
1293 addentry(struct magic_set *ms, struct magic_entry *me, struct magic_entry_set *mset) argument
1322 load_1(struct magic_set *ms, int action, const char *fn, int *errs, struct magic_entry_set *mset) argument
1522 struct magic_entry_set mset[MAGIC_SETS]; local
[all...]
/netbsd-current/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/
H A Dtsan_rtl_report.cc167 StackTrace stack, const MutexSet *mset) {
180 for (uptr i = 0; i < mset->Size(); i++) {
181 MutexSet::Desc d = mset->Get(i);
184 mop->mset.PushBack(mtx);
380 MutexSet *mset, uptr *tag) {
402 if (mset)
403 *mset = hdr->mset0;
421 if (mset) {
423 mset->Add(pc, true, epoch0 + i);
425 mset
166 AddMemoryAccess(uptr addr, uptr external_tag, Shadow s, StackTrace stack, const MutexSet *mset) argument
379 RestoreStack(int tid, const u64 epoch, VarSizeStackTrace *stk, MutexSet *mset, uptr *tag) argument
[all...]
H A Dtsan_report.h61 Vector<ReportMopMutex> mset; member in struct:__tsan::ReportMop
H A Dtsan_report.cc62 : mset() {
137 static void PrintMutexSet(Vector<ReportMopMutex> const& mset) { argument
138 for (uptr i = 0; i < mset.Size(); i++) {
141 const ReportMopMutex m = mset[i];
143 Printf(i == mset.Size() - 1 ? ")" : ",");
175 PrintMutexSet(mop->mset);
H A Dtsan_rtl_mutex.cc130 thr->mset.Remove(mid);
192 thr->mset.Add(s->GetId(), true, thr->fast_state.epoch());
239 thr->mset.Del(s->GetId(), true);
287 thr->mset.Add(s->GetId(), false, thr->fast_state.epoch());
332 thr->mset.Del(mid, false);
372 thr->mset.Del(s->GetId(), write);
H A Dtsan_rtl.h406 MutexSet mset; member in struct:__tsan::ThreadState
585 const MutexSet *mset);
625 MutexSet *mset, uptr *tag = nullptr);
H A Dtsan_rtl.cc566 hdr->mset0 = thr->mset;
/netbsd-current/external/gpl3/gcc.old/dist/libsanitizer/tsan/
H A Dtsan_rtl_report.cc165 StackTrace stack, const MutexSet *mset) {
178 for (uptr i = 0; i < mset->Size(); i++) {
179 MutexSet::Desc d = mset->Get(i);
182 mop->mset.PushBack(mtx);
378 MutexSet *mset, uptr *tag) {
400 if (mset)
401 *mset = hdr->mset0;
419 if (mset) {
421 mset->Add(pc, true, epoch0 + i);
423 mset
164 AddMemoryAccess(uptr addr, uptr external_tag, Shadow s, StackTrace stack, const MutexSet *mset) argument
377 RestoreStack(int tid, const u64 epoch, VarSizeStackTrace *stk, MutexSet *mset, uptr *tag) argument
[all...]
H A Dtsan_report.h59 Vector<ReportMopMutex> mset; member in struct:__tsan::ReportMop
H A Dtsan_report.cc60 : mset() {
135 static void PrintMutexSet(Vector<ReportMopMutex> const& mset) { argument
136 for (uptr i = 0; i < mset.Size(); i++) {
139 const ReportMopMutex m = mset[i];
141 Printf(i == mset.Size() - 1 ? ")" : ",");
173 PrintMutexSet(mop->mset);
H A Dtsan_rtl_mutex.cc128 thr->mset.Remove(mid);
190 thr->mset.Add(s->GetId(), true, thr->fast_state.epoch());
237 thr->mset.Del(s->GetId(), true);
285 thr->mset.Add(s->GetId(), false, thr->fast_state.epoch());
330 thr->mset.Del(mid, false);
370 thr->mset.Del(s->GetId(), write);
H A Dtsan_rtl.h402 MutexSet mset; member in struct:__tsan::ThreadState
581 const MutexSet *mset);
621 MutexSet *mset, uptr *tag = nullptr);
H A Dtsan_rtl.cc562 hdr->mset0 = thr->mset;

Completed in 155 milliseconds