/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/llvm-project/compiler-rt/lib/tsan/tests/unit/ |
D | tsan_shadow_test.cpp | 58 CHECK(IsShadowMem(MemToShadow((uptr)&global))); in TEST() 59 CHECK(IsShadowMem(MemToShadow((uptr)&stack))); in TEST() 60 CHECK(IsShadowMem(MemToShadow((uptr)heap))); in TEST() 67 uptr s0 = MemToShadow((uptr)&data[0]); in TEST() 70 CHECK_EQ(s0, MemToShadow((uptr)&data[i])); in TEST() 72 CHECK_EQ(s0 + kShadowSize*kShadowCnt, MemToShadow((uptr)&data[i])); in TEST() 74 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()
|
/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 | 81 ThreadState **fake_tls = (ThreadState **)MemToShadow(thread_identity); in cur_thread() 97 ThreadState **fake_tls = (ThreadState **)MemToShadow(thread_identity); in cur_thread_finalize()
|
D | tsan_platform.h | 599 uptr MemToShadow(uptr x) { in MemToShadow() function 655 if (s >= MemToShadow(Mapping::kLoAppMemBeg) in ShadowToMemImpl() 656 && s <= MemToShadow(Mapping::kLoAppMemEnd - 1)) in ShadowToMemImpl() 659 if (s >= MemToShadow(Mapping::kMidAppMemBeg) in ShadowToMemImpl() 660 && 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() 747 u64 *shadow_mem = (u64*)MemToShadow(addr); in MemoryAccess() 853 u64 *p = (u64*)MemToShadow(addr); in MemoryRangeSet() 865 u64 *begin = (u64*)MemToShadow(addr); in MemoryRangeSet()
|
D | tsan_platform_linux.cc | 189 char *shadow_start = (char*)MemToShadow(start); in MapRodata() 190 char *shadow_end = (char*)MemToShadow(end); in MapRodata()
|
/external/llvm-project/compiler-rt/lib/tsan/rtl/ |
D | tsan_interface_java.cpp | 136 u64 *s = (u64*)MemToShadow(src); in __tsan_java_move() 137 u64 *d = (u64*)MemToShadow(dst); in __tsan_java_move() 138 u64 *send = (u64*)MemToShadow(src + size); in __tsan_java_move() 141 s = (u64*)MemToShadow(src + size) - 1; in __tsan_java_move() 142 d = (u64*)MemToShadow(dst + size) - 1; in __tsan_java_move() 143 send = (u64*)MemToShadow(src) - 1; in __tsan_java_move()
|
D | tsan_rtl.cpp | 240 ReleaseMemoryPagesToOS(MemToShadow(addr), MemToShadow(addr + size)); in DontNeedShadowFor() 257 uptr shadow_begin = RoundDownTo((uptr)MemToShadow(addr), kPageSize); in MapShadow() 258 uptr shadow_end = RoundUpTo((uptr)MemToShadow(addr + size), kPageSize); in MapShadow() 320 const uptr s = MemToShadow(p); in CheckShadowMapping() 330 const uptr prev_s = MemToShadow(prev); in CheckShadowMapping() 834 u64 *shadow_mem = (u64*)MemToShadow(addr); in MemoryAccess() 939 u64 *p = (u64*)MemToShadow(addr); in MemoryRangeSet() 951 u64 *begin = (u64*)MemToShadow(addr); in MemoryRangeSet()
|
/external/llvm-project/compiler-rt/lib/asan/ |
D | asan_poisoning.cpp | 59 chunk = (u8*)MemToShadow(address); in ShadowSegmentEndpoint() 77 *(u8 *)MemToShadow(ptr) = in AsanPoisonOrUnpoisonIntraObjectRedzone() 83 *(u8*)MemToShadow(ptr) = poison ? kAsanIntraObjectRedzone : 0; in AsanPoisonOrUnpoisonIntraObjectRedzone() 190 uptr shadow_beg = MemToShadow(aligned_b); in __asan_region_is_poisoned() 191 uptr shadow_end = MemToShadow(aligned_e); in __asan_region_is_poisoned() 299 s8* shadow_end = (s8*)MemToShadow(addr + aligned_size); in PoisonAlignedStackMemory() 382 CHECK_EQ(*(u8*)MemToShadow(a), 0); in __sanitizer_annotate_contiguous_container() 395 *(u8*)MemToShadow(b1) = static_cast<u8>(new_mid - b1); in __sanitizer_annotate_contiguous_container()
|
D | asan_linux.cpp | 120 ReleaseMemoryPagesToOS(MemToShadow(p), MemToShadow(p + size)); in FlushUnneededASanShadowMemory()
|
D | asan_thread.cpp | 347 u8 *shadow_ptr = (u8*)MemToShadow(aligned_addr); in GetStackFrameAccessByAddr() 348 u8 *shadow_bottom = (u8*)MemToShadow(bottom); in GetStackFrameAccessByAddr() 388 u8 *shadow_ptr = (u8*)MemToShadow(aligned_addr); in GetStackVariableShadowStart() 389 u8 *shadow_bottom = (u8*)MemToShadow(bottom); in GetStackVariableShadowStart()
|
D | asan_rtems.cpp | 56 ReleaseMemoryPagesToOS(MemToShadow(p), MemToShadow(p + size)); in FlushUnneededASanShadowMemory()
|
D | asan_mac.cpp | 95 ReleaseMemoryPagesToOS(MemToShadow(p), MemToShadow(p + size)); in FlushUnneededASanShadowMemory()
|
D | asan_win.cpp | 197 ReleaseMemoryPagesToOS(MemToShadow(p), MemToShadow(p + size)); in FlushUnneededASanShadowMemory()
|
/external/llvm-project/compiler-rt/lib/hwasan/ |
D | hwasan_checks.h | 85 tag_t mem_tag = *(tag_t *)MemToShadow(ptr_raw); in CheckAddress() 101 tag_t *shadow_first = (tag_t *)MemToShadow(ptr_raw); in CheckAddressSized() 102 tag_t *shadow_last = (tag_t *)MemToShadow(ptr_raw + sz); in CheckAddressSized()
|
D | hwasan.cpp | 329 uptr shadow_first = MemToShadow(ptr_raw); in __hwasan_print_shadow() 330 uptr shadow_last = MemToShadow(ptr_raw + sz - 1); in __hwasan_print_shadow() 342 uptr shadow_first = MemToShadow(ptr_raw); in __hwasan_test_shadow() 343 uptr shadow_last = MemToShadow(ptr_raw + sz - 1); in __hwasan_test_shadow()
|
D | hwasan_linux.cpp | 166 kLowShadowEnd = MemToShadow(kLowMemEnd); in InitShadow() 171 kHighShadowEnd = MemToShadow(kHighMemEnd); in InitShadow() 172 kHighShadowStart = Max(kLowMemEnd, MemToShadow(kHighShadowEnd)) + 1; in InitShadow()
|
D | hwasan_mapping.h | 51 inline uptr MemToShadow(uptr untagged_addr) { in MemToShadow() function
|
D | hwasan_poisoning.cpp | 25 uptr shadow_start = MemToShadow(p); in TagMemoryAligned()
|
D | hwasan_report.cpp | 325 tag_t *tag_ptr = reinterpret_cast<tag_t*>(MemToShadow(untagged_addr)); in PrintAddressDescription() 509 tag_t *tag_ptr = reinterpret_cast<tag_t*>(MemToShadow(untagged_addr)); in ReportInvalidFree() 583 tag_t *tag_ptr = reinterpret_cast<tag_t*>(MemToShadow(untagged_addr)); in ReportTailOverwritten() 611 reinterpret_cast<tag_t *>(MemToShadow(untagged_addr + offset)); in ReportTagMismatch()
|
/external/compiler-rt/lib/cfi/ |
D | cfi.cc | 71 uint16_t *MemToShadow(uptr x, uptr shadow_base) { in MemToShadow() function 131 uint16_t *shadow_begin = MemToShadow(begin, shadow_); in AddUnchecked() 132 uint16_t *shadow_end = MemToShadow(end - 1, shadow_) + 1; in AddUnchecked() 144 uint16_t *s = MemToShadow(begin, shadow_); in Add() 145 uint16_t *s_end = MemToShadow(end - 1, shadow_) + 1; in Add()
|
/external/llvm-project/compiler-rt/lib/cfi/ |
D | cfi.cpp | 90 uint16_t *MemToShadow(uptr x, uptr shadow_base) { in MemToShadow() function 150 uint16_t *shadow_begin = MemToShadow(begin, shadow_); in AddUnchecked() 151 uint16_t *shadow_end = MemToShadow(end - 1, shadow_) + 1; in AddUnchecked() 167 uint16_t *s = MemToShadow(begin, shadow_); in Add() 168 uint16_t *s_end = MemToShadow(end - 1, shadow_) + 1; in Add()
|
/external/llvm-project/compiler-rt/lib/memprof/ |
D | memprof_mapping.h | 91 inline uptr MemToShadow(uptr p) { in MemToShadow() function
|