Re: How to figure out the stack size for a thread?
Li, Jun R
Great! Thank you, Mike and Andrew!
From: Michael Rosen <michael.r.rosen@...>
Jun,
You can use CONFIG_STACK_USAGE to have the build system generate the .su files which summarize the stack usage (if computable at compile time) of all the functions in all the files. You can use this information to determine the max stack height a thread can reach so long as you know the deepest call path (and what functions are a part of it) but summing all of the static usages. I don’t know of an automated way to do this, but if someone else knows, please chime in!
For an experimental approach, see Andrew’s answer.
Mike
From: zephyr-devel-bounces@... [mailto:zephyr-devel-bounces@...]
On Behalf Of Li, Jun R
Sent: Thursday, August 10, 2017 11:08 AM To: zephyr-devel@... Subject: [Zephyr-devel] How to figure out the stack size for a thread?
Hi there, I’m wondering by which means to figure out the static stack size for a thread? Thank you!
Jun Li NTG | Intel Corporation | Santa Clara
|
|