sof/Kconfig.zephyr-log

65 lines
1.4 KiB
Plaintext
Raw Normal View History

# SPDX-License-Identifier: BSD-3-Clause
menu "Logging"
config ZEPHYR_LOG
bool "Enable Logging via Zephyr"
default n
help
Select for Zephyr logging support, and logging
via SOF will be disabled. If not selected, SOF
logging will be used.
choice "SOF_LOG_LEVEL_CHOICE"
prompt "Max compiled-in log level for SOF"
default SOF_LOG_LEVEL_INF
depends on LOG
config SOF_LOG_LEVEL_OFF
bool "Off"
help
Set log level to off
config SOF_LOG_LEVEL_ERR
bool "Error"
help
Set log level to error
config SOF_LOG_LEVEL_WRN
bool "Warning"
help
Set log level to warning
config SOF_LOG_LEVEL_INF
bool "Info"
help
Set log level to info
config SOF_LOG_LEVEL_DBG
bool "Debug"
help
Set log level to debug
endchoice
config SOF_LOG_LEVEL
int
depends on LOG
default 0 if SOF_LOG_LEVEL_OFF
default 1 if SOF_LOG_LEVEL_ERR
default 2 if SOF_LOG_LEVEL_WRN
default 3 if SOF_LOG_LEVEL_INF
default 4 if SOF_LOG_LEVEL_DBG
config SOF_LOG_DBG_BUFFER
bool "Log buffer state on each consume/produce call"
default n
help
Dumps buffer struct audio_stream values on each call to comp_update_buffer_consume()
and comp_update_buffer_produce().
WARNING: Produces too much log output which usually results in many log messaged been
dropped! Also, if selected log backend formats log messages at runtime, enabling this
option results in significant CPU load!
endmenu