[kernel] add all RT_DEBUG_* options macro to menuconfig
@@ -41,12 +41,6 @@ config RT_TICK_PER_SECOND
help
System's tick frequency, Hz.
-config RT_DEBUG
- bool "Enable debug features"
- default y
-
-if RT_DEBUG
-
config RT_USING_OVERFLOW_CHECK
bool "Using stack overflow checking"
default y
@@ -54,20 +48,6 @@ config RT_USING_OVERFLOW_CHECK
Enable thread stack overflow checking. The stack overflow is checking when
each thread switch.
-config RT_DEBUG_INIT
- int "Enable system initialization informat print"
- default 0
- help
- print the procedure name of initialization
-
-config RT_DEBUG_THREAD
- int "Enable thread switch information dump"
- default 0
- help
- print the switch to/from thread name when each thread context switch
-
-endif
-
config RT_USING_HOOK
bool "Enable system hook"
default y
@@ -106,6 +86,94 @@ config RT_TIMER_THREAD_STACK_SIZE
endif
+menuconfig RT_DEBUG
+ bool "Enable debugging features"
+ default y
+
+if RT_DEBUG
+
+config RT_DEBUG_INIT_CONFIG
+ bool "Enable debugging of components initialization"
+ default n
+
+config RT_DEBUG_INIT
+ int
+ default 1 if RT_DEBUG_INIT_CONFIG
+
+config RT_DEBUG_THREAD_CONFIG
+ bool "Enable debugging of Thread State Changes"
+ default n
+
+config RT_DEBUG_THREAD
+ int
+ default 1 if RT_DEBUG_THREAD_CONFIG
+
+config RT_DEBUG_SCHEDULER_CONFIG
+ bool "Enable debugging of Scheduler"
+ default n
+
+config RT_DEBUG_SCHEDULER
+ int
+ default 1 if RT_DEBUG_SCHEDULER_CONFIG
+
+config RT_DEBUG_IPC_CONFIG
+ bool "Enable debugging of IPC"
+ default n
+
+config RT_DEBUG_IPC
+ int
+ default 1 if RT_DEBUG_IPC_CONFIG
+
+config RT_DEBUG_TIMER_CONFIG
+ bool "Enable debugging of Timer"
+ default n
+
+config RT_DEBUG_TIMER
+ int
+ default 1 if RT_DEBUG_TIMER_CONFIG
+
+config RT_DEBUG_IRQ_CONFIG
+ bool "Enable debugging of IRQ(Interrupt Request)"
+ default n
+
+config RT_DEBUG_IRQ
+ int
+ default 1 if RT_DEBUG_IRQ_CONFIG
+
+config RT_DEBUG_MEM_CONFIG
+ bool "Enable debugging of Small Memory Algorithm"
+ default n
+
+config RT_DEBUG_MEM
+ int
+ default 1 if RT_DEBUG_MEM_CONFIG
+
+config RT_DEBUG_SLAB_CONFIG
+ bool "Enable debugging of SLAB Memory Algorithm"
+ default n
+
+config RT_DEBUG_SLAB
+ int
+ default 1 if RT_DEBUG_SLAB_CONFIG
+
+config RT_DEBUG_MEMHEAP_CONFIG
+ bool "Enable debugging of Memory Heap Algorithm"
+ default n
+
+config RT_DEBUG_MEMHEAP
+ int
+ default 1 if RT_DEBUG_MEMHEAP_CONFIG
+
+config RT_DEBUG_MODULE_CONFIG
+ bool "Enable debugging of Application Module"
+ default n
+
+config RT_DEBUG_MODULE
+ int
+ default 1 if RT_DEBUG_MODULE_CONFIG
+
+endif
+
menu "Inter-Thread communication"
config RT_USING_SEMAPHORE
