Move those into a separate Kconfig file and include them instead. Change-Id: Ifa25d6ec92937080ad5970af7ca5c3f07ddec961 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
54 lines
1.7 KiB
Plaintext
54 lines
1.7 KiB
Plaintext
#
|
|
# Copyright (c) 2014-2015 Wind River Systems, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
#
|
|
|
|
menuconfig KERNEL_EVENT_LOGGER
|
|
bool
|
|
prompt "Enable kernel event logger features"
|
|
default n
|
|
select RING_BUFFER
|
|
help
|
|
This feature enables the usage of the profiling logger. Provides the
|
|
logging of sleep events (either entering or leaving low power conditions),
|
|
context switch events, interrupt events, boot events and a method to
|
|
collect these event messages.
|
|
|
|
if KERNEL_EVENT_LOGGER
|
|
config KERNEL_EVENT_LOGGER_BUFFER_SIZE
|
|
int
|
|
prompt "Kernel event logger buffer size"
|
|
default 128
|
|
help
|
|
Buffer size in 32-bit words.
|
|
|
|
config KERNEL_EVENT_LOGGER_DYNAMIC
|
|
bool
|
|
prompt "Kernel event logger dynamic enabling"
|
|
default n
|
|
help
|
|
If enabled, kernel event logger is not logging any data to the ring buffer
|
|
It is up to the application to set the appropriate flags to enable/disable the
|
|
logging of each event type.
|
|
|
|
config KERNEL_EVENT_LOGGER_CUSTOM_TIMESTAMP
|
|
bool
|
|
prompt "Kernel event logger custom timestamp"
|
|
default n
|
|
help
|
|
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.
|
|
endif
|