2021-01-18 21:31:11 +08:00
|
|
|
# Copyright (c) 2021 Nordic Semiconductor ASA
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
menu "Misc"
|
|
|
|
|
|
|
|
config LOG_DOMAIN_ID
|
2021-07-14 12:49:11 +08:00
|
|
|
int "Domain ID [DEPRECATED]"
|
2021-11-19 14:59:23 +08:00
|
|
|
depends on !LOG_MODE_MINIMAL
|
2021-01-18 21:31:11 +08:00
|
|
|
default 0
|
|
|
|
range 0 7
|
|
|
|
help
|
2021-07-14 12:49:11 +08:00
|
|
|
Deprecated. It is not used in the code.
|
2021-01-18 21:31:11 +08:00
|
|
|
|
|
|
|
config LOG_CMDS
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Shell commands"
|
2021-01-18 21:31:11 +08:00
|
|
|
depends on SHELL
|
2022-01-25 16:10:15 +08:00
|
|
|
depends on !LOG_FRONTEND_ONLY && !LOG_MODE_MINIMAL
|
2021-01-18 21:31:11 +08:00
|
|
|
default y if SHELL
|
|
|
|
|
2020-11-20 00:25:03 +08:00
|
|
|
config LOG_TEST_CLEAR_MESSAGE_SPACE
|
|
|
|
bool "Clear message after allocation"
|
|
|
|
default y
|
|
|
|
depends on ZTEST
|
|
|
|
help
|
|
|
|
Used in testing to simplify message comparision if message contains
|
|
|
|
paddings.
|
|
|
|
|
2022-06-21 17:51:38 +08:00
|
|
|
config LOG_USE_VLA
|
2020-11-20 00:25:03 +08:00
|
|
|
bool "Using variable length arrays"
|
|
|
|
default y if !MISRA_SANE
|
|
|
|
help
|
|
|
|
Using VLA slightly decreases stack usage in some cases it may not be
|
|
|
|
supported. Note that VLA are used for arrays which size is resolved at
|
|
|
|
compile time so at runtime arrays have fixed size.
|
|
|
|
|
2022-06-21 17:51:38 +08:00
|
|
|
config LOG_ALWAYS_RUNTIME
|
2022-03-07 18:31:25 +08:00
|
|
|
bool "Always use runtime message creation (v2)"
|
2020-11-20 00:25:03 +08:00
|
|
|
default y if NO_OPTIMIZATIONS
|
2022-02-09 18:59:26 +08:00
|
|
|
default y if LOG_MODE_IMMEDIATE
|
2022-02-25 07:23:30 +08:00
|
|
|
default y if "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "xcc"
|
2020-11-20 00:25:03 +08:00
|
|
|
help
|
|
|
|
If enabled, runtime method is always used for message creation. Static
|
|
|
|
creation relies on compiler being able to optimize and remove code
|
2022-03-07 18:31:25 +08:00
|
|
|
based on information known at compile time. Runtime only approach must
|
|
|
|
be used when optimization is disabled because some compilers
|
2020-11-20 00:25:03 +08:00
|
|
|
(seen on arm_cortex_m and x86) were using unrealistic amount of stack
|
2022-03-07 18:31:25 +08:00
|
|
|
for dead code. It is also required in immediate mode since it requires
|
2022-02-09 18:59:26 +08:00
|
|
|
less stack than static message creation and speed has lower priority
|
|
|
|
in that mode.
|
2020-11-20 00:25:03 +08:00
|
|
|
|
2022-06-21 17:51:38 +08:00
|
|
|
config LOG_FMT_SECTION
|
2020-11-20 00:25:03 +08:00
|
|
|
bool "Keep log strings in dedicated section"
|
|
|
|
help
|
|
|
|
When enabled, logs are kept in dedicated memory section. It allows
|
|
|
|
removing strings from final binary and should be used for dictionary
|
|
|
|
logging.
|
|
|
|
|
2022-06-21 17:51:38 +08:00
|
|
|
config LOG_USE_TAGGED_ARGUMENTS
|
2022-02-17 05:03:54 +08:00
|
|
|
bool "Using tagged arguments for packaging"
|
2022-06-28 13:56:13 +08:00
|
|
|
depends on !PICOLIBC
|
2022-02-17 05:03:54 +08:00
|
|
|
select CBPRINTF_PACKAGE_SUPPORT_TAGGED_ARGUMENTS
|
2022-06-21 17:51:38 +08:00
|
|
|
select LOG_ALWAYS_RUNTIME
|
2022-02-17 05:03:54 +08:00
|
|
|
help
|
|
|
|
If enabled, packaging uses tagged arguments.
|
|
|
|
|
2022-02-07 21:36:36 +08:00
|
|
|
config LOG_MEM_UTILIZATION
|
2022-03-09 19:05:12 +08:00
|
|
|
bool "Tracking maximum memory utilization"
|
2022-02-07 21:36:36 +08:00
|
|
|
depends on LOG_MODE_DEFERRED
|
|
|
|
default y if LOG_CMDS
|
|
|
|
help
|
|
|
|
When enabled, maximum usage of memory used for log messages in deferred
|
|
|
|
mode is tracked. It can be used to trim LOG_BUFFER_SIZE.
|
|
|
|
|
2022-03-29 21:47:01 +08:00
|
|
|
config LOG_DICTIONARY_DB
|
|
|
|
bool
|
|
|
|
|
2022-09-30 23:31:14 +08:00
|
|
|
config LOG_MSG_APPEND_RO_STRING_LOC
|
|
|
|
bool
|
|
|
|
help
|
|
|
|
Enable this option to force log messages to always append location of
|
|
|
|
read-only string arguments in the package. This should be selected by
|
|
|
|
backends if required.
|
|
|
|
|
2021-07-14 12:49:11 +08:00
|
|
|
config LOG_FAILURE_REPORT_PERIOD
|
|
|
|
int "Failure report period (in milliseconds)"
|
|
|
|
default 1000
|
|
|
|
depends on LOG_MODE_DEFERRED
|
|
|
|
help
|
|
|
|
Determines how often failures are reported. Report contains number
|
|
|
|
of dropped messages. It may contain additional information depending
|
|
|
|
on the mode.
|
|
|
|
|
|
|
|
config LOG_DOMAIN_NAME
|
|
|
|
string "Domain name"
|
|
|
|
default ""
|
|
|
|
|
|
|
|
if LOG_MULTIDOMAIN
|
|
|
|
|
|
|
|
config LOG_REMOTE_DOMAIN_MAX_COUNT
|
|
|
|
int "Maximum number of link domains"
|
|
|
|
default 4
|
|
|
|
help
|
|
|
|
Number of domains that can be handled by a link
|
|
|
|
|
|
|
|
endif
|
2021-01-18 21:31:11 +08:00
|
|
|
endmenu
|