zephyr/subsys/shell
Andrew Boie efc5fe07a2 kernel: overhaul unused stack measurement
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>
2020-02-08 10:02:35 +02:00
..
modules kernel: overhaul unused stack measurement 2020-02-08 10:02:35 +02:00
CMakeLists.txt license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
Kconfig kconfig: Clean up header comments and make them consistent 2019-11-04 17:31:27 -05:00
Kconfig.backends shell: kconfig: Have SHELL_BACKEND_RTT depend on USE_SEGGER_RTT 2020-01-24 22:47:53 +01:00
Kconfig.template.shell_log_queue_size license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
Kconfig.template.shell_log_queue_timeout license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
shell.c shell: fix race condition in shell instance initialization 2020-01-28 17:24:46 -05:00
shell_cmds.c shell: Fix undefined macro warnings 2019-07-24 16:34:31 -04:00
shell_dummy.c shell: prompt configuration during project generation 2019-04-30 10:40:04 -04:00
shell_fprintf.c subsystems: Rename reserved function names 2019-04-03 17:31:00 -04:00
shell_help.c global: Remove leading/trailing blank lines in files 2019-12-11 19:17:27 +01:00
shell_help.h shell: creating new module for help functionality 2018-12-05 15:15:44 +01:00
shell_history.c shell: Refactor shell_history to use less RW memory 2019-05-30 09:44:03 -04:00
shell_log_backend.c shell: fix log output when CONFIG_LOG_IMMEDIATE=y 2019-08-14 14:27:14 +02:00
shell_ops.c shell: Initialize va_list variables portably. 2019-06-07 12:08:35 +02:00
shell_ops.h shell: allow commands to suspend shell thread 2019-02-14 13:40:28 +01:00
shell_rtt.c shell: prompt configuration during project generation 2019-04-30 10:40:04 -04:00
shell_telnet.c net: telnet: User could telnet to zephyr only once 2019-10-28 13:58:59 +02:00
shell_telnet_protocol.h shell: Add TELNET backend 2019-04-01 10:26:13 -04:00
shell_uart.c cleanup: include/: move uart.h to drivers/uart.h 2019-06-27 22:55:49 -04:00
shell_utils.c style: add braces around if/while statements 2019-06-06 15:20:21 +02:00
shell_utils.h shell: add select command 2019-05-24 11:04:42 +02:00
shell_vt100.h shell: add Ctrl+N and Ctrl+P meta-keys 2019-06-24 07:17:53 -04:00
shell_wildcard.c shell: allow commands to suspend shell thread 2019-02-14 13:40:28 +01:00
shell_wildcard.h shell: Add wildcard support 2018-09-19 09:30:29 -04:00