Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1139788rwi; Mon, 31 Oct 2022 11:53:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6eZPRV7bF0iux9qXfOkYU9Nzy2JIE8Oylace50vx/K2QWPeDCuypDWXmQcq5MtSYx6vpYx X-Received: by 2002:a17:90b:33ce:b0:213:e25b:9448 with SMTP id lk14-20020a17090b33ce00b00213e25b9448mr7283849pjb.44.1667242407392; Mon, 31 Oct 2022 11:53:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667242407; cv=none; d=google.com; s=arc-20160816; b=CxMRJnfJn5go/JvlPajBvRftZekwTe503XQlzMwipbsZC8fWQpVUjMX7OV31PNR8M9 uBtgAGbyDLpcAcj89jhK8LaLCrbKqo5slFnapSr+YcPgsOdZNiOa5jsk8cY1mZ2rIaez 50qhB/AqbYeYgBTTmVR1YdLzEod8xp3mxwLO1c2INlS4PsbK5/L/JKNYIVIPUBWOAbBP sFT5sAWCvCyjP7KsMdmd7ZHUInNPsVf/cvn2JyH+by0c22EI3wxpg/4MB42wFtgHqH3y 7KreVWRcxaSk5JpIbEIzGwMfiG8Uk5LWk59EKkY0nXh8i28GZxD5ztWbvNLkOHlpxmVE HYFQ== 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; bh=sYx3uN1xhiMhAnziXHSHnRo2dJBOaDo/NYyMf4DLx1M=; b=k5kExEdAq9NU3uxva5ivtKjvDyMTsNNnmI1EOEXbI2maDlm3RG58I+ilh9IhIjZJi5 EDrkcmbfG7VliitzRS3jj66miHiDlFHlIVDE8JmUbZbJsLybnXsMf39CUsSnR4YRMu7h bDjeId2sZiQSzFChKrS1HmTsHgs6tdt5qwx+XqSuZk1E0OeG8Hm9OJdar0Fv7xNKg+Yc J2FHMfesHwzbbFcbD664FT8oZT2vGBYbqEr/A/5n+9ooxhch5gmM6pXQG8D9n3ZEsvit KZYOc/rssOgeh/jmC2bCaHJX1oE/kG/Fsslty3SiBKkkOCCx8kOumvEgVCI9CwOvMnIM RwtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="QoSnwZ/B"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f37-20020a635125000000b0045f74df51dfsi10236154pgb.536.2022.10.31.11.53.13; Mon, 31 Oct 2022 11:53:27 -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=@google.com header.s=20210112 header.b="QoSnwZ/B"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229695AbiJaStg (ORCPT + 99 others); Mon, 31 Oct 2022 14:49:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229494AbiJaStf (ORCPT ); Mon, 31 Oct 2022 14:49:35 -0400 Received: from mail-pg1-x536.google.com (mail-pg1-x536.google.com [IPv6:2607:f8b0:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85F4BDEDA for ; Mon, 31 Oct 2022 11:49:34 -0700 (PDT) Received: by mail-pg1-x536.google.com with SMTP id r18so11428381pgr.12 for ; Mon, 31 Oct 2022 11:49:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=sYx3uN1xhiMhAnziXHSHnRo2dJBOaDo/NYyMf4DLx1M=; b=QoSnwZ/B/liuYfGtfabdroBKsCRGncbY/5BM/crc///S+QhWCBt43aQ5r0Vmwhrcf/ WwOKEFKSiTqkmAHolYSLciwfxNgIzEpX3FXQ7aIgkd1kt3JcvZSl1W7Xd0J8ulfFoQj7 CDCI4G3lnoirhR/+pYe4r3hUmFmuyZS1LzdmfUmzPg0u70C+GxPIOMwiJyr4PhNYNnW3 0AoFUj4/dqZQIONeYqmjfj5Xf6oOuAywghZtb7bjE/ySGNQE6AtxLvZhGj7F0xclZh7B WUeCMEZ5roRJ1a51ImZki8RwlFf+73wTHR2ceZn8IvT2ngdvWOvGW75SABwTiBOr4Ve2 sIEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sYx3uN1xhiMhAnziXHSHnRo2dJBOaDo/NYyMf4DLx1M=; b=vtomnMsh0vK6hXJDlb3c1CGUBkHFWA+UehyEStN3brNcL+PgGuf9rsOP3sGEMF32k1 hOlExEeEDUZ9HEhnEZXErMAhL/C6de4TknenDsI8FI6ZWMdfS6mFi+3A0PbX/XkeMkJw fi/TTuZAGSJJe9uquVsLxz2DGxXLTyCCTgEnBBzSKY/inY+WYsANNcSwVca4VQIV0Tgk i+mNts4n4sI/HFiBSUayQfFb6aR/thGYcuYprdPyWjmx/rqQNYNyZo0BzKLsvJHnDl71 W4pCxF0D/eeNdZN9bhTce1C8aUmTD6CaR9kpnURgmTFlq+DHBEWBFn6juD+/1H17WhIp Vs7A== X-Gm-Message-State: ACrzQf1++V7ts0tEzB/BRJlI0IzULXPJwT6K+tL34M60CPkV/wxUFa9z tJkRMDVtBobOctnNA/S/7K3Uct8Iq71VqqE7jwjCFw== X-Received: by 2002:a63:1f5c:0:b0:469:d0e6:dac0 with SMTP id q28-20020a631f5c000000b00469d0e6dac0mr13505473pgm.427.1667242173802; Mon, 31 Oct 2022 11:49:33 -0700 (PDT) MIME-Version: 1.0 References: <20221020175655.1660864-1-ndesaulniers@google.com> In-Reply-To: From: Nick Desaulniers Date: Mon, 31 Oct 2022 11:49:21 -0700 Message-ID: Subject: Re: [PATCH] Makefile.debug: support for -gz=zstd To: Masahiro Yamada 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=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 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? > -- > Thanks, > ~Nick Desaulniers -- Thanks, ~Nick Desaulniers