diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-11-30 15:27:57 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-12-08 08:27:23 -0700 |
commit | 3f27e5e6f12378eb70f78f056683287c961e3ffb (patch) | |
tree | c9b9b1383506bb5a8bf01242d3f9a364c20c328a /libcr/coroutine.c | |
parent | afe6542b30def82573e070371281c05dc593a739 (diff) |
libcr: Log stack allocations
Diffstat (limited to 'libcr/coroutine.c')
-rw-r--r-- | libcr/coroutine.c | 2 |
1 files changed, 2 insertions, 0 deletions
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] = |