From 666afe5923e409bd2f3ebcd33c26dbcc2dd565b0 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sat, 17 Dec 2016 12:21:57 -0500 Subject: [PATCH] kernel: kconfig: move event logger options into file Change-Id: I1e80375df583c5a5b6f04b216b54ed5b786e4655 Signed-off-by: Anas Nashif --- kernel/Kconfig | 33 --------------------------------- kernel/Kconfig.event_logger | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 33 deletions(-) diff --git a/kernel/Kconfig b/kernel/Kconfig index 3686c06efad..e53becd0a6c 100644 --- a/kernel/Kconfig +++ b/kernel/Kconfig @@ -113,39 +113,6 @@ config APPLICATION_INIT_PRIORITY This priority level is for end-user drivers such as sensors and display which have no inward dependencies. -menu "Kernel event logging points" -depends on KERNEL_EVENT_LOGGER - -config KERNEL_EVENT_LOGGER_CONTEXT_SWITCH - bool - prompt "Context switch event logging point" - default n - depends on KERNEL_EVENT_LOGGER - help - Enable the context switch event messages. - -config KERNEL_EVENT_LOGGER_INTERRUPT - bool - prompt "Interrupt event logging point" - default n - depends on KERNEL_EVENT_LOGGER - help - Enable interrupt event messages. These messages provide the following - information: The time when interrupts occur. - -config KERNEL_EVENT_LOGGER_SLEEP - bool - prompt "Sleep event logging point" - default n - depends on KERNEL_EVENT_LOGGER && SYS_POWER_MANAGEMENT - help - Enable low power condition event messages. These messages provide the - following information: - - - When the CPU went to sleep mode. - - When the CPU woke up. - - The ID of the interrupt that woke the CPU up. -endmenu menu "Security Options" diff --git a/kernel/Kconfig.event_logger b/kernel/Kconfig.event_logger index fa1eba50ac5..d466d7bf3a9 100644 --- a/kernel/Kconfig.event_logger +++ b/kernel/Kconfig.event_logger @@ -50,4 +50,36 @@ config KERNEL_EVENT_LOGGER_CUSTOM_TIMESTAMP This flag enables the possibility to set the timer function to be used to populate kernel event logger timestamp. This has to be done at runtime by calling sys_k_event_logger_set_timer and providing the function callback. + +menu "Kernel event logging points" + +config KERNEL_EVENT_LOGGER_CONTEXT_SWITCH + bool + prompt "Context switch event logging point" + default n + help + Enable the context switch event messages. + +config KERNEL_EVENT_LOGGER_INTERRUPT + bool + prompt "Interrupt event logging point" + default n + help + Enable interrupt event messages. These messages provide the following + information: The time when interrupts occur. + +config KERNEL_EVENT_LOGGER_SLEEP + bool + prompt "Sleep event logging point" + default n + depends on SYS_POWER_MANAGEMENT + help + Enable low power condition event messages. These messages provide the + following information: + + - When the CPU went to sleep mode. + - When the CPU woke up. + - The ID of the interrupt that woke the CPU up. +endmenu + endif