[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2444feb5-3c61-3d90-c57a-84c40849cd67@intel.com>
Date: Thu, 31 Mar 2022 10:37:30 -0700
From: Dave Hansen <dave.hansen@...el.com>
To: Borislav Petkov <bp@...en8.de>,
Dave Hansen <dave.hansen@...ux.intel.com>
Cc: linux-kernel@...r.kernel.org, Jonathan Corbet <corbet@....net>,
Borislav Petkov <bp@...e.de>,
Thomas Gleixner <tglx@...utronix.de>, x86@...nel.org,
linux-doc@...r.kernel.org
Subject: Re: [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.
Powered by blists - more mailing lists