Home
last modified time | relevance | path

Searched refs:SHADOW_SCALE (Results 1 – 18 of 18) sorted by relevance

/external/llvm-project/compiler-rt/lib/memprof/
Dmemprof_mapping.h19 #define SHADOW_SCALE kDefaultShadowScale macro
23 #define SHADOW_GRANULARITY (1ULL << SHADOW_SCALE)
40 (((mem & SHADOW_MASK) >> SHADOW_SCALE) + (SHADOW_OFFSET))
63 inline uptr MemToShadowSize(uptr size) { return size >> SHADOW_SCALE; } in MemToShadowSize()
Dmemprof_rtl.cpp112 kHighMemEnd |= (GetMmapGranularity() << SHADOW_SCALE) - 1; in InitializeHighMemEnd()
140 Printf("SHADOW_SCALE: %d\n", (int)SHADOW_SCALE); in PrintAddressSpaceLayout()
143 CHECK(SHADOW_SCALE >= 3 && SHADOW_SCALE <= 7); in PrintAddressSpaceLayout()
Dmemprof_linux.cpp66 return MapDynamicShadow(shadow_size_bytes, SHADOW_SCALE, in FindDynamicShadowStart()
/external/swiftshader/third_party/subzero/runtime/
Dszrt_asan.c52 #define SHADOW_SCALE ((size_t)1 << SHADOW_SCALE_LOG2) macro
61 #define SHADOW_OFFSET(p) ((uintptr_t)(p) % SHADOW_SCALE)
138 (uintptr_t)ptr % SHADOW_SCALE, shadow_val); in __asan_check()
139 if (size == SHADOW_SCALE) { in __asan_check()
200 (IS_SHADOW_ALIGNED(size)) ? 0 : SHADOW_SCALE - SHADOW_OFFSET(size); in __asan_malloc()
204 int err = posix_memalign(&rz_left, SHADOW_SCALE, in __asan_malloc()
/external/compiler-rt/lib/asan/
Dasan_mapping.h145 #define SHADOW_SCALE kDefaultShadowScale macro
192 #define SHADOW_GRANULARITY (1ULL << SHADOW_SCALE)
193 #define MEM_TO_SHADOW(mem) (((mem) >> SHADOW_SCALE) + (SHADOW_OFFSET))
194 #define SHADOW_TO_MEM(shadow) (((shadow) - SHADOW_OFFSET) << SHADOW_SCALE)
Dasan_rtl.cc394 Printf("SHADOW_SCALE: %d\n", (int)SHADOW_SCALE); in PrintAddressSpaceLayout()
397 CHECK(SHADOW_SCALE >= 3 && SHADOW_SCALE <= 7); in PrintAddressSpaceLayout()
Dasan_debugging.cc138 *shadow_scale = SHADOW_SCALE; in __asan_get_shadow_mapping()
Dasan_fake_stack.cc31 CHECK_EQ(SHADOW_SCALE, 3); // This code expects SHADOW_SCALE=3. in SetShadow()
/external/llvm-project/compiler-rt/lib/asan/
Dasan_mapping.h199 #define SHADOW_SCALE kDefaultShadowScale macro
257 #define SHADOW_GRANULARITY (1ULL << SHADOW_SCALE)
293 #define MEM_TO_SHADOW(mem) (((mem) >> SHADOW_SCALE) + (SHADOW_OFFSET))
377 static inline uptr MemToShadowSize(uptr size) { return size >> SHADOW_SCALE; } in MemToShadowSize()
Dasan_rtl.cpp323 kHighMemEnd |= (GetMmapGranularity() << SHADOW_SCALE) - 1; in InitializeHighMemEnd()
376 Printf("SHADOW_SCALE: %d\n", (int)SHADOW_SCALE); in PrintAddressSpaceLayout()
379 CHECK(SHADOW_SCALE >= 3 && SHADOW_SCALE <= 7); in PrintAddressSpaceLayout()
Dasan_premap_shadow.cpp29 return RoundUpTo(GetMaxVirtualAddress() >> SHADOW_SCALE, granularity); in PremapShadowSize()
Dasan_mapping_myriad.h18 (((RAW_ADDR(mem) - kLowMemBeg) >> SHADOW_SCALE) + (SHADOW_OFFSET))
Dasan_mapping_sparc64.h29 ((((mem) << HIGH_BITS) >> (HIGH_BITS + (SHADOW_SCALE))) + (SHADOW_OFFSET))
Dasan_linux.cpp109 return MapDynamicShadow(shadow_size_bytes, SHADOW_SCALE, in FindDynamicShadowStart()
Dasan_debugging.cpp143 *shadow_scale = SHADOW_SCALE; in __asan_get_shadow_mapping()
Dasan_mac.cpp58 return MapDynamicShadow(MemToShadowSize(kHighMemEnd), SHADOW_SCALE, in FindDynamicShadowStart()
Dasan_win.cpp256 return MapDynamicShadow(MemToShadowSize(kHighMemEnd), SHADOW_SCALE, in FindDynamicShadowStart()
Dasan_fake_stack.cpp31 if (SHADOW_SCALE == 3 && class_id <= 6) { in SetShadow()