1# Copyright (c) 2021 Nordic Semiconductor ASA 2# SPDX-License-Identifier: Apache-2.0 3 4menu "Misc" 5 6config LOG_DOMAIN_ID 7 int "Domain ID" 8 depends on !LOG_MINIMAL 9 default 0 10 range 0 7 11 help 12 In multicore system each application/core must have unique domain ID. 13 14config LOG_CMDS 15 bool "Enable shell commands" 16 depends on SHELL 17 depends on !LOG_FRONTEND && !LOG_MINIMAL 18 default y if SHELL 19 20config LOG_TEST_CLEAR_MESSAGE_SPACE 21 bool "Clear message after allocation" 22 default y 23 depends on ZTEST 24 depends on LOG2 25 help 26 Used in testing to simplify message comparision if message contains 27 paddings. 28 29config LOG2_USE_VLA 30 bool "Using variable length arrays" 31 default y if !MISRA_SANE 32 help 33 Using VLA slightly decreases stack usage in some cases it may not be 34 supported. Note that VLA are used for arrays which size is resolved at 35 compile time so at runtime arrays have fixed size. 36 37config LOG2_ALWAYS_RUNTIME 38 bool "Always use runtime message creation (v2)" 39 default y if NO_OPTIMIZATIONS 40 help 41 If enabled, runtime method is always used for message creation. Static 42 creation relies on compiler being able to optimize and remove code 43 based on information known at compile time. It is recommended to 44 enable this option when optimization is disabled because some compilers 45 (seen on arm_cortex_m and x86) were using unrealistic amount of stack 46 for dead code. Option applies to v1 as well because distinction 47 between versions is done by the compiler. 48 49config LOG2_FMT_SECTION 50 bool "Keep log strings in dedicated section" 51 help 52 When enabled, logs are kept in dedicated memory section. It allows 53 removing strings from final binary and should be used for dictionary 54 logging. 55 56endmenu 57