Home
last modified time | relevance | path

Searched refs:__musl_libc_globals (Results 1 - 11 of 11) sorted by relevance

/third_party/musl/porting/linux/user/src/hook/
H A Dmusl_preinit.c444 atomic_store_explicit(&__musl_libc_globals.so_dispatch_table, (volatile long long)&globals->malloc_dispatch_table, memory_order_seq_cst); in finish_install_ohos_malloc_hooks()
445 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile long long)&globals->malloc_dispatch_table, memory_order_seq_cst); in finish_install_ohos_malloc_hooks()
452 atomic_store_explicit(&__musl_libc_globals.memleak_tracker_so_dispatch_table, (volatile long long)&globals->memleak_tracker_malloc_dispatch_table, memory_order_seq_cst); in finish_install_ohos_malloc_hooks()
453 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile long long)&globals->memleak_tracker_malloc_dispatch_table, memory_order_seq_cst); in finish_install_ohos_malloc_hooks()
504 install_ohos_malloc_hook(&__musl_libc_globals, kMemTrackSharedLib, kMemTrackPrefix); in init_ohos_malloc_hook()
508 install_ohos_malloc_hook(&__musl_libc_globals, __malloc_hook_shared_lib, __malloc_hook_function_prefix); in init_ohos_malloc_hook()
515 if (atomic_exchange(&__musl_libc_globals.current_dispatch_table, (volatile const long long)NULL)) { in ohos_malloc_hook_init_function()
531 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile const long long)NULL, memory_order_seq_cst); in __set_default_malloc()
561 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile const long long)&__ohos_malloc_hook_init_dispatch, memory_order_seq_cst); in __install_malloc_hook()
572 volatile const struct MallocDispatchType* so_dispatch_value = (volatile const struct MallocDispatchType* )atomic_load_explicit(&__musl_libc_globals in __install_malloc_hook()
[all...]
H A Dmalloc_common.c27 &__musl_libc_globals.current_dispatch_table, memory_order_acquire); in malloc()
55 &__musl_libc_globals.current_dispatch_table, memory_order_acquire); in aligned_alloc()
74 &__musl_libc_globals.current_dispatch_table, memory_order_acquire); in free()
H A Dmusl_preinit_common.h8 extern struct musl_libc_globals __musl_libc_globals;
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 Dmemory_trace.c11 &__musl_libc_globals.current_dispatch_table, memory_order_acquire); in memtrace()
H A Dmusl_preinit_common.c16 struct musl_libc_globals __musl_libc_globals; variable
/third_party/musl/src/hook/linux/
H A Dmusl_preinit.c458 atomic_store_explicit(&__musl_libc_globals.so_dispatch_table, (volatile long long)&globals->malloc_dispatch_table, memory_order_seq_cst); in finish_install_ohos_malloc_hooks()
459 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile long long)&globals->malloc_dispatch_table, memory_order_seq_cst); in finish_install_ohos_malloc_hooks()
466 atomic_store_explicit(&__musl_libc_globals.memleak_tracker_so_dispatch_table, (volatile long long)&globals->memleak_tracker_malloc_dispatch_table, memory_order_seq_cst); in finish_install_ohos_malloc_hooks()
467 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile long long)&globals->memleak_tracker_malloc_dispatch_table, memory_order_seq_cst); in finish_install_ohos_malloc_hooks()
518 install_ohos_malloc_hook(&__musl_libc_globals, kMemTrackSharedLib, kMemTrackPrefix); in init_ohos_malloc_hook()
522 install_ohos_malloc_hook(&__musl_libc_globals, __malloc_hook_shared_lib, __malloc_hook_function_prefix); in init_ohos_malloc_hook()
529 if (atomic_exchange(&__musl_libc_globals.current_dispatch_table, (volatile const long long)NULL)) { in ohos_malloc_hook_init_function()
545 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile const long long)NULL, memory_order_seq_cst); in __set_default_malloc()
575 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile const long long)&__ohos_malloc_hook_init_dispatch, memory_order_seq_cst); in __install_malloc_hook()
586 volatile const struct MallocDispatchType* so_dispatch_value = (volatile const struct MallocDispatchType*)atomic_load_explicit(&__musl_libc_globals in __install_malloc_hook()
[all...]
H A Dmalloc_common.c55 &__musl_libc_globals.current_dispatch_table, memory_order_acquire); in malloc()
83 &__musl_libc_globals.current_dispatch_table, memory_order_acquire); in aligned_alloc()
102 &__musl_libc_globals.current_dispatch_table, memory_order_acquire); in free()
H A Dmusl_preinit_common.h30 extern struct musl_libc_globals __musl_libc_globals;
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 Dmemory_trace.c26 &__musl_libc_globals.current_dispatch_table, memory_order_acquire); in memtrace()
H A Dmusl_preinit_common.c31 struct musl_libc_globals __musl_libc_globals; variable
/third_party/musl/libc-test/src/nativehook/
H A Druntest.c50 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile const long long)0x95919591, memory_order_seq_cst); in main()
59 atomic_store_explicit(&__musl_libc_globals.current_dispatch_table, (volatile const long long)0x95919591, memory_order_seq_cst); in main()

Completed in 5 milliseconds