Home
last modified time | relevance | path

Searched refs:MemToShadow (Results 1 – 13 of 13) sorted by relevance

/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_shadow_test.cc59 CHECK(IsShadowMem(MemToShadow((uptr)&global))); in TEST()
60 CHECK(IsShadowMem(MemToShadow((uptr)&stack))); in TEST()
61 CHECK(IsShadowMem(MemToShadow((uptr)heap))); in TEST()
68 uptr s0 = MemToShadow((uptr)&data[0]); in TEST()
71 CHECK_EQ(s0, MemToShadow((uptr)&data[i])); in TEST()
73 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/compiler-rt/lib/tsan/rtl/
Dtsan_platform.h113 #define MemToShadow(addr) \ macro
119 #define MemToShadow(addr) \ macro
126 static const uptr kLinuxShadowBeg = MemToShadow(kLinuxAppMemBeg);
128 MemToShadow(kLinuxAppMemEnd) | 0xff;
Dtsan_interface_java.cc137 u64 *s = (u64*)MemToShadow(src); in __tsan_java_move()
138 u64 *d = (u64*)MemToShadow(dst); in __tsan_java_move()
139 u64 *send = (u64*)MemToShadow(src + size); in __tsan_java_move()
142 s = (u64*)MemToShadow(src + size) - 1; in __tsan_java_move()
143 d = (u64*)MemToShadow(dst + size) - 1; in __tsan_java_move()
144 send = (u64*)MemToShadow(src) - 1; in __tsan_java_move()
Dtsan_rtl.cc231 uptr shadow_beg = MemToShadow(addr); in DontNeedShadowFor()
232 uptr shadow_end = MemToShadow(addr + size); in DontNeedShadowFor()
240 MmapFixedNoReserve(MemToShadow(addr), size * kShadowMultiplier); in MapShadow()
714 u64 *shadow_mem = (u64*)MemToShadow(addr); in MemoryAccess()
820 u64 *p = (u64*)MemToShadow(addr); in MemoryRangeSet()
832 u64 *begin = (u64*)MemToShadow(addr); in MemoryRangeSet()
Dtsan_platform_linux.cc189 char *shadow_start = (char*)MemToShadow(start); in MapRodata()
190 char *shadow_end = (char*)MemToShadow(end); in MapRodata()
Dtsan_rtl_thread.cc322 u64 *shadow_mem = (u64*)MemToShadow(addr); in MemoryAccessRange()
/external/compiler-rt/lib/asan/
Dasan_poisoning.cc49 chunk = (u8*)MemToShadow(address); in ShadowSegmentEndpoint()
59 uptr shadow_beg = RoundUpTo(MemToShadow(p), page_size); in FlushUnneededASanShadowMemory()
60 uptr shadow_end = RoundDownTo(MemToShadow(p + size), page_size); in FlushUnneededASanShadowMemory()
161 uptr shadow_beg = MemToShadow(aligned_b); in __asan_region_is_poisoned()
162 uptr shadow_end = MemToShadow(aligned_e); in __asan_region_is_poisoned()
240 s8* shadow_end = (s8*)MemToShadow(addr + aligned_size); in PoisonAlignedStackMemory()
299 CHECK_EQ(*(u8*)MemToShadow(a), 0); in __sanitizer_annotate_contiguous_container()
312 *(u8*)MemToShadow(b1) = static_cast<u8>(new_mid - b1); in __sanitizer_annotate_contiguous_container()
Dasan_thread.cc214 u8 *shadow_ptr = (u8*)MemToShadow(aligned_addr); in GetFrameNameByAddr()
215 u8 *shadow_bottom = (u8*)MemToShadow(bottom); in GetFrameNameByAddr()
Dasan_mapping.h209 static inline uptr MemToShadow(uptr p) { in MemToShadow() function
Dasan_fake_stack.cc28 u64 *shadow = reinterpret_cast<u64*>(MemToShadow(ptr)); in SetShadow()
Dasan_report.cc151 uptr shadow_addr = MemToShadow(addr); in PrintShadowMemoryForAddress()
862 u8 *shadow_addr = (u8*)MemToShadow(addr); in __asan_report_error()
Dasan_allocator2.cc383 u8 *shadow = (u8*)MemToShadow(user_beg + size_rounded_down_to_granularity); in Allocate()
/external/compiler-rt/lib/asan/tests/
Dasan_noinst_test.cc122 uptr shadow = __asan::MemToShadow(ptr + i); in PrintShadow()