/external/llvm-project/compiler-rt/lib/memprof/ |
D | memprof_mapping.h | 39 #define MEM_TO_SHADOW(mem) \ macro 46 #define kLowShadowEnd (MEM_TO_SHADOW(kLowMemEnd) + SHADOW_ENTRY_SIZE - 1) 48 #define kHighMemBeg (MEM_TO_SHADOW(kHighMemEnd) + 1 + SHADOW_ENTRY_SIZE - 1) 50 #define kHighShadowBeg MEM_TO_SHADOW(kHighMemBeg) 51 #define kHighShadowEnd (MEM_TO_SHADOW(kHighMemEnd) + SHADOW_ENTRY_SIZE - 1) 93 return MEM_TO_SHADOW(p); in MemToShadow() 107 u64 *shadow_address = (u64 *)MEM_TO_SHADOW(a); in RecordAccess()
|
D | memprof_rtl.cpp | 130 Printf("MemToShadow(shadow): %p %p", (void *)MEM_TO_SHADOW(kLowShadowBeg), in PrintAddressSpaceLayout() 131 (void *)MEM_TO_SHADOW(kLowShadowEnd)); in PrintAddressSpaceLayout() 133 Printf(" %p %p", (void *)MEM_TO_SHADOW(kHighShadowBeg), in PrintAddressSpaceLayout() 134 (void *)MEM_TO_SHADOW(kHighShadowEnd)); in PrintAddressSpaceLayout()
|
D | memprof_shadow_setup.cpp | 25 uptr GapShadowBeg = RoundDownTo(MEM_TO_SHADOW(addr), GetPageSizeCached()); in ProtectGap() 27 RoundUpTo(MEM_TO_SHADOW(addr + size), GetPageSizeCached()) - 1; in ProtectGap()
|
D | memprof_allocator.cpp | 409 u64 *shadow = (u64 *)MEM_TO_SHADOW(p); in GetShadowCount() 410 u64 *shadow_end = (u64 *)MEM_TO_SHADOW(p + size); in GetShadowCount() 424 uptr shadow_beg = MEM_TO_SHADOW(addr); in ClearShadow() 425 uptr shadow_end = MEM_TO_SHADOW(addr + size - SHADOW_GRANULARITY) + 1; in ClearShadow()
|
/external/compiler-rt/lib/asan/ |
D | asan_mapping.h | 193 #define MEM_TO_SHADOW(mem) (((mem) >> SHADOW_SCALE) + (SHADOW_OFFSET)) macro 200 #define kLowShadowEnd MEM_TO_SHADOW(kLowMemEnd) 202 #define kHighMemBeg (MEM_TO_SHADOW(kHighMemEnd) + 1) 204 #define kHighShadowBeg MEM_TO_SHADOW(kHighMemBeg) 205 #define kHighShadowEnd MEM_TO_SHADOW(kHighMemEnd) 207 # define kMidShadowBeg MEM_TO_SHADOW(kMidMemBeg) 208 # define kMidShadowEnd MEM_TO_SHADOW(kMidMemEnd) 280 return MEM_TO_SHADOW(p); in MemToShadow() 321 u8 *shadow_address = (u8*)MEM_TO_SHADOW(a); in AddressIsPoisoned()
|
D | asan_poisoning.h | 42 uptr shadow_beg = MEM_TO_SHADOW(aligned_beg); in FastPoisonShadow() 43 uptr shadow_end = MEM_TO_SHADOW( in FastPoisonShadow() 76 u8 *shadow = (u8*)MEM_TO_SHADOW(aligned_addr); in FastPoisonShadowPartialRightRedzone()
|
D | asan_rtl.cc | 161 uptr sp = MEM_TO_SHADOW(addr); \ in ASAN_REPORT_ERROR_N() 378 (void*)MEM_TO_SHADOW(kLowShadowBeg), in PrintAddressSpaceLayout() 379 (void*)MEM_TO_SHADOW(kLowShadowEnd), in PrintAddressSpaceLayout() 380 (void*)MEM_TO_SHADOW(kHighShadowBeg), in PrintAddressSpaceLayout() 381 (void*)MEM_TO_SHADOW(kHighShadowEnd)); in PrintAddressSpaceLayout() 384 (void*)MEM_TO_SHADOW(kMidShadowBeg), in PrintAddressSpaceLayout() 385 (void*)MEM_TO_SHADOW(kMidShadowEnd)); in PrintAddressSpaceLayout()
|
D | asan_poisoning.cc | 266 uptr s = MEM_TO_SHADOW(p); in __asan_poison_cxx_array_cookie() 274 uptr s = MEM_TO_SHADOW(reinterpret_cast<uptr>(p)); in __asan_load_cxx_array_cookie()
|
/external/llvm-project/compiler-rt/lib/asan/ |
D | asan_mapping.h | 293 #define MEM_TO_SHADOW(mem) (((mem) >> SHADOW_SCALE) + (SHADOW_OFFSET)) macro 299 #define kLowShadowEnd MEM_TO_SHADOW(kLowMemEnd) 301 #define kHighMemBeg (MEM_TO_SHADOW(kHighMemEnd) + 1) 303 #define kHighShadowBeg MEM_TO_SHADOW(kHighMemBeg) 304 #define kHighShadowEnd MEM_TO_SHADOW(kHighMemEnd) 306 # define kMidShadowBeg MEM_TO_SHADOW(kMidMemBeg) 307 # define kMidShadowEnd MEM_TO_SHADOW(kMidMemEnd) 388 return MEM_TO_SHADOW(p); in MemToShadow() 406 u8 *shadow_address = (u8*)MEM_TO_SHADOW(a); in AddressIsPoisoned()
|
D | asan_mapping_sparc64.h | 28 #define MEM_TO_SHADOW(mem) \ macro 35 #define kLowShadowEnd MEM_TO_SHADOW(kLowMemEnd) 42 #define kHighShadowBeg MEM_TO_SHADOW(kHighMemBeg) 43 #define kHighShadowEnd MEM_TO_SHADOW(kHighMemEnd)
|
D | asan_poisoning.h | 46 uptr shadow_beg = MEM_TO_SHADOW(aligned_beg); in FastPoisonShadow() 47 uptr shadow_end = MEM_TO_SHADOW( in FastPoisonShadow() 83 u8 *shadow = (u8*)MEM_TO_SHADOW(aligned_addr); in FastPoisonShadowPartialRightRedzone()
|
D | asan_rtl.cpp | 152 uptr sp = MEM_TO_SHADOW(addr); \ 355 (void*)MEM_TO_SHADOW(kLowShadowBeg), in PrintAddressSpaceLayout() 356 (void*)MEM_TO_SHADOW(kLowShadowEnd)); in PrintAddressSpaceLayout() 359 (void*)MEM_TO_SHADOW(kHighShadowBeg), in PrintAddressSpaceLayout() 360 (void*)MEM_TO_SHADOW(kHighShadowEnd)); in PrintAddressSpaceLayout() 364 (void*)MEM_TO_SHADOW(kMidShadowBeg), in PrintAddressSpaceLayout() 365 (void*)MEM_TO_SHADOW(kMidShadowEnd)); in PrintAddressSpaceLayout()
|
D | asan_mapping_myriad.h | 17 #define MEM_TO_SHADOW(mem) \ macro 24 #define kLowShadowEnd MEM_TO_SHADOW(kLowMemEnd)
|
D | asan_shadow_setup.cpp | 29 uptr GapShadowBeg = RoundDownTo(MEM_TO_SHADOW(addr), GetPageSizeCached()); in ProtectGap() 31 RoundUpTo(MEM_TO_SHADOW(addr + size), GetPageSizeCached()) - 1; in ProtectGap()
|
D | asan_rtems.cpp | 33 uptr shadow_end = MEM_TO_SHADOW(kMyriadMemoryEnd32); in ResetShadowMemory() 34 uptr gap_start = MEM_TO_SHADOW(shadow_start); in ResetShadowMemory() 35 uptr gap_end = MEM_TO_SHADOW(shadow_end); in ResetShadowMemory()
|
D | asan_poisoning.cpp | 263 uptr s = MEM_TO_SHADOW(p); in __asan_poison_cxx_array_cookie() 271 uptr s = MEM_TO_SHADOW(reinterpret_cast<uptr>(p)); in __asan_load_cxx_array_cookie()
|
/external/compiler-rt/lib/msan/ |
D | msan_poisoning.cc | 27 unsigned char *s = (unsigned char *)MEM_TO_SHADOW(addr); in GetOriginIfPoisoned() 35 uptr dst_s = MEM_TO_SHADOW(addr); in SetOriginIfPoisoned() 78 u32 *src_s = (u32 *)MEM_TO_SHADOW(s); in CopyOrigin() 103 REAL(memmove)((void *)MEM_TO_SHADOW((uptr)dst), in MoveShadowAndOrigin() 104 (void *)MEM_TO_SHADOW((uptr)src), size); in MoveShadowAndOrigin() 112 REAL(memcpy)((void *)MEM_TO_SHADOW((uptr)dst), in CopyShadowAndOrigin() 113 (void *)MEM_TO_SHADOW((uptr)src), size); in CopyShadowAndOrigin() 124 uptr shadow_beg = MEM_TO_SHADOW(ptr); in SetShadow()
|
D | msan_linux.cc | 89 CHECK(MEM_IS_SHADOW(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity() 91 CHECK_EQ(MEM_TO_ORIGIN(addr), SHADOW_TO_ORIGIN(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity() 94 CHECK(MEM_IS_SHADOW(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity() 96 CHECK_EQ(MEM_TO_ORIGIN(addr), SHADOW_TO_ORIGIN(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity() 99 CHECK(MEM_IS_SHADOW(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity() 101 CHECK_EQ(MEM_TO_ORIGIN(addr), SHADOW_TO_ORIGIN(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity()
|
D | msan.h | 52 #define MEM_TO_SHADOW(mem) (((uptr)(mem)) & ~0x4000000000ULL) macro 107 # define MEM_TO_SHADOW(mem) ((uptr)mem ^ 0x6000000000ULL) macro 126 #define MEM_TO_SHADOW(mem) (LINEARIZE_MEM((mem)) + 0x080000000000ULL) macro 147 #define MEM_TO_SHADOW(mem) (LINEARIZE_MEM((mem)) + 0x100000000000ULL) macro 162 #define MEM_TO_SHADOW(mem) (((uptr)(mem)) & ~0x400000000000ULL) macro 183 #define MEM_TO_SHADOW(mem) (((uptr)(mem)) ^ 0x500000000000ULL) macro 193 #define MEM_TO_ORIGIN(mem) (SHADOW_TO_ORIGIN(MEM_TO_SHADOW((mem))))
|
D | msan.cc | 465 unsigned char *s = (unsigned char*)MEM_TO_SHADOW(x); in __msan_dump_shadow() 473 unsigned char *s = (unsigned char *)MEM_TO_SHADOW((uptr)x); in __msan_test_shadow() 511 internal_memcpy((void*)MEM_TO_SHADOW((uptr)data), shadow, size); in __msan_partial_poison() 586 *(uu16 *)&__msan_retval_tls[0] = *(uu16 *)MEM_TO_SHADOW((uptr)p); in __sanitizer_unaligned_load16() 592 *(uu32 *)&__msan_retval_tls[0] = *(uu32 *)MEM_TO_SHADOW((uptr)p); in __sanitizer_unaligned_load32() 598 __msan_retval_tls[0] = *(uu64 *)MEM_TO_SHADOW((uptr)p); in __sanitizer_unaligned_load64() 605 *(uu16 *)MEM_TO_SHADOW((uptr)p) = s; in __sanitizer_unaligned_store16() 613 *(uu32 *)MEM_TO_SHADOW((uptr)p) = s; in __sanitizer_unaligned_store32() 621 *(uu64 *)MEM_TO_SHADOW((uptr)p) = s; in __sanitizer_unaligned_store64()
|
/external/llvm-project/compiler-rt/lib/msan/ |
D | msan_poisoning.cpp | 26 unsigned char *s = (unsigned char *)MEM_TO_SHADOW(addr); in GetOriginIfPoisoned() 34 uptr dst_s = MEM_TO_SHADOW(addr); in SetOriginIfPoisoned() 77 u32 *src_s = (u32 *)MEM_TO_SHADOW(s); in CopyOrigin() 102 REAL(memmove)((void *)MEM_TO_SHADOW((uptr)dst), in MoveShadowAndOrigin() 103 (void *)MEM_TO_SHADOW((uptr)src), size); in MoveShadowAndOrigin() 111 REAL(memcpy)((void *)MEM_TO_SHADOW((uptr)dst), in CopyShadowAndOrigin() 112 (void *)MEM_TO_SHADOW((uptr)src), size); in CopyShadowAndOrigin() 123 uptr shadow_beg = MEM_TO_SHADOW(ptr); in SetShadow()
|
D | msan_linux.cpp | 90 CHECK(MEM_IS_SHADOW(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity() 92 CHECK_EQ(MEM_TO_ORIGIN(addr), SHADOW_TO_ORIGIN(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity() 95 CHECK(MEM_IS_SHADOW(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity() 97 CHECK_EQ(MEM_TO_ORIGIN(addr), SHADOW_TO_ORIGIN(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity() 100 CHECK(MEM_IS_SHADOW(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity() 102 CHECK_EQ(MEM_TO_ORIGIN(addr), SHADOW_TO_ORIGIN(MEM_TO_SHADOW(addr))); in CheckMemoryLayoutSanity()
|
D | msan.h | 63 #define MEM_TO_SHADOW(mem) (((uptr)(mem)) ^ 0x8000000000ULL) macro 158 # define MEM_TO_SHADOW(mem) ((uptr)mem ^ 0x6000000000ULL) macro 181 #define MEM_TO_SHADOW(mem) (LINEARIZE_MEM((mem)) + 0x080000000000ULL) macro 194 #define MEM_TO_SHADOW(mem) \ macro 216 #define MEM_TO_SHADOW(mem) (LINEARIZE_MEM((mem)) + 0x100000000000ULL) macro 231 #define MEM_TO_SHADOW(mem) (((uptr)(mem)) & ~0x400000000000ULL) macro 252 #define MEM_TO_SHADOW(mem) (((uptr)(mem)) ^ 0x500000000000ULL) macro 262 #define MEM_TO_ORIGIN(mem) (SHADOW_TO_ORIGIN(MEM_TO_SHADOW((mem))))
|
D | msan.cpp | 520 unsigned char *s = (unsigned char*)MEM_TO_SHADOW(x); in __msan_dump_shadow() 528 unsigned char *s = (unsigned char *)MEM_TO_SHADOW((uptr)x); in __msan_test_shadow() 569 internal_memcpy((void*)MEM_TO_SHADOW((uptr)data), shadow, size); in __msan_partial_poison() 644 internal_memcpy(&__msan_retval_tls[0], (void *)MEM_TO_SHADOW((uptr)p), in __sanitizer_unaligned_load16() 651 internal_memcpy(&__msan_retval_tls[0], (void *)MEM_TO_SHADOW((uptr)p), in __sanitizer_unaligned_load32() 658 internal_memcpy(&__msan_retval_tls[0], (void *)MEM_TO_SHADOW((uptr)p), in __sanitizer_unaligned_load64() 668 internal_memcpy((void *)MEM_TO_SHADOW((uptr)p), &s, sizeof(uu16)); in __sanitizer_unaligned_store16() 678 internal_memcpy((void *)MEM_TO_SHADOW((uptr)p), &s, sizeof(uu32)); in __sanitizer_unaligned_store32() 686 *(uu64 *)MEM_TO_SHADOW((uptr)p) = s; in __sanitizer_unaligned_store64()
|
D | msan_report.cpp | 185 uptr start = MEM_TO_SHADOW(x); in DescribeMemoryRange()
|