mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
mm: Move backtrace stuff into a separate option
The functionality has too much overhead for CONFIG_DEBUG_MM.
This commit is contained in:
committed by
Xiang Xiao
parent
c546c0b647
commit
b05320cac2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user