Home
last modified time | relevance | path

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

/llvm-project/compiler-rt/test/sanitizer_common/TestCases/Linux/
H A Dmalloc_usable_size.c15 assert(malloc_usable_size(NULL) == 0); in main()
21 assert(malloc_usable_size(p) == size); in main()
28 assert(malloc_usable_size(p) == size); in main()
/llvm-project/compiler-rt/lib/asan/
H A Dasan_malloc_linux.cpp112 INTERCEPTOR(uptr, malloc_usable_size, void *ptr) { in INTERCEPTOR()
169 uptr (*malloc_usable_size)(void *mem);
177 uptr (*malloc_usable_size)(void *mem);
187 WRAP(realloc), WRAP(memalign), WRAP(malloc_usable_size)};
191 WRAP(malloc), WRAP(malloc_usable_size), WRAP(memalign),
115 INTERCEPTOR(uptr,malloc_usable_size,void * ptr) INTERCEPTOR() argument
172 uptr (*malloc_usable_size)(void *mem); global() member
180 uptr (*malloc_usable_size)(void *mem); global() member
/llvm-project/compiler-rt/lib/scudo/standalone/tests/
H A Dwrappers_c_test.cpp159 EXPECT_LE(Size, malloc_usable_size(P)); in TEST_F()
192 EXPECT_LE(Size, malloc_usable_size(P)); in TEST_F()
247 EXPECT_LE(Size, malloc_usable_size(P)); in TEST_F()
257 EXPECT_LE(Size, malloc_usable_size(P)); in TEST_F()
286 EXPECT_LE(Alignment * 4U, malloc_usable_size(P)); in TEST_F()
318 EXPECT_LE(Size, malloc_usable_size(P)); in TEST_F()
325 EXPECT_LE(Size * 2U, malloc_usable_size(P)); in TEST_F()
342 EXPECT_LE(Size / 2U, malloc_usable_size(P)); in TEST_F()
372 EXPECT_LE(Size, malloc_usable_size(P)); in TEST_F()
378 EXPECT_LE(Size * 2U, malloc_usable_size(P)); in TEST_F()
[all …]
/llvm-project/compiler-rt/test/scudo/
H A Dvalloc.c40 assert(malloc_usable_size(p) >= round_up_to(size, page_size)); in main()
49 assert(malloc_usable_size(p) >= round_up_to(size, page_size)); in main()
/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_interceptors.cpp110 INTERCEPTOR(uptr, malloc_usable_size, void *ptr) { in INTERCEPTOR()
199 INTERCEPT_FUNCTION(malloc_usable_size); in initialize_interceptors()
114 INTERCEPTOR(uptr,malloc_usable_size,void * ptr) INTERCEPTOR() argument
H A Ddone_abilist.txt72 fun:malloc_usable_size=discard
H A Dlibc_ubuntu1404_abilist.txt2255 fun:malloc_usable_size=uninstrumented
/llvm-project/compiler-rt/lib/asan/tests/
H A Dasan_test.cpp441 "AddressSanitizer: attempting to call malloc_usable_size()";
447 EXPECT_EQ(0U, malloc_usable_size(NULL)); in TEST()
448 EXPECT_EQ(kArraySize, malloc_usable_size(array)); in TEST()
449 EXPECT_EQ(sizeof(int), malloc_usable_size(int_ptr)); in TEST()
450 EXPECT_DEATH(malloc_usable_size((void*)0x123), kMallocUsableSizeErrorMsg); in TEST()
451 EXPECT_DEATH(malloc_usable_size(array + kArraySize / 2), in TEST()
454 EXPECT_DEATH(malloc_usable_size(array), kMallocUsableSizeErrorMsg); in TEST()
/llvm-project/llvm/lib/Support/rpmalloc/
H A Dmalloc.c112 extern inline size_t RPMALLOC_CDECL malloc_usable_size(void *ptr) { in malloc_usable_size() function
380 MAC_INTERPOSE_PAIR(rpmalloc_usable_size, malloc_usable_size),
490 malloc_usable_size(const void *ptr) RPALIAS(rpmalloc_usable_size) in _ZdlPv()
493 malloc_usable_size(void *ptr) RPALIAS(rpmalloc_usable_size) in _ZdlPv()
/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_malloc_linux.cpp104 INTERCEPTOR(uptr, malloc_usable_size, void *ptr) {
106 INTERCEPTOR(uptr,malloc_usable_size,void * ptr) INTERCEPTOR() argument
/llvm-project/compiler-rt/test/dfsan/
H A Dinterceptors.c76 size_t s = malloc_usable_size(p); in test_malloc_usable_size()
/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_interceptors.cpp156 INTERCEPTOR(uptr, malloc_usable_size, void *ptr) {
161 INTERCEPT_FUNCTION(malloc_usable_size)
157 INTERCEPTOR(uptr,malloc_usable_size,void * ptr) INTERCEPTOR() argument
/llvm-project/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_allocator_testlib.cpp177 void malloc_usable_size() { in malloc_usable_size() function
/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_allocation_functions.cpp173 INTERCEPTOR_ALIAS(uptr, malloc_usable_size, const void *ptr);
/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dwrappers_c.inc117 INTERFACE WEAK size_t SCUDO_PREFIX(malloc_usable_size)(const void *ptr) {
119 INTERFACE WEAK size_t SCUDO_PREFIX(malloc_usable_size)(void *ptr) {
/llvm-project/compiler-rt/lib/msan/
H A Dmsan_interceptors.cpp233 INTERCEPTOR(uptr, malloc_usable_size, void *ptr) {
237 INTERCEPT_FUNCTION(malloc_usable_size) in INTERCEPTOR() argument
/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_interceptors_posix.cpp757 TSAN_INTERCEPTOR(uptr, malloc_usable_size, void *p) { in TSAN_INTERCEPTOR()
758 SCOPED_INTERCEPTOR_RAW(malloc_usable_size, p); in TSAN_INTERCEPTOR()
739 TSAN_INTERCEPTOR(uptr,malloc_usable_size,void * p) TSAN_INTERCEPTOR() argument
/llvm-project/compiler-rt/lib/msan/tests/
H A Dmsan_test.cpp4705 EXPECT_EQ(0U, malloc_usable_size(NULL)); in TEST()
4706 EXPECT_EQ(kArraySize, malloc_usable_size(array)); in TEST()
4707 EXPECT_EQ(sizeof(int), malloc_usable_size(int_ptr)); in TEST()