Home
last modified time | relevance | path

Searched refs:shadow_end (Results 1 – 22 of 22) sorted by relevance

/external/compiler-rt/lib/asan/
Dasan_poisoning.h43 uptr shadow_end = MEM_TO_SHADOW( in FastPoisonShadow() local
51 shadow_end - shadow_beg < common_flags()->clear_shadow_mmap_threshold) { in FastPoisonShadow()
52 REAL(memset)((void*)shadow_beg, value, shadow_end - shadow_beg); in FastPoisonShadow()
56 uptr page_end = RoundDownTo(shadow_end, page_size); in FastPoisonShadow()
59 REAL(memset)((void *)shadow_beg, 0, shadow_end - shadow_beg); in FastPoisonShadow()
64 if (page_end != shadow_end) { in FastPoisonShadow()
65 REAL(memset)((void *)page_end, 0, shadow_end - page_end); in FastPoisonShadow()
Dasan_poisoning.cc71 uptr shadow_end = RoundDownTo(MemToShadow(p + size), page_size); in FlushUnneededASanShadowMemory() local
72 FlushUnneededShadowMemory(shadow_beg, shadow_end - shadow_beg); in FlushUnneededASanShadowMemory()
194 uptr shadow_end = MemToShadow(aligned_e); in __asan_region_is_poisoned() local
200 (shadow_end <= shadow_beg || in __asan_region_is_poisoned()
202 shadow_end - shadow_beg))) in __asan_region_is_poisoned()
302 s8* shadow_end = (s8*)MemToShadow(addr + aligned_size); in PoisonAlignedStackMemory() local
303 s8 end_value = *shadow_end; in PoisonAlignedStackMemory()
308 *shadow_end = (s8)kAsanStackUseAfterScopeMagic; in PoisonAlignedStackMemory()
313 *shadow_end = Max(end_value, end_offset); in PoisonAlignedStackMemory()
/external/llvm-project/compiler-rt/lib/asan/
Dasan_poisoning.h47 uptr shadow_end = MEM_TO_SHADOW( in FastPoisonShadow() local
57 shadow_end - shadow_beg < common_flags()->clear_shadow_mmap_threshold) { in FastPoisonShadow()
58 REAL(memset)((void*)shadow_beg, value, shadow_end - shadow_beg); in FastPoisonShadow()
62 uptr page_end = RoundDownTo(shadow_end, page_size); in FastPoisonShadow()
65 REAL(memset)((void *)shadow_beg, 0, shadow_end - shadow_beg); in FastPoisonShadow()
70 if (page_end != shadow_end) { in FastPoisonShadow()
71 REAL(memset)((void *)page_end, 0, shadow_end - page_end); in FastPoisonShadow()
Dasan_poisoning.cpp191 uptr shadow_end = MemToShadow(aligned_e); in __asan_region_is_poisoned() local
197 (shadow_end <= shadow_beg || in __asan_region_is_poisoned()
199 shadow_end - shadow_beg))) in __asan_region_is_poisoned()
299 s8* shadow_end = (s8*)MemToShadow(addr + aligned_size); in PoisonAlignedStackMemory() local
300 s8 end_value = *shadow_end; in PoisonAlignedStackMemory()
305 *shadow_end = (s8)kAsanStackUseAfterScopeMagic; in PoisonAlignedStackMemory()
310 *shadow_end = Max(end_value, end_offset); in PoisonAlignedStackMemory()
Dasan_rtems.cpp33 uptr shadow_end = MEM_TO_SHADOW(kMyriadMemoryEnd32); in ResetShadowMemory() local
35 uptr gap_end = MEM_TO_SHADOW(shadow_end); in ResetShadowMemory()
37 REAL(memset)((void *)shadow_start, 0, shadow_end - shadow_start); in ResetShadowMemory()
/external/compiler-rt/lib/msan/
Dmsan_poisoning.cc125 uptr shadow_end = shadow_beg + size; in SetShadow() local
127 shadow_end - shadow_beg < common_flags()->clear_shadow_mmap_threshold) { in SetShadow()
128 REAL(memset)((void *)shadow_beg, value, shadow_end - shadow_beg); in SetShadow()
131 uptr page_end = RoundDownTo(shadow_end, PageSize); in SetShadow()
134 REAL(memset)((void *)shadow_beg, 0, shadow_end - shadow_beg); in SetShadow()
139 if (page_end != shadow_end) { in SetShadow()
140 REAL(memset)((void *)page_end, 0, shadow_end - page_end); in SetShadow()
/external/llvm-project/compiler-rt/lib/msan/
Dmsan_poisoning.cpp124 uptr shadow_end = shadow_beg + size; in SetShadow() local
126 shadow_end - shadow_beg < common_flags()->clear_shadow_mmap_threshold) { in SetShadow()
127 REAL(memset)((void *)shadow_beg, value, shadow_end - shadow_beg); in SetShadow()
130 uptr page_end = RoundDownTo(shadow_end, PageSize); in SetShadow()
133 REAL(memset)((void *)shadow_beg, 0, shadow_end - shadow_beg); in SetShadow()
138 if (page_end != shadow_end) { in SetShadow()
139 REAL(memset)((void *)page_end, 0, shadow_end - page_end); in SetShadow()
/external/llvm-project/compiler-rt/lib/memprof/
Dmemprof_allocator.cpp410 u64 *shadow_end = (u64 *)MEM_TO_SHADOW(p + size); in GetShadowCount() local
412 for (; shadow <= shadow_end; shadow++) in GetShadowCount()
425 uptr shadow_end = MEM_TO_SHADOW(addr + size - SHADOW_GRANULARITY) + 1; in ClearShadow() local
426 if (shadow_end - shadow_beg < common_flags()->clear_shadow_mmap_threshold) { in ClearShadow()
427 REAL(memset)((void *)shadow_beg, 0, shadow_end - shadow_beg); in ClearShadow()
431 uptr page_end = RoundDownTo(shadow_end, page_size); in ClearShadow()
434 REAL(memset)((void *)shadow_beg, 0, shadow_end - shadow_beg); in ClearShadow()
439 if (page_end != shadow_end) { in ClearShadow()
440 REAL(memset)((void *)page_end, 0, shadow_end - page_end); in ClearShadow()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_platform_linux.cc190 char *shadow_end = (char*)MemToShadow(end); in MapRodata() local
191 for (char *p = shadow_start; p < shadow_end; p += marker.size()) { in MapRodata()
192 internal_mmap(p, Min<uptr>(marker.size(), shadow_end - p), in MapRodata()
Dtsan_rtl.cc237 uptr shadow_end = MemToShadow(addr + size); in DontNeedShadowFor() local
238 FlushUnneededShadowMemory(shadow_beg, shadow_end - shadow_beg); in DontNeedShadowFor()
/external/llvm-project/compiler-rt/lib/tsan/rtl/
Dtsan_platform_linux.cpp204 char *shadow_end = (char *)MemToShadow(segment.end); in MapRodata() local
205 for (char *p = shadow_start; p < shadow_end; in MapRodata()
207 internal_mmap(p, Min<uptr>(marker.size() * sizeof(u64), shadow_end - p), in MapRodata()
Dtsan_rtl.cpp258 uptr shadow_end = RoundUpTo((uptr)MemToShadow(addr + size), kPageSize); in MapShadow() local
259 if (!MmapFixedSuperNoReserve(shadow_begin, shadow_end - shadow_begin, in MapShadow()
/external/compiler-rt/lib/cfi/
Dcfi.cc132 uint16_t *shadow_end = MemToShadow(end - 1, shadow_) + 1; in AddUnchecked() local
134 (shadow_end - shadow_begin) * sizeof(*shadow_begin)); in AddUnchecked()
/external/llvm-project/compiler-rt/lib/cfi/
Dcfi.cpp151 uint16_t *shadow_end = MemToShadow(end - 1, shadow_) + 1; in AddUnchecked() local
157 (shadow_end - shadow_begin) * sizeof(*shadow_begin)); in AddUnchecked()
/external/clang/lib/AST/
DDeclCXX.cpp2196 assert(std::find(shadow_begin(), shadow_end(), S) == shadow_end() && in addShadowDecl()
2206 assert(std::find(shadow_begin(), shadow_end(), S) != shadow_end() && in removeShadowDecl()
/external/clang/include/clang/AST/
DDeclCXX.h3137 return shadow_range(shadow_begin(), shadow_end()); in shadows()
3142 shadow_iterator shadow_end() const { return shadow_iterator(); } in shadow_end() function
3147 return std::distance(shadow_begin(), shadow_end()); in shadow_size()
/external/llvm-project/clang/lib/AST/
DDeclCXX.cpp3015 assert(std::find(shadow_begin(), shadow_end(), S) == shadow_end() && in addShadowDecl()
3025 assert(std::find(shadow_begin(), shadow_end(), S) != shadow_end() && in removeShadowDecl()
/external/llvm-project/clang/include/clang/AST/
DDeclCXX.h3465 return shadow_range(shadow_begin(), shadow_end()); in shadows()
3472 shadow_iterator shadow_end() const { return shadow_iterator(); } in shadow_end() function
3477 return std::distance(shadow_begin(), shadow_end()); in shadow_size()
/external/llvm-project/clang/include/clang/ASTMatchers/
DASTMatchers.h5915 Node.shadow_end(), Finder, in AST_MATCHER_P()
5916 Builder) != Node.shadow_end(); in AST_MATCHER_P()
/external/clang/include/clang/ASTMatchers/
DASTMatchers.h4233 Node.shadow_end(), Finder, Builder); in AST_MATCHER_P()
/external/clang/lib/Sema/
DTreeTransform.h11637 assert(++Using->shadow_begin() == Using->shadow_end()); in RebuildUnresolvedUsingType()
/external/llvm-project/clang/lib/Sema/
DTreeTransform.h14113 assert(++Using->shadow_begin() == Using->shadow_end()); in RebuildUnresolvedUsingType()