Searched refs:kShadowCell (Results 1 – 10 of 10) sorted by relevance
/external/compiler-rt/lib/tsan/tests/unit/ |
D | tsan_shadow_test.cc | 70 for (unsigned i = 1; i < kShadowCell; i++) in TEST() 72 for (unsigned i = kShadowCell; i < 2*kShadowCell; i++) in TEST() 74 for (unsigned i = 2*kShadowCell; i < 3*kShadowCell; i++) in TEST()
|
/external/llvm-project/compiler-rt/lib/tsan/tests/unit/ |
D | tsan_shadow_test.cpp | 69 for (unsigned i = 1; i < kShadowCell; i++) in TEST() 71 for (unsigned i = kShadowCell; i < 2*kShadowCell; i++) in TEST() 73 for (unsigned i = 2*kShadowCell; i < 3*kShadowCell; i++) in TEST()
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_rtl_thread.cc | 367 bool unaligned = (addr % kShadowCell) != 0; in MemoryAccessRange() 370 for (; addr % kShadowCell && size; addr++, size--) { in MemoryAccessRange() 374 cur.SetAddr0AndSizeLog(addr & (kShadowCell - 1), kAccessSizeLog); in MemoryAccessRange() 381 for (; size >= kShadowCell; addr += kShadowCell, size -= kShadowCell) { in MemoryAccessRange() 395 cur.SetAddr0AndSizeLog(addr & (kShadowCell - 1), kAccessSizeLog); in MemoryAccessRange()
|
D | tsan_defs.h | 66 const uptr kShadowCell = 8; variable 72 const uptr kShadowMultiplier = kShadowSize * kShadowCnt / kShadowCell;
|
D | tsan_rtl.cc | 301 CHECK_EQ(p & ~(kShadowCell - 1), ShadowToMem(s)); in CheckShadowMapping() 834 uptr offset = addr % kShadowCell; in MemoryRangeSet() 836 offset = kShadowCell - offset; in MemoryRangeSet() 849 size = (size + (kShadowCell - 1)) & ~(kShadowCell - 1); in MemoryRangeSet() 855 CHECK(IsShadowMem((uptr)(p + size * kShadowCnt / kShadowCell - 1))); in MemoryRangeSet() 857 for (uptr i = 0; i < size / kShadowCell * kShadowCnt;) { in MemoryRangeSet() 866 u64 *end = begin + size / kShadowCell * kShadowCnt; in MemoryRangeSet()
|
D | tsan_platform.h | 587 return (((x) & ~(Mapping::kAppMemMsk | (kShadowCell - 1))) in MemToShadowImpl() 591 return ((x & ~(kShadowCell - 1)) * kShadowCnt) | Mapping::kShadowBeg; in MemToShadowImpl() 593 return ((x & ~(kShadowCell - 1)) * kShadowCnt) + Mapping::kShadowBeg; in MemToShadowImpl()
|
/external/llvm-project/compiler-rt/lib/tsan/rtl/ |
D | tsan_rtl_thread.cpp | 392 bool unaligned = (addr % kShadowCell) != 0; in MemoryAccessRange() 395 for (; addr % kShadowCell && size; addr++, size--) { in MemoryAccessRange() 399 cur.SetAddr0AndSizeLog(addr & (kShadowCell - 1), kAccessSizeLog); in MemoryAccessRange() 406 for (; size >= kShadowCell; addr += kShadowCell, size -= kShadowCell) { in MemoryAccessRange() 420 cur.SetAddr0AndSizeLog(addr & (kShadowCell - 1), kAccessSizeLog); in MemoryAccessRange()
|
D | tsan_rtl.cpp | 316 for (int x = -(int)kShadowCell; x <= (int)kShadowCell; x += kShadowCell) { in CheckShadowMapping() 317 const uptr p = RoundDown(p0 + x, kShadowCell); in CheckShadowMapping() 921 uptr offset = addr % kShadowCell; in MemoryRangeSet() 923 offset = kShadowCell - offset; in MemoryRangeSet() 936 size = (size + (kShadowCell - 1)) & ~(kShadowCell - 1); in MemoryRangeSet() 941 CHECK(IsShadowMem((uptr)(p + size * kShadowCnt / kShadowCell - 1))); in MemoryRangeSet() 943 for (uptr i = 0; i < size / kShadowCell * kShadowCnt;) { in MemoryRangeSet() 952 u64 *end = begin + size / kShadowCell * kShadowCnt; in MemoryRangeSet()
|
D | tsan_defs.h | 80 const uptr kShadowCell = 8; variable 86 const uptr kShadowMultiplier = kShadowSize * kShadowCnt / kShadowCell;
|
D | tsan_platform.h | 824 return (((x) & ~(Mapping::kAppMemMsk | (kShadowCell - 1))) in MemToShadowImpl() 828 return ((x & ~(kShadowCell - 1)) * kShadowCnt) | Mapping::kShadowBeg; in MemToShadowImpl() 830 return ((x & ~(kShadowCell - 1)) * kShadowCnt) + Mapping::kShadowBeg; in MemToShadowImpl()
|