forked from zephyrproject-rtos/sof
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Kconfig.zephyr-log
64 lines (52 loc) · 1.36 KB
/
Kconfig.zephyr-log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# 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