Home
last modified time | relevance | path

Searched refs:memptr (Results 1 – 25 of 32) sorted by relevance

12

/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_malloc_mac.cpp57 #define COMMON_MALLOC_POSIX_MEMALIGN(memptr, alignment, size) \ argument
61 *memptr = p; \
64 SCOPED_INTERCEPTOR_RAW(posix_memalign, memptr, alignment, size); \
65 int res = user_posix_memalign(thr, pc, memptr, alignment, size);
H A Dtsan_mman.h43 int user_posix_memalign(ThreadState *thr, uptr pc, void **memptr, uptr align,
H A Dtsan_mman.cpp322 int user_posix_memalign(ThreadState *thr, uptr pc, void **memptr, uptr align, in user_posix_memalign() argument
335 *memptr = ptr; in user_posix_memalign()
/freebsd/contrib/llvm-project/compiler-rt/lib/nsan/
H A Dnsan_malloc_linux.cpp82 INTERCEPTOR(int, posix_memalign, void **memptr, uptr align, uptr size) { in INTERCEPTOR() argument
83 int res = REAL(posix_memalign)(memptr, align, size); in INTERCEPTOR()
84 if (res == 0 && *memptr) in INTERCEPTOR()
85 __nsan_set_value_unknown(static_cast<u8 *>(*memptr), size); in INTERCEPTOR()
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_interceptors.cpp85 INTERCEPTOR(int, posix_memalign, void **memptr, SIZE_T alignment, SIZE_T size) { in INTERCEPTOR() argument
86 CHECK_NE(memptr, 0); in INTERCEPTOR()
87 int res = __dfsan::dfsan_posix_memalign(memptr, alignment, size); in INTERCEPTOR()
89 dfsan_set_label(0, memptr, sizeof(*memptr)); in INTERCEPTOR()
H A Ddfsan_allocator.cpp282 int dfsan_posix_memalign(void **memptr, uptr alignment, uptr size) { in dfsan_posix_memalign() argument
294 *memptr = ptr; in dfsan_posix_memalign()
H A Ddfsan.h106 int dfsan_posix_memalign(void **memptr, uptr alignment, uptr size);
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_allocation_functions.cpp43 int __sanitizer_posix_memalign(void **memptr, uptr alignment, uptr size) { in __sanitizer_posix_memalign() argument
45 CHECK_NE(memptr, 0); in __sanitizer_posix_memalign()
46 int res = hwasan_posix_memalign(memptr, alignment, size, &stack); in __sanitizer_posix_memalign()
171 INTERCEPTOR_ALIAS(int, posix_memalign, void **memptr, SIZE_T alignment,
H A Dhwasan.h135 int hwasan_posix_memalign(void **memptr, uptr alignment, uptr size,
H A Dhwasan_allocator.cpp517 int hwasan_posix_memalign(void **memptr, uptr alignment, uptr size, in hwasan_posix_memalign() argument
529 *memptr = ptr; in hwasan_posix_memalign()
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_malloc_mac.cpp39 #define COMMON_MALLOC_POSIX_MEMALIGN(memptr, alignment, size) \ argument
41 int res = lsan_posix_memalign(memptr, alignment, size, stack)
H A Dlsan_allocator.cpp179 int lsan_posix_memalign(void **memptr, uptr alignment, uptr size, in lsan_posix_memalign() argument
191 *memptr = ptr; in lsan_posix_memalign()
H A Dlsan_allocator.h124 int lsan_posix_memalign(void **memptr, uptr alignment, uptr size,
H A Dlsan_interceptors.cpp110 INTERCEPTOR(int, posix_memalign, void **memptr, uptr alignment, uptr size) { in INTERCEPTOR()
113 return lsan_posix_memalign(memptr, alignment, size, stack);
108 INTERCEPTOR(int,posix_memalign,void ** memptr,uptr alignment,uptr size) INTERCEPTOR() argument
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_malloc_linux.cpp141 INTERCEPTOR(int, posix_memalign, void **memptr, uptr alignment, uptr size) { in INTERCEPTOR() argument
143 return asan_posix_memalign(memptr, alignment, size, &stack); in INTERCEPTOR()
182 int (*posix_memalign)(void **memptr, uptr alignment, uptr size);
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_malloc_linux.cpp128 INTERCEPTOR(int, posix_memalign, void **memptr, uptr alignment, uptr size) { in INTERCEPTOR() argument
130 return memprof_posix_memalign(memptr, alignment, size, &stack); in INTERCEPTOR()
H A Dmemprof_allocator.h100 int memprof_posix_memalign(void **memptr, uptr alignment, uptr size,
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_malloc_mac.inc170 INTERCEPTOR(int, posix_memalign, void **memptr, size_t alignment, size_t size) {
172 CHECK(memptr);
173 COMMON_MALLOC_POSIX_MEMALIGN(memptr, alignment, size);
/freebsd/contrib/llvm-project/compiler-rt/lib/rtsan/
H A Drtsan_interceptors.cpp319 INTERCEPTOR(int, posix_memalign, void **memptr, size_t alignment, size_t size) { in INTERCEPTOR() argument
321 return REAL(posix_memalign)(memptr, alignment, size); in INTERCEPTOR()
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_allocator.cpp400 int msan_posix_memalign(void **memptr, uptr alignment, uptr size, in msan_posix_memalign() argument
413 *memptr = ptr; in msan_posix_memalign()
H A Dmsan_interceptors.cpp161 INTERCEPTOR(int, posix_memalign, void **memptr, SIZE_T alignment, SIZE_T size) { in INTERCEPTOR() argument
163 CHECK_NE(memptr, 0); in INTERCEPTOR()
164 int res = msan_posix_memalign(memptr, alignment, size, &stack); in INTERCEPTOR()
166 __msan_unpoison(memptr, sizeof(*memptr)); in INTERCEPTOR()
H A Dmsan.h282 int msan_posix_memalign(void **memptr, uptr alignment, uptr size,
/freebsd/sys/dev/irdma/
H A Dirdma_hw.c934 struct irdma_dma_mem *memptr, u32 size, in irdma_obj_aligned_mem() argument
945 memptr->va = (u8 *)va + extra; in irdma_obj_aligned_mem()
946 memptr->pa = rf->obj_next.pa + extra; in irdma_obj_aligned_mem()
947 memptr->size = size; in irdma_obj_aligned_mem()
948 if (((u8 *)memptr->va + size) > ((u8 *)rf->obj_mem.va + rf->obj_mem.size)) in irdma_obj_aligned_mem()
951 rf->obj_next.va = (u8 *)memptr->va + size; in irdma_obj_aligned_mem()
952 rf->obj_next.pa = memptr->pa + size; in irdma_obj_aligned_mem()
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dwrappers_c.inc148 INTERFACE WEAK int SCUDO_PREFIX(posix_memalign)(void **memptr, size_t alignment,
161 *memptr = Ptr;
/freebsd/lib/libc/stdlib/malloc/jemalloc/include/jemalloc/
H A Djemalloc.h233 JEMALLOC_EXPORT int JEMALLOC_NOTHROW je_posix_memalign(void **memptr,

12