Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions arch/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1046,12 +1046,6 @@ config ARCH_STACKDUMP_MAX_LENGTH
depends on ARCH_STACKDUMP
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
bool "Dump USB trace data"
default n
Expand Down
4 changes: 2 additions & 2 deletions include/nuttx/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -1617,11 +1617,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);
#else
# define nxsched_dumponexit()
#endif /* CONFIG_DUMP_ON_EXIT */
#endif /* CONFIG_SCHED_DUMP_ON_EXIT */

#ifdef CONFIG_SMP
/****************************************************************************
Expand Down
6 changes: 6 additions & 0 deletions sched/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,12 @@ config SCHED_DUMP_LEAK
are printed using syslog. This helps catch any memory allocated by the
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
bool "Support per-task User Identity"
default n
Expand Down
2 changes: 1 addition & 1 deletion sched/sched/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ if(CONFIG_SCHED_BACKTRACE)
list(APPEND SRCS sched_backtrace.c)
endif()

if(CONFIG_DUMP_ON_EXIT)
if(CONFIG_SCHED_DUMP_ON_EXIT)
list(APPEND SRCS sched_dumponexit.c)
endif()

Expand Down
2 changes: 1 addition & 1 deletion sched/sched/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ ifeq ($(CONFIG_SCHED_BACKTRACE),y)
CSRCS += sched_backtrace.c
endif

ifeq ($(CONFIG_DUMP_ON_EXIT),y)
ifeq ($(CONFIG_SCHED_DUMP_ON_EXIT),y)
CSRCS += sched_dumponexit.c
endif

Expand Down
4 changes: 2 additions & 2 deletions sched/sched/sched_dumponexit.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* Pre-processor Definitions
****************************************************************************/

#ifdef CONFIG_DUMP_ON_EXIT
#ifdef CONFIG_SCHED_DUMP_ON_EXIT

/****************************************************************************
* Private Functions
Expand Down Expand Up @@ -84,4 +84,4 @@ void nxsched_dumponexit(void)
nxsched_foreach(dumphandler, NULL);
}

#endif /* CONFIG_DUMP_ON_EXIT */
#endif /* CONFIG_SCHED_DUMP_ON_EXIT */