Home
last modified time | relevance | path

Searched refs:SetErrnoOnNull (Results 1 – 8 of 8) sorted by relevance

/external/llvm-project/compiler-rt/lib/tsan/rtl/
Dtsan_mman.cpp197 return SetErrnoOnNull(user_alloc_internal(thr, pc, sz, kDefaultAlignment)); in user_alloc()
203 return SetErrnoOnNull(nullptr); in user_calloc()
210 return SetErrnoOnNull(p); in user_calloc()
216 return SetErrnoOnNull(nullptr); in user_reallocarray()
244 return SetErrnoOnNull(user_alloc_internal(thr, pc, sz)); in user_realloc()
255 return SetErrnoOnNull(new_p); in user_realloc()
266 return SetErrnoOnNull(user_alloc_internal(thr, pc, sz, align)); in user_memalign()
294 return SetErrnoOnNull(user_alloc_internal(thr, pc, sz, align)); in user_aligned_alloc()
298 return SetErrnoOnNull(user_alloc_internal(thr, pc, sz, GetPageSizeCached())); in user_valloc()
312 return SetErrnoOnNull(user_alloc_internal(thr, pc, sz, PageSize)); in user_pvalloc()
/external/llvm-project/compiler-rt/lib/msan/
Dmsan_allocator.cpp266 return SetErrnoOnNull(MsanAllocate(stack, size, sizeof(u64), false)); in msan_malloc()
270 return SetErrnoOnNull(MsanCalloc(stack, nmemb, size)); in msan_calloc()
275 return SetErrnoOnNull(MsanAllocate(stack, size, sizeof(u64), false)); in msan_realloc()
280 return SetErrnoOnNull(MsanReallocate(stack, ptr, size, sizeof(u64))); in msan_realloc()
294 return SetErrnoOnNull(MsanAllocate(stack, size, GetPageSizeCached(), false)); in msan_valloc()
307 return SetErrnoOnNull(MsanAllocate(stack, size, PageSize, false)); in msan_pvalloc()
317 return SetErrnoOnNull(MsanAllocate(stack, size, alignment, false)); in msan_aligned_alloc()
327 return SetErrnoOnNull(MsanAllocate(stack, size, alignment, false)); in msan_memalign()
/external/llvm-project/compiler-rt/lib/lsan/
Dlsan_allocator.cpp170 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); in lsan_aligned_alloc()
180 return SetErrnoOnNull(Allocate(stack, size, alignment, kAlwaysClearMemory)); in lsan_memalign()
184 return SetErrnoOnNull(Allocate(stack, size, 1, kAlwaysClearMemory)); in lsan_malloc()
192 return SetErrnoOnNull(Reallocate(stack, p, size, 1)); in lsan_realloc()
207 return SetErrnoOnNull(Calloc(nmemb, size, stack)); in lsan_calloc()
211 return SetErrnoOnNull( in lsan_valloc()
225 return SetErrnoOnNull(Allocate(stack, size, PageSize, kAlwaysClearMemory)); in lsan_pvalloc()
/external/llvm-project/compiler-rt/lib/hwasan/
Dhwasan_allocator.cpp291 return SetErrnoOnNull(HwasanAllocate(stack, size, sizeof(u64), false)); in hwasan_malloc()
295 return SetErrnoOnNull(HwasanCalloc(stack, nmemb, size)); in hwasan_calloc()
300 return SetErrnoOnNull(HwasanAllocate(stack, size, sizeof(u64), false)); in hwasan_realloc()
305 return SetErrnoOnNull(HwasanReallocate(stack, ptr, size, sizeof(u64))); in hwasan_realloc()
319 return SetErrnoOnNull( in hwasan_valloc()
333 return SetErrnoOnNull(HwasanAllocate(stack, size, PageSize, false)); in hwasan_pvalloc()
343 return SetErrnoOnNull(HwasanAllocate(stack, size, alignment, false)); in hwasan_aligned_alloc()
353 return SetErrnoOnNull(HwasanAllocate(stack, size, alignment, false)); in hwasan_memalign()
/external/llvm-project/compiler-rt/lib/scudo/
Dscudo_allocator.cpp704 return SetErrnoOnNull(Instance.allocate(Size, Alignment, Type)); in scudoAllocate()
713 return SetErrnoOnNull(Instance.allocate(Size, MinAlignment, FromMalloc)); in scudoRealloc()
718 return SetErrnoOnNull(Instance.reallocate(Ptr, Size)); in scudoRealloc()
722 return SetErrnoOnNull(Instance.calloc(NMemB, Size)); in scudoCalloc()
726 return SetErrnoOnNull( in scudoValloc()
740 return SetErrnoOnNull(Instance.allocate(Size, PageSize, FromMemalign)); in scudoPvalloc()
763 return SetErrnoOnNull(Instance.allocate(Size, Alignment, FromMalloc)); in scudoAlignedAlloc()
/external/llvm-project/compiler-rt/lib/memprof/
Dmemprof_allocator.cpp773 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC)); in memprof_malloc()
777 return SetErrnoOnNull(instance.Calloc(nmemb, size, stack)); in memprof_calloc()
793 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC)); in memprof_realloc()
802 return SetErrnoOnNull(instance.Reallocate(p, size, stack)); in memprof_realloc()
806 return SetErrnoOnNull( in memprof_valloc()
820 return SetErrnoOnNull(instance.Allocate(size, PageSize, stack, FROM_MALLOC)); in memprof_pvalloc()
831 return SetErrnoOnNull(instance.Allocate(size, alignment, stack, alloc_type)); in memprof_memalign()
842 return SetErrnoOnNull(instance.Allocate(size, alignment, stack, FROM_MALLOC)); in memprof_aligned_alloc()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_allocator_checks.h30 inline void *SetErrnoOnNull(void *ptr) { in SetErrnoOnNull() function
/external/llvm-project/compiler-rt/lib/asan/
Dasan_allocator.cpp980 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC, true)); in asan_malloc()
984 return SetErrnoOnNull(instance.Calloc(nmemb, size, stack)); in asan_calloc()
1000 return SetErrnoOnNull(instance.Allocate(size, 8, stack, FROM_MALLOC, true)); in asan_realloc()
1009 return SetErrnoOnNull(instance.Reallocate(p, size, stack)); in asan_realloc()
1013 return SetErrnoOnNull( in asan_valloc()
1027 return SetErrnoOnNull( in asan_pvalloc()
1039 return SetErrnoOnNull( in asan_memalign()
1050 return SetErrnoOnNull( in asan_aligned_alloc()