Re: [PATCH RFC xenomai-images 5/5] recipes-kernel: add debug additions to riscv64_defconfig

Jan Kiszka <[email protected]>
Newsgroups dev.linux.lists.xenomai
Message-ID <[email protected]>
On 17.04.26 22:57, Tobias Schaffner wrote:
> Added to the defconfig to support the current workflow with a debug
> disablement snippet.
> 
> Added as a section in the end of the file to make factoring out debug
> configs at a later stage easier.
> 
> Signed-off-by: Tobias Schaffner <[email protected]>
> ---
>  recipes-kernel/linux/files/common_nodbg.cfg  |  2 ++
>  recipes-kernel/linux/files/riscv64_defconfig | 15 +++++++++++++++
>  2 files changed, 17 insertions(+)
> 
> diff --git a/recipes-kernel/linux/files/common_nodbg.cfg b/recipes-kernel/linux/files/common_nodbg.cfg
> index a57463b..6637d16 100644
> --- a/recipes-kernel/linux/files/common_nodbg.cfg
> +++ b/recipes-kernel/linux/files/common_nodbg.cfg
> @@ -1,5 +1,7 @@
>  # CONFIG_IPIPE_DEBUG is not set
>  # CONFIG_XENO_OPT_DEBUG is not set
> +# CONFIG_EVL_DEBUG is not set
> +# CONFIG_EVL_DEBUG_CORE is not set
>  # CONFIG_DEBUG_VM is not set
>  # CONFIG_DEBUG_LIST is not set
>  # CONFIG_BUG_ON_DATA_CORRUPTION is not set
> diff --git a/recipes-kernel/linux/files/riscv64_defconfig b/recipes-kernel/linux/files/riscv64_defconfig
> index 8f9e852..6b991ae 100644
> --- a/recipes-kernel/linux/files/riscv64_defconfig
> +++ b/recipes-kernel/linux/files/riscv64_defconfig
> @@ -311,3 +311,18 @@ CONFIG_DEBUG_KERNEL=y
>  CONFIG_DEBUG_FS=y
>  # CONFIG_RUNTIME_TESTING_MENU is not set
>  CONFIG_MEMTEST=y
> +
> +
> +# Debug additions
> +CONFIG_BUG_ON_DATA_CORRUPTION=y
> +CONFIG_DEBUG_ATOMIC_SLEEP=y
> +CONFIG_DEBUG_LIST=y
> +CONFIG_DEBUG_LOCK_ALLOC=y
> +CONFIG_DEBUG_VM=y
> +CONFIG_DYNAMIC_FTRACE=y
> +CONFIG_EVL_DEBUG=y
> +CONFIG_EVL_DEBUG_CORE=y
> +CONFIG_FTRACE=y
> +CONFIG_FUNCTION_TRACER=y
> +CONFIG_PROVE_LOCKING=y
> +CONFIG_STACKTRACE=y

I vaguely recall an attempt to invert this logic to "base config +
common_debug.cfg" - what happened to it? But that's independent, no
comments on this change.

Jan

-- 
Siemens AG, Foundational Technologies
Linux Expert Center
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.