Home
last modified time | relevance | path

Searched refs:leak_info (Results 1 – 2 of 2) sorted by relevance

/bionic/libc/bionic/
Dmalloc_common_dynamic.cpp418 bool GetMallocLeakInfo(android_mallopt_leak_info_t* leak_info) { in GetMallocLeakInfo() argument
425 &leak_info->buffer, &leak_info->overall_size, &leak_info->info_size, in GetMallocLeakInfo()
426 &leak_info->total_memory, &leak_info->backtrace_size); in GetMallocLeakInfo()
430 bool FreeMallocLeakInfo(android_mallopt_leak_info_t* leak_info) { in FreeMallocLeakInfo() argument
436 reinterpret_cast<free_malloc_leak_info_func_t>(func)(leak_info->buffer); in FreeMallocLeakInfo()
562 android_mallopt_leak_info_t leak_info = {}; in get_malloc_leak_info() local
563 if (android_mallopt(M_GET_MALLOC_LEAK_INFO, &leak_info, sizeof(leak_info))) { in get_malloc_leak_info()
564 *info = leak_info.buffer; in get_malloc_leak_info()
565 *overall_size = leak_info.overall_size; in get_malloc_leak_info()
566 *info_size = leak_info.info_size; in get_malloc_leak_info()
[all …]
/bionic/libc/malloc_hooks/tests/
Dmalloc_hooks_tests.cpp201 android_mallopt_leak_info_t leak_info; in TEST_F() local
202 ASSERT_TRUE(android_mallopt(M_GET_MALLOC_LEAK_INFO, &leak_info, sizeof(leak_info))); in TEST_F()
203 EXPECT_EQ(nullptr, leak_info.buffer); in TEST_F()
204 EXPECT_EQ(0U, leak_info.overall_size); in TEST_F()
205 EXPECT_EQ(0U, leak_info.info_size); in TEST_F()
206 EXPECT_EQ(0U, leak_info.total_memory); in TEST_F()
207 EXPECT_EQ(0U, leak_info.backtrace_size); in TEST_F()
209 ASSERT_TRUE(android_mallopt(M_FREE_MALLOC_LEAK_INFO, &leak_info, sizeof(leak_info))); in TEST_F()