sched: support dumping all file information during assert
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
20b357abde
commit
624fc5a9b8
@ -27,6 +27,7 @@
|
|||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
#include <nuttx/board.h>
|
#include <nuttx/board.h>
|
||||||
#include <nuttx/coredump.h>
|
#include <nuttx/coredump.h>
|
||||||
|
#include <nuttx/fs/fs.h>
|
||||||
#include <nuttx/irq.h>
|
#include <nuttx/irq.h>
|
||||||
#include <nuttx/tls.h>
|
#include <nuttx/tls.h>
|
||||||
#include <nuttx/signal.h>
|
#include <nuttx/signal.h>
|
||||||
@ -414,6 +415,18 @@ static void dump_backtrace(FAR struct tcb_s *tcb, FAR void *arg)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Name: dump_filelist
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
#ifdef CONFIG_SCHED_DUMP_ON_EXIT
|
||||||
|
static void dump_filelist(FAR struct tcb_s *tcb, FAR void *arg)
|
||||||
|
{
|
||||||
|
FAR struct filelist *filelist = &tcb->group->tg_filelist;
|
||||||
|
files_dumplist(filelist);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: dump_tasks
|
* Name: dump_tasks
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@ -495,6 +508,10 @@ static void dump_tasks(void)
|
|||||||
#ifdef CONFIG_SCHED_BACKTRACE
|
#ifdef CONFIG_SCHED_BACKTRACE
|
||||||
nxsched_foreach(dump_backtrace, NULL);
|
nxsched_foreach(dump_backtrace, NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_SCHED_DUMP_ON_EXIT
|
||||||
|
nxsched_foreach(dump_filelist, NULL);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
Loading…
x
Reference in New Issue
Block a user