mm: Fixed the usage of CONFIG_MM_BACKTRACE & CONFIG_DEBUG_MM.

This commit is contained in:
Fotis Panagiotopoulos
2022-07-21 15:04:09 +03:00
committed by Xiang Xiao
parent e7b8af7a35
commit 66f49c1f3c
4 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -90,7 +90,7 @@ enum proc_node_e
#ifdef CONFIG_SCHED_CRITMONITOR
PROC_CRITMON, /* Critical section monitor */
#endif
#ifdef CONFIG_DEBUG_MM
#ifdef CONFIG_MM_BACKTRACE
PROC_HEAP, /* Task heap info */
#endif
PROC_STACK, /* Task stack info */
@@ -279,7 +279,7 @@ static const struct proc_node_s g_critmon =
};
#endif
#ifdef CONFIG_DEBUG_MM
#ifdef CONFIG_MM_BACKTRACE
static const struct proc_node_s g_heap =
{
"heap", "heap", (uint8_t)PROC_HEAP, DTYPE_FILE /* Task heap info */
@@ -326,7 +326,7 @@ static FAR const struct proc_node_s * const g_nodeinfo[] =
#ifdef CONFIG_SCHED_CRITMONITOR
&g_critmon, /* Critical section Monitor */
#endif
#ifdef CONFIG_DEBUG_MM
#ifdef CONFIG_MM_BACKTRACE
&g_heap, /* Task heap info */
#endif
&g_stack, /* Task stack info */
@@ -352,7 +352,7 @@ static const struct proc_node_s * const g_level0info[] =
#ifdef CONFIG_SCHED_CRITMONITOR
&g_critmon, /* Critical section monitor */
#endif
#ifdef CONFIG_DEBUG_MM
#ifdef CONFIG_MM_BACKTRACE
&g_heap, /* Task heap info */
#endif
&g_stack, /* Task stack info */