Home
last modified time | relevance | path

Searched refs:kShadowCnt (Results 1 – 10 of 10) sorted by relevance

/external/compiler-rt/lib/tsan/rtl/
Dtsan_platform.h588 ^ Mapping::kAppMemXor) * kShadowCnt; in MemToShadowImpl()
591 return ((x & ~(kShadowCell - 1)) * kShadowCnt) | Mapping::kShadowBeg; in MemToShadowImpl()
593 return ((x & ~(kShadowCell - 1)) * kShadowCnt) + Mapping::kShadowBeg; in MemToShadowImpl()
657 return (s / kShadowCnt) ^ Mapping::kAppMemXor; in ShadowToMemImpl()
661 return ((s / kShadowCnt) ^ Mapping::kAppMemXor) + Mapping::kMidShadowOff; in ShadowToMemImpl()
664 return ((s / kShadowCnt) ^ Mapping::kAppMemXor) | Mapping::kAppMemMsk; in ShadowToMemImpl()
667 return (s & ~Mapping::kShadowBeg) / kShadowCnt; in ShadowToMemImpl()
669 return (s - Mapping::kShadowBeg) / kShadowCnt; in ShadowToMemImpl()
Dtsan_defs.h63 const uptr kShadowCnt = 4; variable
72 const uptr kShadowMultiplier = kShadowSize * kShadowCnt / kShadowCell;
Dtsan_rtl_thread.cc343 if (!IsShadowMem((uptr)(shadow_mem + size * kShadowCnt / 8 - 1))) { in MemoryAccessRange()
345 shadow_mem + size * kShadowCnt / 8 - 1, addr + size - 1); in MemoryAccessRange()
346 DCHECK(IsShadowMem((uptr)(shadow_mem + size * kShadowCnt / 8 - 1))); in MemoryAccessRange()
379 shadow_mem += kShadowCnt; in MemoryAccessRange()
388 shadow_mem += kShadowCnt; in MemoryAccessRange()
Dtsan_rtl.cc628 StoreShadow(shadow_mem + (cur.epoch() % kShadowCnt), store_word); in MemoryAccessImpl1()
660 for (uptr i = 0; i < kShadowCnt; i++) { in ContainsSameAccessSlow()
855 CHECK(IsShadowMem((uptr)(p + size * kShadowCnt / kShadowCell - 1))); in MemoryRangeSet()
857 for (uptr i = 0; i < size / kShadowCell * kShadowCnt;) { in MemoryRangeSet()
859 for (uptr j = 1; j < kShadowCnt; j++) in MemoryRangeSet()
866 u64 *end = begin + size / kShadowCell * kShadowCnt; in MemoryRangeSet()
871 for (uptr j = 1; j < kShadowCnt; j++) in MemoryRangeSet()
882 for (uptr j = 1; j < kShadowCnt; j++) in MemoryRangeSet()
/external/llvm-project/compiler-rt/lib/tsan/rtl/
Dtsan_platform.h825 ^ Mapping::kAppMemXor) * kShadowCnt; in MemToShadowImpl()
828 return ((x & ~(kShadowCell - 1)) * kShadowCnt) | Mapping::kShadowBeg; in MemToShadowImpl()
830 return ((x & ~(kShadowCell - 1)) * kShadowCnt) + Mapping::kShadowBeg; in MemToShadowImpl()
913 uptr p = (s / kShadowCnt) ^ Mapping::kAppMemXor; in ShadowToMemImpl()
918 p = ((s / kShadowCnt) ^ Mapping::kAppMemXor) + in ShadowToMemImpl()
924 return ((s / kShadowCnt) ^ Mapping::kAppMemXor) | Mapping::kAppMemMsk; in ShadowToMemImpl()
927 return (s & ~Mapping::kShadowBeg) / kShadowCnt; in ShadowToMemImpl()
929 return (s - Mapping::kShadowBeg) / kShadowCnt; in ShadowToMemImpl()
Dtsan_defs.h77 const uptr kShadowCnt = 4; variable
86 const uptr kShadowMultiplier = kShadowSize * kShadowCnt / kShadowCell;
Dtsan_rtl_thread.cpp367 if (!IsShadowMem((uptr)(shadow_mem + size * kShadowCnt / 8 - 1))) { in MemoryAccessRange()
369 shadow_mem + size * kShadowCnt / 8 - 1, addr + size - 1); in MemoryAccessRange()
370 DCHECK(IsShadowMem((uptr)(shadow_mem + size * kShadowCnt / 8 - 1))); in MemoryAccessRange()
404 shadow_mem += kShadowCnt; in MemoryAccessRange()
413 shadow_mem += kShadowCnt; in MemoryAccessRange()
Dtsan_rtl.cpp715 StoreShadow(shadow_mem + (cur.epoch() % kShadowCnt), store_word); in MemoryAccessImpl1()
747 for (uptr i = 0; i < kShadowCnt; i++) { in ContainsSameAccessSlow()
941 CHECK(IsShadowMem((uptr)(p + size * kShadowCnt / kShadowCell - 1))); in MemoryRangeSet()
943 for (uptr i = 0; i < size / kShadowCell * kShadowCnt;) { in MemoryRangeSet()
945 for (uptr j = 1; j < kShadowCnt; j++) in MemoryRangeSet()
952 u64 *end = begin + size / kShadowCell * kShadowCnt; in MemoryRangeSet()
957 for (uptr j = 1; j < kShadowCnt; j++) in MemoryRangeSet()
969 for (uptr j = 1; j < kShadowCnt; j++) in MemoryRangeSet()
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_shadow_test.cc73 CHECK_EQ(s0 + kShadowSize*kShadowCnt, MemToShadow((uptr)&data[i])); in TEST()
75 CHECK_EQ(s0 + 2*kShadowSize*kShadowCnt, MemToShadow((uptr)&data[i])); in TEST()
/external/llvm-project/compiler-rt/lib/tsan/tests/unit/
Dtsan_shadow_test.cpp72 CHECK_EQ(s0 + kShadowSize*kShadowCnt, MemToShadow((uptr)&data[i])); in TEST()
74 CHECK_EQ(s0 + 2*kShadowSize*kShadowCnt, MemToShadow((uptr)&data[i])); in TEST()