Searched refs:adbg (Results 1 – 2 of 2) sorted by relevance
38 struct util_async_debug_callback *adbg = data; in u_async_debug_message() local47 simple_mtx_lock(&adbg->lock); in u_async_debug_message()48 if (adbg->count >= adbg->max) { in u_async_debug_message()49 size_t new_max = MAX2(16, adbg->max * 2); in u_async_debug_message()51 if (new_max < adbg->max || in u_async_debug_message()52 new_max > SIZE_MAX / sizeof(*adbg->messages)) { in u_async_debug_message()58 realloc(adbg->messages, new_max * sizeof(*adbg->messages)); in u_async_debug_message()64 adbg->max = new_max; in u_async_debug_message()65 adbg->messages = new_msg; in u_async_debug_message()68 msg = &adbg->messages[adbg->count++]; in u_async_debug_message()[all …]
56 u_async_debug_init(struct util_async_debug_callback *adbg);58 u_async_debug_cleanup(struct util_async_debug_callback *adbg);61 _u_async_debug_drain(struct util_async_debug_callback *adbg,65 u_async_debug_drain(struct util_async_debug_callback *adbg, in u_async_debug_drain() argument70 if (adbg->count) in u_async_debug_drain()71 _u_async_debug_drain(adbg, dst); in u_async_debug_drain()