Searched refs:MallocDispatchType (Results 1 - 15 of 15) sorted by relevance
/third_party/musl/porting/linux/user/src/hook/ |
H A D | malloc_common.c | 26 volatile const struct MallocDispatchType* dispatch_table = (struct MallocDispatchType *)atomic_load_explicit( in malloc() 54 volatile const struct MallocDispatchType* dispatch_table = (struct MallocDispatchType *)atomic_load_explicit( in aligned_alloc() 73 volatile const struct MallocDispatchType* dispatch_table = (struct MallocDispatchType *)atomic_load_explicit( in free() 105 volatile const struct MallocDispatchType* dispatch_table = get_current_dispatch_table(); in mmap() 115 volatile const struct MallocDispatchType* dispatch_table = get_current_dispatch_table(); in munmap() 128 volatile const struct MallocDispatchType* dispatch_table = get_current_dispatch_table(); in calloc() 144 volatile const struct MallocDispatchType* dispatch_tabl in realloc() [all...] |
H A D | musl_preinit_common.h | 10 extern struct MallocDispatchType __libc_malloc_default_dispatch; 109 inline volatile const struct MallocDispatchType* get_current_dispatch_table() in get_current_dispatch_table() 112 volatile const struct MallocDispatchType* ret = (struct MallocDispatchType *)atomic_load_explicit(&__musl_libc_globals.current_dispatch_table, memory_order_acquire); in get_current_dispatch_table()
|
H A D | musl_malloc_dispatch_table.h | 11 struct MallocDispatchType malloc_dispatch_table; 12 struct MallocDispatchType memleak_tracker_malloc_dispatch_table;
|
H A D | memory_trace.c | 10 volatile const struct MallocDispatchType* dispatch_table = (struct MallocDispatchType *)atomic_load_explicit( in memtrace()
|
H A D | musl_preinit.c | 41 static struct MallocDispatchType __ohos_malloc_hook_init_dispatch = { 310 static bool init_hook_functions(void* shared_library_handler, struct MallocDispatchType* table, const char* prefix) in init_hook_functions() 357 bool init_malloc_hook_shared_library(void* shared_library_handle, const char* shared_lib, const char* prefix, struct MallocDispatchType* dispatch_table) in init_malloc_hook_shared_library() 394 void* load_malloc_hook_shared_library(const char* shared_lib, const char* prefix, struct MallocDispatchType* dispatch_table) in load_malloc_hook_shared_library() 414 typedef bool (*init_func_t)(const struct MallocDispatchType*, bool*, const char*); 572 volatile const struct MallocDispatchType* so_dispatch_value = (volatile const struct MallocDispatchType* )atomic_load_explicit(&__musl_libc_globals.so_dispatch_table, memory_order_acquire); in __install_malloc_hook() 624 volatile const struct MallocDispatchType* memleak_tracker_so_dispatch_value = (volatile const struct MallocDispatchType* )atomic_load_explicit(&__musl_libc_globals.memleak_tracker_so_dispatch_table, memory_order_acquire); in __install_memleak_tracker_hook()
|
H A D | musl_preinit_common.c | 18 struct MallocDispatchType __libc_malloc_default_dispatch = { 30 struct MallocDispatchType __libc_malloc_default_dispatch = {
|
H A D | musl_malloc_dispatch.h | 39 struct MallocDispatchType { struct
|
/third_party/musl/src/hook/linux/ |
H A D | malloc_common.c | 54 volatile const struct MallocDispatchType* dispatch_table = (struct MallocDispatchType *)atomic_load_explicit( in malloc() 82 volatile const struct MallocDispatchType* dispatch_table = (struct MallocDispatchType *)atomic_load_explicit( in aligned_alloc() 101 volatile const struct MallocDispatchType* dispatch_table = (struct MallocDispatchType *)atomic_load_explicit( in free() 133 volatile const struct MallocDispatchType* dispatch_table = get_current_dispatch_table(); in mmap() 143 volatile const struct MallocDispatchType* dispatch_table = get_current_dispatch_table(); in munmap() 161 volatile const struct MallocDispatchType* dispatch_table = get_current_dispatch_table(); in calloc() 182 volatile const struct MallocDispatchType* dispatch_tabl in realloc() [all...] |
H A D | musl_preinit_common.h | 32 extern struct MallocDispatchType __libc_malloc_default_dispatch; 131 inline volatile const struct MallocDispatchType* get_current_dispatch_table() in get_current_dispatch_table() 134 volatile const struct MallocDispatchType* ret = (struct MallocDispatchType *)atomic_load_explicit(&__musl_libc_globals.current_dispatch_table, memory_order_acquire); in get_current_dispatch_table()
|
H A D | musl_malloc_dispatch_table.h | 33 struct MallocDispatchType malloc_dispatch_table; 34 struct MallocDispatchType memleak_tracker_malloc_dispatch_table;
|
H A D | memory_trace.c | 25 volatile const struct MallocDispatchType* dispatch_table = (struct MallocDispatchType *)atomic_load_explicit( in memtrace()
|
H A D | musl_preinit.c | 56 static struct MallocDispatchType __ohos_malloc_hook_init_dispatch = { 324 static bool init_hook_functions(void* shared_library_handler, struct MallocDispatchType* table, const char* prefix) in init_hook_functions() 371 bool init_malloc_hook_shared_library(void* shared_library_handle, const char* shared_lib, const char* prefix, struct MallocDispatchType* dispatch_table) in init_malloc_hook_shared_library() 408 void* load_malloc_hook_shared_library(const char* shared_lib, const char* prefix, struct MallocDispatchType* dispatch_table) in load_malloc_hook_shared_library() 428 typedef bool (*init_func_t)(const struct MallocDispatchType*, bool*, const char*); 586 volatile const struct MallocDispatchType* so_dispatch_value = (volatile const struct MallocDispatchType*)atomic_load_explicit(&__musl_libc_globals.so_dispatch_table, memory_order_acquire); in __install_malloc_hook() 638 volatile const struct MallocDispatchType* memleak_tracker_so_dispatch_value = (volatile const struct MallocDispatchType*)atomic_load_explicit(&__musl_libc_globals.memleak_tracker_so_dispatch_table, memory_order_acquire); in __install_memleak_tracker_hook()
|
H A D | musl_preinit_common.c | 33 struct MallocDispatchType __libc_malloc_default_dispatch = { 45 struct MallocDispatchType __libc_malloc_default_dispatch = {
|
H A D | musl_malloc_dispatch.h | 61 struct MallocDispatchType { struct
|
/third_party/musl/libc-test/src/nativehook/ |
H A D | runtest.c | 45 volatile const struct MallocDispatchType* malloc_dispatch_table = get_current_dispatch_table();
in main()
|
Completed in 6 milliseconds