blob: ccbcda0b92ea2a5ff0f082bfdf5281cc2e8f0f15 [file] [log] [blame]
Anas Nashif59a7de82016-12-17 12:18:10 -05001#
2# Copyright (c) 2014-2015 Wind River Systems, Inc.
3#
David B. Kinderac74d8b2017-01-18 17:01:01 -08004# SPDX-License-Identifier: Apache-2.0
Anas Nashif59a7de82016-12-17 12:18:10 -05005#
6
7menuconfig 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
18if KERNEL_EVENT_LOGGER
19config 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
26config 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
35config 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 Nashif666afe52016-12-17 12:21:57 -050043
44menu "Kernel event logging points"
45
46config 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
53config 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
61config 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.
73endmenu
74
Anas Nashif59a7de82016-12-17 12:18:10 -050075endif