Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1797166rwi; Mon, 31 Oct 2022 23:12:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM535w8V5RIcsWjFqGCifIt23xLrxpHX6nPzNay9LAUdzmfFgFEBb+NGIHDpUUcl7f/05Vm7 X-Received: by 2002:a17:907:80d:b0:73d:1e3f:3d83 with SMTP id wv13-20020a170907080d00b0073d1e3f3d83mr16105122ejb.372.1667283175793; Mon, 31 Oct 2022 23:12:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667283175; cv=none; d=google.com; s=arc-20160816; b=u3gNXzjPm5uWCPG7lE0np0nv//Qd98ZiCzAqq79VvXbegQsWWG6hMWICu8HvUmViXY iYX5fZippU80U3cn52oTpRkPSxjWXI4y9lBW2VL4UuVttPVFx6PKgzdnlULyEuM3n97G ef5VtSyFBFdK6UAwLIxscWQroMnMZaO5QIWL69P0mq9UhJuL5mD+AfnvDOhwZYY0lxnt 5z8cHXp2ji8YW32d+IHRoYUQyVhreltLZpBuZlH7NNDuo5uWEWBYhYzDMmH+Qv+jsfLA bzBlPsgYV/kZX41OB2jDPu/uq7bSzuumuOcU6D/0z/2UTqJyFQp6/NGSmSqpPHRl2eMR h5AQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=gCNWBb2Eok8RLy3ONe6jfzn3xPMLs34Yqwb+SBG6Glw=; b=0odL54PAvne2QISTwAPbPiKl8SyWmKkhF3id3y/VHlmECvC5DT/NT/5R6+5+Emk3M4 ZC2q7/PWyR4WdsV/2+E5O5m17unuDRfcUjiUet87rThbYrFfv5JfBDhDzNL3OU4mvn2F DWDBepTeEaDGruKmlLaEsxD0L7gqqYtTzbm4iQX88RJ2YzS27CYfIyzgX2oWXJfq/7k3 KPMQZ33MIHqgKwTtA3G5dQdOSmcaSP14mglObMwJINnddHTq90JO89Uqe4Cgcm8ZnyWP gxqWtT59EpIO6KL5rMB396giI1SkH0O27waMLiCgf4f7O32WYIlhVaG7KGWJUGlhhxfi 7uwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=D+mq7Rhu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k15-20020a1709061c0f00b006feb76dbd51si8108477ejg.289.2022.10.31.23.12.09; Mon, 31 Oct 2022 23:12:55 -0700 (PDT) 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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=D+mq7Rhu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229838AbiKAF6P (ORCPT + 99 others); Tue, 1 Nov 2022 01:58:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229462AbiKAF6J (ORCPT ); Tue, 1 Nov 2022 01:58:09 -0400 Received: from conssluserg-06.nifty.com (conssluserg-06.nifty.com [210.131.2.91]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4C8F714087; Mon, 31 Oct 2022 22:58:08 -0700 (PDT) Received: from mail-oi1-f174.google.com (mail-oi1-f174.google.com [209.85.167.174]) (authenticated) by conssluserg-06.nifty.com with ESMTP id 2A15viIc025803; Tue, 1 Nov 2022 14:57:45 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com 2A15viIc025803 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1667282265; bh=gCNWBb2Eok8RLy3ONe6jfzn3xPMLs34Yqwb+SBG6Glw=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=D+mq7Rhu/EH63zPTFNBDJZL5CdYxdPyLmxD/bi3q+5UT3u5QtlFu3E01kKBxaXeij MlK9kO8VB0s/Z//f9nboSrEvTkB8NVgsVcaxka57DPRbHyeVpjctVWychs0F7/2BvV Ab5cjUn2t7IMwy1I6TsCxSobnB0qcDZRsP/hxAaWaDOto4mtGTd0GlNh2NsJWZKbmf m4c3LuA6q/1LI6v/j9aMMmjCjxgm86QddRn8inU7ekmuNqZ1IjiOEGHlv+6Kp2odQ7 gW3o5fPM5CQjtS/9Y4pOSVAPUvyrGEKeumgQcmGSJAK0Qwg8SsOkdsBSGqeLdpHONC xtrSr/Ux1PhJw== X-Nifty-SrcIP: [209.85.167.174] Received: by mail-oi1-f174.google.com with SMTP id y67so15006349oiy.1; Mon, 31 Oct 2022 22:57:44 -0700 (PDT) X-Gm-Message-State: ACrzQf0hL/d+37jgxLmAlYKyH3sGtKJXaOzmFBjURr2wvoODPGl7T9Yo fu40PQI1aP7sNOcKkr+8J6uOYo7CAbab6A/RizU= X-Received: by 2002:a05:6808:1893:b0:359:f7c7:1caf with SMTP id bi19-20020a056808189300b00359f7c71cafmr6481270oib.194.1667282263919; Mon, 31 Oct 2022 22:57:43 -0700 (PDT) MIME-Version: 1.0 References: <20221020175655.1660864-1-ndesaulniers@google.com> In-Reply-To: From: Masahiro Yamada Date: Tue, 1 Nov 2022 14:57:07 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] Makefile.debug: support for -gz=zstd To: Nick Desaulniers Cc: Nathan Chancellor , Fangrui Song , Sedat Dilek , Michal Marek , Nick Terrell , Tom Rix , Andrew Morton , "Peter Zijlstra (Intel)" , David Gow , Kees Cook , Josh Poimboeuf , Dan Williams , Miguel Ojeda , Isabella Basso , Vlastimil Babka , Rasmus Villemoes , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, llvm@lists.linux.dev, sedat.dilek@gmail.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no 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 On Tue, Nov 1, 2022 at 3:49 AM Nick Desaulniers wrote: > > On Mon, Oct 24, 2022 at 10:44 AM Nick Desaulniers > wrote: > > > > On Sun, Oct 23, 2022 at 8:46 AM Sedat Dilek wrote: > > > > > > On Thu, Oct 20, 2022 at 8:43 PM Nathan Chancellor wrote: > > > > > > > > On Thu, Oct 20, 2022 at 10:56:49AM -0700, Nick Desaulniers wrote: > > > > > +config DEBUG_INFO_UNCOMPRESSED > > > > > + bool "Don't compress debug information" > > > > > + help > > > > > + Don't compress debug info sections. > > > > > + > > > > > config DEBUG_INFO_COMPRESSED > > > > > > Also, I prefer... > > > > > > DEBUG_INFO_COMPRESSED_NONE > > > DEBUG_INFO_COMPRESSED_ZLIB > > > DEBUG_INFO_COMPRESSED_ZSTD > > > > > > Following... > > > > > > $ ld.lld-16 -v > > > Debian LLD 16.0.0 (compatible with GNU linkers) > > > > > > $ ld.lld-16 --help | grep compress-debug-sections > > > --compress-debug-sections=[none,zlib,zstd] > > > > It's a good suggestion, though I deliberately did not modify the > > identifier used for the existing DEBUG_INFO_COMPRESSED. No defconfigs > > set DEBUG_INFO_COMPRESSED explicitly, but I think one issue with > > changing the identifier of existing kconfigs is that upon upgrading to > > newer kernel sources, if you run `make oldmodconfig` if you previously > > had DEBUG_INFO_COMPRESSED=y, kconfig doesn't know that that option has > > been renamed to DEBUG_INFO_COMPRESSED_ZLIB so it would be silently > > disabled, and image sizes would increase due to uncompressed debug > > info. That seems developer hostile. > > > > Masahiro, what are your thoughts on how to proceed? Should I change > > the pre-existing Kconfig identifier, or "let sleeping dogs lie?" > > Hi Masahiro, > What are your thoughts on the above? We renamed CONFIG options from time to time. We should strive to update in-tree defconfigs, but we did not care about external users very much. (we rely on "make oldconfig" showing new options and asking users for their choice.) So, I like Sedat's DEBUG_INFO_COMPRESSED_{ZLIB,ZSTD,NONE}. (and it is consist with CONFIG_INITRAMFS_COMPRESSION_*) -- Best Regards Masahiro Yamada