Searched refs:MemToShadow (Results 1 – 16 of 16) sorted by relevance
/external/compiler-rt/lib/tsan/tests/unit/ |
D | tsan_shadow_test.cc | 59 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/asan/ |
D | asan_poisoning.cc | 60 chunk = (u8*)MemToShadow(address); in ShadowSegmentEndpoint() 70 uptr shadow_beg = RoundUpTo(MemToShadow(p), page_size); in FlushUnneededASanShadowMemory() 71 uptr shadow_end = RoundDownTo(MemToShadow(p + size), page_size); in FlushUnneededASanShadowMemory() 87 *(u8 *)MemToShadow(ptr) = in AsanPoisonOrUnpoisonIntraObjectRedzone() 93 *(u8*)MemToShadow(ptr) = poison ? kAsanIntraObjectRedzone : 0; in AsanPoisonOrUnpoisonIntraObjectRedzone() 193 uptr shadow_beg = MemToShadow(aligned_b); in __asan_region_is_poisoned() 194 uptr shadow_end = MemToShadow(aligned_e); in __asan_region_is_poisoned() 302 s8* shadow_end = (s8*)MemToShadow(addr + aligned_size); in PoisonAlignedStackMemory() 361 CHECK_EQ(*(u8*)MemToShadow(a), 0); in __sanitizer_annotate_contiguous_container() 374 *(u8*)MemToShadow(b1) = static_cast<u8>(new_mid - b1); in __sanitizer_annotate_contiguous_container()
|
D | asan_fake_stack.cc | 32 u64 *shadow = reinterpret_cast<u64*>(MemToShadow(ptr)); in SetShadow() 280 REAL(memset)(reinterpret_cast<void*>(MemToShadow(top)), 0, in __asan_allocas_unpoison()
|
D | asan_thread.cc | 227 u8 *shadow_ptr = (u8*)MemToShadow(aligned_addr); in GetStackFrameAccessByAddr() 228 u8 *shadow_bottom = (u8*)MemToShadow(bottom); in GetStackFrameAccessByAddr()
|
D | asan_mapping.h | 253 static inline uptr MemToShadow(uptr p) { in MemToShadow() function
|
D | asan_report.cc | 207 uptr shadow_addr = MemToShadow(addr); in PrintShadowMemoryForAddress() 1036 u8 *shadow_addr = (u8*)MemToShadow(addr); in ReportGenericError()
|
D | asan_allocator.cc | 432 (u8 *)MemToShadow(user_beg + size_rounded_down_to_granularity); in Allocate()
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_interface_java.cc | 137 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()
|
D | tsan_platform_mac.cc | 82 fake_tls = (ThreadState **)MemToShadow(thread_identity); in cur_thread() 95 ThreadState **fake_tls = (ThreadState **)MemToShadow(thread_identity); in cur_thread_finalize()
|
D | tsan_platform.h | 595 uptr MemToShadow(uptr x) { in MemToShadow() function 651 if (s >= MemToShadow(Mapping::kLoAppMemBeg) in ShadowToMemImpl() 652 && s <= MemToShadow(Mapping::kLoAppMemEnd - 1)) in ShadowToMemImpl() 655 if (s >= MemToShadow(Mapping::kMidAppMemBeg) in ShadowToMemImpl() 656 && s <= MemToShadow(Mapping::kMidAppMemEnd - 1)) in ShadowToMemImpl()
|
D | tsan_rtl.cc | 236 uptr shadow_beg = MemToShadow(addr); in DontNeedShadowFor() 237 uptr shadow_end = MemToShadow(addr + size); in DontNeedShadowFor() 245 MmapFixedNoReserve(MemToShadow(addr), size * kShadowMultiplier, "shadow"); in MapShadow() 296 const uptr s = MemToShadow(p); in CheckShadowMapping() 739 u64 *shadow_mem = (u64*)MemToShadow(addr); in MemoryAccess() 845 u64 *p = (u64*)MemToShadow(addr); in MemoryRangeSet() 857 u64 *begin = (u64*)MemToShadow(addr); in MemoryRangeSet()
|
D | tsan_platform_linux.cc | 187 char *shadow_start = (char*)MemToShadow(start); in MapRodata() 188 char *shadow_end = (char*)MemToShadow(end); in MapRodata()
|
D | tsan_platform_posix.cc | 74 NoHugePagesInRegion(MemToShadow(kMadviseRangeBeg), in InitializeShadowMemory()
|
D | tsan_rtl_thread.cc | 337 u64 *shadow_mem = (u64*)MemToShadow(addr); in MemoryAccessRange()
|
D | tsan_interceptors.cc | 2225 return IsAppMem(addr) && *(u64*)MemToShadow(addr) != kShadowRodata; in IsAppNotRodata()
|
/external/compiler-rt/lib/asan/tests/ |
D | asan_noinst_test.cc | 116 uptr shadow = __asan::MemToShadow(ptr + i); in PrintShadow()
|