sched: move DUMP_ON_EXIT to sched
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
f5c5f18934
commit
f326f15b40
6 changed files with 12 additions and 12 deletions
|
@ -1046,12 +1046,6 @@ config ARCH_STACKDUMP_MAX_LENGTH
|
||||||
depends on ARCH_STACKDUMP
|
depends on ARCH_STACKDUMP
|
||||||
default 0
|
default 0
|
||||||
|
|
||||||
config DUMP_ON_EXIT
|
|
||||||
bool "Dump all tasks state on exit"
|
|
||||||
default n
|
|
||||||
---help---
|
|
||||||
Dump all tasks state on exit()
|
|
||||||
|
|
||||||
config ARCH_USBDUMP
|
config ARCH_USBDUMP
|
||||||
bool "Dump USB trace data"
|
bool "Dump USB trace data"
|
||||||
default n
|
default n
|
||||||
|
|
|
@ -1642,11 +1642,11 @@ size_t nxsched_collect_deadlock(FAR pid_t *pid, size_t count);
|
||||||
*
|
*
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_DUMP_ON_EXIT
|
#ifdef CONFIG_SCHED_DUMP_ON_EXIT
|
||||||
void nxsched_dumponexit(void);
|
void nxsched_dumponexit(void);
|
||||||
#else
|
#else
|
||||||
# define nxsched_dumponexit()
|
# define nxsched_dumponexit()
|
||||||
#endif /* CONFIG_DUMP_ON_EXIT */
|
#endif /* CONFIG_SCHED_DUMP_ON_EXIT */
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|
|
@ -793,6 +793,12 @@ config SCHED_DUMP_LEAK
|
||||||
are printed using syslog. This helps catch any memory allocated by the
|
are printed using syslog. This helps catch any memory allocated by the
|
||||||
task that remains unreleased when the task exits.
|
task that remains unreleased when the task exits.
|
||||||
|
|
||||||
|
config SCHED_DUMP_ON_EXIT
|
||||||
|
bool "Dump all tasks state on exit"
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
Dump all tasks state on exit()
|
||||||
|
|
||||||
config SCHED_USER_IDENTITY
|
config SCHED_USER_IDENTITY
|
||||||
bool "Support per-task User Identity"
|
bool "Support per-task User Identity"
|
||||||
default n
|
default n
|
||||||
|
|
|
@ -118,7 +118,7 @@ if(CONFIG_SCHED_BACKTRACE)
|
||||||
list(APPEND SRCS sched_backtrace.c)
|
list(APPEND SRCS sched_backtrace.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_DUMP_ON_EXIT)
|
if(CONFIG_SCHED_DUMP_ON_EXIT)
|
||||||
list(APPEND SRCS sched_dumponexit.c)
|
list(APPEND SRCS sched_dumponexit.c)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,7 @@ ifeq ($(CONFIG_SCHED_BACKTRACE),y)
|
||||||
CSRCS += sched_backtrace.c
|
CSRCS += sched_backtrace.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_DUMP_ON_EXIT),y)
|
ifeq ($(CONFIG_SCHED_DUMP_ON_EXIT),y)
|
||||||
CSRCS += sched_dumponexit.c
|
CSRCS += sched_dumponexit.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_DUMP_ON_EXIT
|
#ifdef CONFIG_SCHED_DUMP_ON_EXIT
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Private Functions
|
* Private Functions
|
||||||
|
@ -84,4 +84,4 @@ void nxsched_dumponexit(void)
|
||||||
nxsched_foreach(dumphandler, NULL);
|
nxsched_foreach(dumphandler, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_DUMP_ON_EXIT */
|
#endif /* CONFIG_SCHED_DUMP_ON_EXIT */
|
||||||
|
|
Loading…
Reference in a new issue