From: John 'Warthog9' Hawley <warthog9@kernel.org>
To: Steven Rostedt <rostedt@goodmis.org>,
LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] ktest.pl minconfig: Unset configs instead of just removing them
Date: Fri, 2 Dec 2022 13:40:35 -0800 [thread overview]
Message-ID: <33c88623-b08c-c8b9-e0b6-be8ce5694af0@kernel.org> (raw)
In-Reply-To: <20221202115936.016fce23@gandalf.local.home>
On 12/2/22 08:59, Steven Rostedt wrote:
> From: Steven Rostedt <rostedt@goodmis.org>
>
> After a full run of a make_min_config test, I noticed there were a lot of
> CONFIGs still enabled that really should not be. Looking at them, I
> noticed they were all defined as "default y". The issue is that the test
> simple removes the config and re-runs make oldconfig, which enables it
> again because it is set to default 'y'. Instead, explicitly disable the
> config with writing "# CONFIG_FOO is not set" to the file to keep it from
> being set again.
>
> With this change, one of my box's minconfigs went from 768 configs set,
> down to 521 configs set.
>
> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
> ---
> tools/testing/ktest/ktest.pl | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/tools/testing/ktest/ktest.pl b/tools/testing/ktest/ktest.pl
> index 590518144167..56135e7d2295 100755
> --- a/tools/testing/ktest/ktest.pl
> +++ b/tools/testing/ktest/ktest.pl
> @@ -3775,9 +3775,10 @@ sub test_this_config {
> # .config to make sure it is missing the config that
> # we had before
> my %configs = %min_configs;
> - delete $configs{$config};
> + $configs{$config} = "# $config is not set";
> make_new_config ((values %configs), (values %keep_configs));
> make_oldconfig;
> + delete $configs{$config};
> undef %configs;
> assign_configs \%configs, $output_config;
>
Reviewed-by: John 'Warthog9' Hawley (VMware) <warthog9@eaglescrag.net>
prev parent reply other threads:[~2022-12-02 21:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-02 16:59 Steven Rostedt
2022-12-02 21:40 ` John 'Warthog9' Hawley [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=33c88623-b08c-c8b9-e0b6-be8ce5694af0@kernel.org \
--to=warthog9@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rostedt@goodmis.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®