From 3f27e5e6f12378eb70f78f056683287c961e3ffb Mon Sep 17 00:00:00 2001 From: "Luke T. Shumaker" Date: Sat, 30 Nov 2024 15:27:57 -0700 Subject: libcr: Log stack allocations --- libcr/coroutine.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libcr/coroutine.c') diff --git a/libcr/coroutine.c b/libcr/coroutine.c index dbeef12..c6e3d4c 100644 --- a/libcr/coroutine.c +++ b/libcr/coroutine.c @@ -524,8 +524,10 @@ cid_t coroutine_add_with_stack_size(size_t stack_size, memset(coroutine_table[child-1].name, 0, sizeof(coroutine_table[child-1].name)); coroutine_table[child-1].stack_size = stack_size; + infof("allocing \"%s\" stack with size %zu", name, stack_size); coroutine_table[child-1].stack = aligned_alloc(CR_PLAT_STACK_ALIGNMENT, stack_size); + infof("...done"); #if CONFIG_COROUTINE_MEASURE_STACK || CONFIG_COROUTINE_PROTECT_STACK for (size_t i = 0; i < stack_size; i++) ((uint8_t *)coroutine_table[child-1].stack)[i] = -- cgit v1.2.3-2-g168b