Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp52954pxb; Tue, 12 Apr 2022 16:34:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyedRGtVJpmrIxPHyCDhjuaNF0U1YueT+9OnbfG9r3bVq/rQj2V7HNidrA0+iS5mFg5VOs3 X-Received: by 2002:a17:90a:ee81:b0:1cb:ade8:6c61 with SMTP id i1-20020a17090aee8100b001cbade86c61mr7619490pjz.167.1649806470291; Tue, 12 Apr 2022 16:34:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649806470; cv=none; d=google.com; s=arc-20160816; b=hJVDZSNDDNoa/xE3cs5UdYZHmUHZuq+pSYQIQFQ7odRpw/9F0N0UPCi63CX9ST2BhW IyZPRgM+BDbUysXE9zrVJXKlHKVElYEzCo5EWfbMCQHVA35ZHL5ILTxY1vAhrr1he/a7 Elj5kvbFS6kwNqW7f/TxnuBAJ3/uzEQ6Mb7tB0SsHXYl1K6/zIrepRQMd6X8PefcSx7U s1ZFX0xsTCl0R3k3Y19f2TWhEtA4rlEWmFkiz1D8r7aEw5C0hisj1LewanAYc0qkr9FT 338x1jLHmY86Pj5DRdphF523+jNC0eJ9pMMV9QVBd9BEl9mq20h3EkjWEPDevp+W4YHC UkIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=vNCCOpYQH0vzjBgMNfNuyid5ryqUFOZ7U9dBWd0Rvbs=; b=r87nIinJmZzAvhnIP0lytOeqySH7IYREnyBB+XLtmEpdRbDC5HTKj1oXvnNGmmp+ks ZEQpkKXDSzyIgDJgX3Ql5s3T122gpDpgcPNLrjowaAhoSRG0NGiBzHe2UmfQMwX1CJKw I31ITvBKttRIiLEcDMciHOZ013tAdL8MvVAAhozeJzvwwhUeAV07MWI3UiHgftvV5q7u AEHWr8CJFxGJap0w/VjCQi4y2NeuUuEDaB/ve9Ev/R8TE2vAyHYIDtSWBpn9FTGWGiJX laNbJZBuHToLzsp+3apE6DgA+6+V/OxmwcgxBVmSCskjyr5L96uYw1yxnkqB8Ed/WxQF epsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=hG5LgtEb; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id g13-20020a63dd4d000000b0039dae8c6305si790321pgj.471.2022.04.12.16.34.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 16:34:30 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=hG5LgtEb; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B668F104A4F; Tue, 12 Apr 2022 14:25:19 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357871AbiDLQyS (ORCPT + 99 others); Tue, 12 Apr 2022 12:54:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232824AbiDLQyQ (ORCPT ); Tue, 12 Apr 2022 12:54:16 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EC82574A0 for ; Tue, 12 Apr 2022 09:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:To:Subject:MIME-Version:Date:Message-ID:Sender: Reply-To:Cc:Content-ID:Content-Description; bh=vNCCOpYQH0vzjBgMNfNuyid5ryqUFOZ7U9dBWd0Rvbs=; b=hG5LgtEbRW6Jd7UfBudIS62Hpv 43P+/n1FACUCP+zPX3ZeyS3aH3E2HMQPVj0uief0hUFDc4aKp9bsKgd2G+4KAWiF8M4WKz0tNcYr+ WUkJinbR8oSCQA0Kx1wlsJRzw/7MLZcRzsi2XkujS1h5uMZMSkn5NlRsSH0YQpiZevjZCOA6oDLj3 guXIFHtt2nIvHiUogB0mr72bqRZYNy5MKZXBwQ+LPpuRzv3pYW1A+1+9sQwDPlBq6Fz5oE0S7bNjr ysSpSRRuy3Bn0wybnD2iocu2/bKn6cAYPKyE1eGf03aEVW1pvlsg3IqhDEad368Cwukp44zkMbBIj IIx3m/yQ==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1neJkA-00DWhi-Jc; Tue, 12 Apr 2022 16:51:54 +0000 Message-ID: <1dd4c336-d281-6da3-ba37-d13bbf7c2537@infradead.org> Date: Tue, 12 Apr 2022 09:51:51 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH v2 -next] scripts: add compare-config utility Content-Language: en-US To: Chen Lifu , linux-kernel@vger.kernel.org References: <20220412083057.4101246-1-chenlifu@huawei.com> From: Randy Dunlap In-Reply-To: <20220412083057.4101246-1-chenlifu@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi-- On 4/12/22 01:30, Chen Lifu wrote: > This is an alternative utility to compare two .config files. Unlike > existing utilities "diffconfig" in the kernel tree, it prints detailed > results in table style, and support config name prefix so that it can be > used elsewhere. It is useful sometimes, for example, to analyze .config files > through tables, or to compare Buildroot .config. > > With grep and awk, it can print similar results like "diffconfg" as well. > > Signed-off-by: Chen Lifu Is your goal to have this merged into the kernel source tree? If so, you should also send the patch the the kconfig maintainer and mailing list. The output is quite verbose in its default mode (no options specified). To get something useful, I use -C -O -N. For my uses and preferences, I would like to see a -D (e.g.) which is just a combination of -CON. And it would be nice if that was the default mode also. :) > --- > Changes in v2: > - Add config name prefix support > > scripts/compare-config | 201 +++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 201 insertions(+) > create mode 100755 scripts/compare-config thanks. -- ~Randy