Anas Nashif | 59a7de8 | 2016-12-17 12:18:10 -0500 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2014-2015 Wind River Systems, Inc. |
| 3 | # |
David B. Kinder | ac74d8b | 2017-01-18 17:01:01 -0800 | [diff] [blame] | 4 | # SPDX-License-Identifier: Apache-2.0 |
Anas Nashif | 59a7de8 | 2016-12-17 12:18:10 -0500 | [diff] [blame] | 5 | # |
| 6 | |
| 7 | menuconfig KERNEL_EVENT_LOGGER |
| 8 | bool |
| 9 | prompt "Enable kernel event logger features" |
| 10 | default n |
| 11 | select RING_BUFFER |
| 12 | help |
| 13 | This feature enables the usage of the profiling logger. Provides the |
| 14 | logging of sleep events (either entering or leaving low power conditions), |
| 15 | context switch events, interrupt events, boot events and a method to |
| 16 | collect these event messages. |
| 17 | |
| 18 | if KERNEL_EVENT_LOGGER |
| 19 | config KERNEL_EVENT_LOGGER_BUFFER_SIZE |
| 20 | int |
| 21 | prompt "Kernel event logger buffer size" |
| 22 | default 128 |
| 23 | help |
| 24 | Buffer size in 32-bit words. |
| 25 | |
| 26 | config KERNEL_EVENT_LOGGER_DYNAMIC |
| 27 | bool |
| 28 | prompt "Kernel event logger dynamic enabling" |
| 29 | default n |
| 30 | help |
| 31 | If enabled, kernel event logger is not logging any data to the ring buffer |
| 32 | It is up to the application to set the appropriate flags to enable/disable the |
| 33 | logging of each event type. |
| 34 | |
| 35 | config KERNEL_EVENT_LOGGER_CUSTOM_TIMESTAMP |
| 36 | bool |
| 37 | prompt "Kernel event logger custom timestamp" |
| 38 | default n |
| 39 | help |
| 40 | This flag enables the possibility to set the timer function to be used to |
| 41 | populate kernel event logger timestamp. This has to be done at runtime by |
| 42 | calling sys_k_event_logger_set_timer and providing the function callback. |
Anas Nashif | 666afe5 | 2016-12-17 12:21:57 -0500 | [diff] [blame] | 43 | |
| 44 | menu "Kernel event logging points" |
| 45 | |
| 46 | config KERNEL_EVENT_LOGGER_CONTEXT_SWITCH |
| 47 | bool |
| 48 | prompt "Context switch event logging point" |
| 49 | default n |
| 50 | help |
| 51 | Enable the context switch event messages. |
| 52 | |
| 53 | config KERNEL_EVENT_LOGGER_INTERRUPT |
| 54 | bool |
| 55 | prompt "Interrupt event logging point" |
| 56 | default n |
| 57 | help |
| 58 | Enable interrupt event messages. These messages provide the following |
| 59 | information: The time when interrupts occur. |
| 60 | |
| 61 | config KERNEL_EVENT_LOGGER_SLEEP |
| 62 | bool |
| 63 | prompt "Sleep event logging point" |
| 64 | default n |
| 65 | depends on SYS_POWER_MANAGEMENT |
| 66 | help |
| 67 | Enable low power condition event messages. These messages provide the |
| 68 | following information: |
| 69 | |
| 70 | - When the CPU went to sleep mode. |
| 71 | - When the CPU woke up. |
| 72 | - The ID of the interrupt that woke the CPU up. |
| 73 | endmenu |
| 74 | |
Anas Nashif | 59a7de8 | 2016-12-17 12:18:10 -0500 | [diff] [blame] | 75 | endif |