lkml.org 
[lkml]   [2022]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] [RFC] Documentation/process: Add testing section to tip handbook
On 3/31/22 05:38, Borislav Petkov wrote:
>> +Code should be tested before submitting to the tip maintainers. Anything
>> +other than minor changes should be built, booted and tested with the
>> +following set of comprehensive (and heavyweight) set of kernel debugging
>> +options enabled.
>> +
>> + CONFIG_X86_DEBUG_FPU=y
>> + CONFIG_LOCK_STAT=y
...
> It would be cool if there were a command I can run so that I can enable
> all those. Example:
>
> $ grep CONFIG_VMLINUX_VALIDATION .config
> $ ./scripts/config --enable CONFIG_VMLINUX_VALIDATION
> $ grep CONFIG_VMLINUX_VALIDATION .config
> CONFIG_VMLINUX_VALIDATION=y
> $ make oldconfig
> #
> # configuration written to .config
> #
> $ grep CONFIG_VMLINUX_VALIDATION .config
> $
>
> Needs other options.
>
> Maybe you could create a .config snippet which we can merge
> with scripts/kconfig/merge_config.sh... or maybe start from
> arch/x86/configs/x86_64_defconfig, add all those and call it
>
> arch/x86/configs/x86_64_testconfig

Well, after some digging around it turns out that we're not the first
ones with this problem. Just throwing those options into:

kernel/configs/x86_debug.config

and doing:

make x86_debug.config

will magically do:

Using .config as base
Merging /home/davehans/linux.git/kernel/configs/x86_debug.config
#
# merged configuration written to .config (needs make)
...

Who knew? I'll move the options and send another patch.

\
 
 \ /
  Last update: 2022-03-31 19:38    [W:0.045 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site