efc5fe07a2
The existing stack_analyze APIs had some problems: 1. Not properly namespaced 2. Accepted the stack object as a parameter, yet the stack object does not contain the necessary information to get the associated buffer region, the thread object is needed for this 3. Caused a crash on certain platforms that do not allow inspection of unused stack space for the currently running thread 4. No user mode access 5. Separately passed in thread name We deprecate these functions and add a new API k_thread_stack_space_get() which addresses all of these issues. A helper API log_stack_usage() also added which resembles STACK_ANALYZE() in functionality. Fixes: #17852 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com> |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Kconfig | ||
event_flags.c | ||
kernel.c | ||
mempool.c | ||
msgq.c | ||
mutex.c | ||
semaphore.c | ||
thread.c | ||
thread_flags.c | ||
timer.c | ||
wrapper.h |