106f6ba60Sopenharmony_ci{
206f6ba60Sopenharmony_ci  global:
306f6ba60Sopenharmony_ci  extern "C++" {
406f6ba60Sopenharmony_ci    "ohos_malloc_hook_initialize";
506f6ba60Sopenharmony_ci    "ohos_malloc_hook_get_hook_flag";
606f6ba60Sopenharmony_ci    "ohos_malloc_hook_set_hook_flag";
706f6ba60Sopenharmony_ci    "ohos_malloc_hook_finalize";
806f6ba60Sopenharmony_ci    "ohos_malloc_hook_on_start";
906f6ba60Sopenharmony_ci    "ohos_malloc_hook_on_end";
1006f6ba60Sopenharmony_ci    "ohos_malloc_hook_malloc";
1106f6ba60Sopenharmony_ci    "ohos_malloc_hook_realloc";
1206f6ba60Sopenharmony_ci    "ohos_malloc_hook_calloc";
1306f6ba60Sopenharmony_ci    "ohos_malloc_hook_valloc";
1406f6ba60Sopenharmony_ci    "ohos_malloc_hook_free";
1506f6ba60Sopenharmony_ci    "ohos_malloc_hook_aligned_alloc";
1606f6ba60Sopenharmony_ci    "ohos_malloc_hook_malloc_usable_size";
1706f6ba60Sopenharmony_ci    "ohos_malloc_hook_mmap";
1806f6ba60Sopenharmony_ci    "ohos_malloc_hook_munmap";
1906f6ba60Sopenharmony_ci    "ohos_malloc_hook_memtrace";
2006f6ba60Sopenharmony_ci    "ohos_malloc_hook_prctl";
2106f6ba60Sopenharmony_ci    "ohos_set_filter_size";
2206f6ba60Sopenharmony_ci    "ohos_malloc_hook_send_hook_misc_data";
2306f6ba60Sopenharmony_ci    "ohos_malloc_hook_get_hook_config";
2406f6ba60Sopenharmony_ci  };
2506f6ba60Sopenharmony_ci  local:
2606f6ba60Sopenharmony_ci    *;
2706f6ba60Sopenharmony_ci};
28