mm: Move backtrace stuff into a separate option

The functionality has too much overhead for CONFIG_DEBUG_MM.
This commit is contained in:
YAMAMOTO Takashi
2022-05-20 17:37:14 +09:00
committed by Xiang Xiao
parent c546c0b647
commit b05320cac2
9 changed files with 24 additions and 19 deletions
+3 -3
View File
@@ -178,7 +178,7 @@ static ssize_t proc_critmon(FAR struct proc_file_s *procfile,
FAR struct tcb_s *tcb, FAR char *buffer, size_t buflen,
off_t offset);
#endif
#ifdef CONFIG_DEBUG_MM
#ifdef CONFIG_MM_BACKTRACE
static ssize_t proc_heap(FAR struct proc_file_s *procfile,
FAR struct tcb_s *tcb, FAR char *buffer,
size_t buflen, off_t offset);
@@ -904,7 +904,7 @@ static ssize_t proc_critmon(FAR struct proc_file_s *procfile,
* Name: proc_heap
****************************************************************************/
#ifdef CONFIG_DEBUG_MM
#ifdef CONFIG_MM_BACKTRACE
static ssize_t proc_heap(FAR struct proc_file_s *procfile,
FAR struct tcb_s *tcb, FAR char *buffer,
size_t buflen, off_t offset)
@@ -1575,7 +1575,7 @@ static ssize_t proc_read(FAR struct file *filep, FAR char *buffer,
ret = proc_critmon(procfile, tcb, buffer, buflen, filep->f_pos);
break;
#endif
#ifdef CONFIG_DEBUG_MM
#ifdef CONFIG_MM_BACKTRACE
case PROC_HEAP: /* Task heap info */
ret = proc_heap(procfile, tcb, buffer, buflen, filep->f_pos);
break;