mirror of
https://github.com/apache/nuttx.git
synced 2026-09-26 09:54:24 +08:00
mm/memdump: dynamic turn on backtrace in heap when enable DEBUG_MM
default turn off. turn on: echo on > /proc/memdump turn off: echo off > proc/memdump Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -133,6 +133,14 @@ struct procfs_meminfo_entry_s
|
||||
FAR const char *name;
|
||||
FAR struct mm_heap_s *heap;
|
||||
struct procfs_meminfo_entry_s *next;
|
||||
#if defined(CONFIG_DEBUG_MM)
|
||||
|
||||
/* This is dynamic control flag whether to turn on backtrace in the heap,
|
||||
* you can set it by /proc/memdump.
|
||||
*/
|
||||
|
||||
bool backtrace;
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user