Home
last modified time | relevance | path

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

/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_shadow_test.cc70 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/compiler-rt/lib/tsan/rtl/
Dtsan_rtl_thread.cc367 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()
Dtsan_defs.h66 const uptr kShadowCell = 8; variable
72 const uptr kShadowMultiplier = kShadowSize * kShadowCnt / kShadowCell;
Dtsan_rtl.cc301 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()
Dtsan_platform.h587 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()