From 244b903e5def3cd4aefc4bf2ebdc4687826e2f4d Mon Sep 17 00:00:00 2001 From: "Man, Jianting (Meco)" <920369182@qq.com> Date: Fri, 21 Jul 2023 22:36:42 -0400 Subject: [debug] 整理debug宏并增加RT_DEBUGING_CONTEXT (#7805) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Kconfig | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'src/Kconfig') diff --git a/src/Kconfig b/src/Kconfig index b869559952..28e54fc711 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -198,28 +198,29 @@ menu "kservice optimization" endmenu -menuconfig RT_DEBUG +menuconfig RT_USING_DEBUG bool "Enable debugging features" default y -if RT_DEBUG + if RT_USING_DEBUG + config RT_DEBUGING_COLOR + bool "Enable color debugging log" + default y - config RT_DEBUG_COLOR - bool "Enable color debugging log" - default n + config RT_DEBUGING_CONTEXT + bool "Enable debugging of environment and context check" + default y - config RT_DEBUG_INIT - bool "Enable debugging of components initialization" - default n + config RT_DEBUGING_INIT + bool "Enable debugging of components initialization" + default y - if ARCH_MM_MMU - config RT_DEBUG_PAGE_LEAK + config RT_DEBUGING_PAGE_LEAK bool "Enable page leaking tracer" + depends on ARCH_MM_MMU default n endif -endif - menu "Inter-Thread communication" config RT_USING_SEMAPHORE @@ -260,17 +261,16 @@ endmenu menu "Memory Management" - if ARCH_MM_MMU - config RT_PAGE_MAX_ORDER - int "Max order of pages allocatable by page allocator" - default 11 - help - For example, A value of 11 means the maximum chunk of contiguous memory - allocatable by page system is 2^(11 + ARCH_PAGE_BITS - 1) Bytes. - Large memory requirement can consume all system resource, and should - consider reserved memory instead to enhance system endurance. - Max order should at least satisfied usage by huge page. - endif + config RT_PAGE_MAX_ORDER + int "Max order of pages allocatable by page allocator" + default 11 + depends on ARCH_MM_MMU + help + For example, A value of 11 means the maximum chunk of contiguous memory + allocatable by page system is 2^(11 + ARCH_PAGE_BITS - 1) Bytes. + Large memory requirement can consume all system resource, and should + consider reserved memory instead to enhance system endurance. + Max order should at least satisfied usage by huge page. config RT_USING_MEMPOOL bool "Using memory pool" -- cgit v1.3.1