nshlib/cmd_memdump: support new command: memdump

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong
2022-01-20 21:12:14 +08:00
committed by Xiang Xiao
parent 372621ed06
commit 283b1a4dfc
4 changed files with 121 additions and 2 deletions

View File

@@ -216,6 +216,12 @@ static const struct cmdmap_s g_cmdmap[] =
{ "free", cmd_free, 1, 1, NULL },
#endif
#ifdef CONFIG_DEBUG_MM
# ifndef CONFIG_NSH_DISABLE_MEMDUMP
{ "memdump", cmd_memdump, 1, 3, "[pid/used/free]" },
# endif
#endif
#ifdef CONFIG_NET_UDP
# ifndef CONFIG_NSH_DISABLE_GET
{ "get", cmd_get, 4, 7,