diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Kconfig | 46 | ||||
| -rw-r--r-- | src/components.c | 8 | ||||
| -rw-r--r-- | src/kservice.c | 4 | ||||
| -rw-r--r-- | src/object.c | 4 |
4 files changed, 31 insertions, 31 deletions
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" diff --git a/src/components.c b/src/components.c index af74954d76..c9a25c76dc 100644 --- a/src/components.c +++ b/src/components.c @@ -84,7 +84,7 @@ INIT_EXPORT(rti_end, "6.end"); */ void rt_components_board_init(void) { -#ifdef RT_DEBUG_INIT +#ifdef RT_DEBUGING_INIT int result; const struct rt_init_desc *desc; for (desc = &__rt_init_desc_rti_board_start; desc < &__rt_init_desc_rti_board_end; desc ++) @@ -100,7 +100,7 @@ void rt_components_board_init(void) { (*fn_ptr)(); } -#endif /* RT_DEBUG_INIT */ +#endif /* RT_DEBUGING_INIT */ } /** @@ -108,7 +108,7 @@ void rt_components_board_init(void) */ void rt_components_init(void) { -#ifdef RT_DEBUG_INIT +#ifdef RT_DEBUGING_INIT int result; const struct rt_init_desc *desc; @@ -126,7 +126,7 @@ void rt_components_init(void) { (*fn_ptr)(); } -#endif /* RT_DEBUG_INIT */ +#endif /* RT_DEBUGING_INIT */ } #endif /* RT_USING_COMPONENTS_INIT */ diff --git a/src/kservice.c b/src/kservice.c index 7e750b52e1..9a8e89f4f2 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -1987,7 +1987,7 @@ int __rt_ffs(int value) #define __on_rt_assert_hook(ex, func, line) __ON_HOOK_ARGS(rt_assert_hook, (ex, func, line)) #endif -#ifdef RT_DEBUG +#ifdef RT_USING_DEBUG /* RT_ASSERT(EX)'s hook */ void (*rt_assert_hook)(const char *ex, const char *func, rt_size_t line); @@ -2036,6 +2036,6 @@ void rt_assert_handler(const char *ex_string, const char *func, rt_size_t line) } } RTM_EXPORT(rt_assert_handler); -#endif /* RT_DEBUG */ +#endif /* RT_USING_DEBUG */ /**@}*/ diff --git a/src/object.c b/src/object.c index d1815f7e23..afcd4d8509 100644 --- a/src/object.c +++ b/src/object.c @@ -353,7 +353,7 @@ void rt_object_init(struct rt_object *object, const char *name) { rt_base_t level; -#ifdef RT_DEBUG +#ifdef RT_USING_DEBUG struct rt_list_node *node = RT_NULL; #endif struct rt_object_information *information; @@ -365,7 +365,7 @@ void rt_object_init(struct rt_object *object, information = rt_object_get_information(type); RT_ASSERT(information != RT_NULL); -#ifdef RT_DEBUG +#ifdef RT_USING_DEBUG /* check object type to avoid re-initialization */ /* enter critical */ |
