shell: add stacks command
Change-Id: Ibefface37c38749043602bce29317a315d0b53fd Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
36c5167b72
commit
f1d0c2b0ad
2 changed files with 12 additions and 0 deletions
|
@ -78,12 +78,23 @@ static int shell_cmd_tasks(int argc, char *argv[])
|
|||
#endif
|
||||
|
||||
|
||||
#if defined(CONFIG_INIT_STACKS)
|
||||
static int shell_cmd_stack(int argc, char *argv[])
|
||||
{
|
||||
k_call_stacks_analyze();
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
struct shell_cmd kernel_commands[] = {
|
||||
{ "version", shell_cmd_version, "show kernel version" },
|
||||
{ "uptime", shell_cmd_uptime, "show system uptime in milliseconds" },
|
||||
{ "cycles", shell_cmd_cycles, "show system hardware cycles" },
|
||||
#if defined(CONFIG_OBJECT_TRACING) && defined(CONFIG_THREAD_MONITOR)
|
||||
{ "tasks", shell_cmd_tasks, "show running tasks" },
|
||||
#endif
|
||||
#if defined(CONFIG_INIT_STACKS)
|
||||
{ "stacks", shell_cmd_stack, "show system stacks" },
|
||||
#endif
|
||||
{ NULL, NULL, NULL }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue