From patchwork Fri Dec 2 16:59:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Rostedt X-Patchwork-Id: 29017 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp972889wrr; Fri, 2 Dec 2022 09:08:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf4jzKokEBFX+tu1c77U9Sm9GiKp3KPeiBMJxGWBayjrK+eUTcl46Orf+z2WVvzG8/foe/eg X-Received: by 2002:a63:b506:0:b0:478:e22:c90a with SMTP id y6-20020a63b506000000b004780e22c90amr24362619pge.185.1670000926061; Fri, 02 Dec 2022 09:08:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670000926; cv=none; d=google.com; s=arc-20160816; b=uZjQXLlgCHC0215aiOOlLPX3ak495af7s0qRBJqMLdwoK2DdmQJSlanoI+eH9NKepL RPYOhfHDcU0vkWlpfiSw/FrooNX28Ld3ZzcR6kkxqIa5af4pY3H2sO/TfH1y9Ep/rDk6 6gasHYer3Zs3Lga0VJTa699j+7gqfEp5tbymqGjqyyNRxwYn+KUBvE6be7gjAPoe1KoN EaxRCZWSvPQKPBMy28D72LcBCIBPiBNNj+lKzBDyTLi6HQI2ix1OJXlqCE2darbx+tcq +Lk1odvMG7eec91eb6Ky3SChFNc679cE9VoK1QojN79qcCGAVlthMOwsGHQgXziufYpa cr4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:subject:cc:to:from:date; bh=pMkOrqvO8tUanPaZglPCzEhUDZAZs1V19fdr0hL8bJY=; b=TfKssTUmsa2aF3GI9P+c4eBo4biP4kYN9mvYG2mBEQ0070Z6sNZ8NWaCAZ4wewk/LR V1/Wm94VSVpznBSxuC+2Dks0XoW1jlPFGd7YoYMBeby/3ZOMvCmCGbrsz/FUHUqjf+80 pUGyJMAGMYclDJk3P3m/KCb1CYRjMI80Xh0zR89R15hQmm4gOWUfgXwZu60wTAZj3wa5 5kNhgxduTy4Qy2v9MiojeB6VYxJmwXWYzXBMTY25r89syu4HQ2ZD0gKwbnN31/qZpaIY gCNAw6npdDQTxR1+8jyExV6HoPOTJD6vnkW0Xv+/oOLRw/9BvKHbhk8nRjBHSZbGCzcr J6vA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l4-20020a170902d04400b001781f860a6dsi6910989pll.228.2022.12.02.09.08.26; Fri, 02 Dec 2022 09:08:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234329AbiLBRAW (ORCPT + 99 others); Fri, 2 Dec 2022 12:00:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234318AbiLBQ7l (ORCPT ); Fri, 2 Dec 2022 11:59:41 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15F76331 for ; Fri, 2 Dec 2022 08:59:41 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id C3122B821F5 for ; Fri, 2 Dec 2022 16:59:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08DCEC433C1; Fri, 2 Dec 2022 16:59:37 +0000 (UTC) Date: Fri, 2 Dec 2022 11:59:36 -0500 From: Steven Rostedt To: LKML Cc: John 'Warthog9' Hawley Subject: [PATCH] ktest.pl minconfig: Unset configs instead of just removing them Message-ID: <20221202115936.016fce23@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751122890687689250?= X-GMAIL-MSGID: =?utf-8?q?1751122890687689250?= From: Steven Rostedt 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 Reviewed-by: John 'Warthog9' Hawley (VMware) --- 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;