Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7289060rwi; Mon, 24 Oct 2022 12:25:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM66brzdd1NYPuAT37yIRLyTa9EA44scDDoedaWB6iKRnQeA+Y/c7tawJiC9xtId0r6jZ15I X-Received: by 2002:a17:907:a04f:b0:7a9:ec45:1699 with SMTP id gz15-20020a170907a04f00b007a9ec451699mr3870766ejc.247.1666639509852; Mon, 24 Oct 2022 12:25:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666639509; cv=none; d=google.com; s=arc-20160816; b=Lm1IlafLjHxRrWmbyDRg8ACRhf299cZD9CmWdClCCrtJFJmGqDilucpguxLJnvRbrS fhWyxUPPmJCybPSS1q0Sif33I3mUckKY+gsm1S1Z2UN2McdctCPWDsb2jDs8N6VVIQ7o UCGKvpFrn/UhaiE1u/hyvQrKB/D7PtTCLo50UU2z5Z8IX+0kc0FnMm48KbAylP/+h+15 XOtNO1h8JDYxKEYoHAxw+dnR44o8kaY7L8Dv1LsMm2VGQuAJDqKyqI3FXd6sQ80BeyJe 2AnkfSnZKdBCYL44yeY60Z5EC4LnYogKRjryZbdKEQHr/PYfiXiUcvRPjKHXfg3J96jB pCKA== 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=Dnac3jXX+DqSJpyd7IS9wnKftHu0DkEkt46zBI0n+Aw=; b=T6wYF9UHQEBXpCg7j2GqL0t0ArqGurHNFimwfG3ddcwcYjDnVxYdVTkr8gfqIUdUeT nI2kDmr+p4tFJ3mfn7owx6ZhudjBjLPw2Y2HYidb+qi5eCbq5R5LQZjuj6qdsgsCh/U9 DU4FTpadKfEkwYrgRiK3ELlj/eMpmsCRd3+U9l9hbzx+TzsM3qONxShY0xTlz2ncV/GA +kyGzSRKxUg3s9jfeID4C9dzrrdNW0ZnQqyW8l+lgYRWkaXnSh3nU1T01ljOwiHchxYw Xps+gESgZgoViMJj7QPavQgxSET8wRUlWTPTxvzdwn0WbVlBI856S6zXWpauONF0a7mG 8WMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=bJVaxrjh; 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 sb8-20020a1709076d8800b0073da0ce043csi574551ejc.619.2022.10.24.12.24.41; Mon, 24 Oct 2022 12:25:09 -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=bJVaxrjh; 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 S232317AbiJXTHh (ORCPT + 99 others); Mon, 24 Oct 2022 15:07:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232262AbiJXTHR (ORCPT ); Mon, 24 Oct 2022 15:07:17 -0400 Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEA971DD8B4 for ; Mon, 24 Oct 2022 10:46:23 -0700 (PDT) Received: by mail-pg1-f171.google.com with SMTP id q1so9245063pgl.11 for ; Mon, 24 Oct 2022 10:46:23 -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=Dnac3jXX+DqSJpyd7IS9wnKftHu0DkEkt46zBI0n+Aw=; b=bJVaxrjh52Jj/A1DMgeGWw1oKPweEw9UOXvf8EFTwvA8D8ugu6rBHlnGtm1bIlw5PQ l5OqDfGhvvEFh9Re8EPN7e71ep9rcuQhp61yWM5VLIpY/WrRP4Ffc7AI3lz72h+brjlK sJ5WzwCMqPn9AgRwnQB7v+5zG8eJd8kzuwXkBqJ4WLUKYZ4bEot4vmqMLBysqNVxA8OG Xar7QdDpDvl5I9eci8QDGnt1xqpgDZXaZlZt/jFHkTJclTFbwpwSXDQQBlQWZcf1U3Cz o52ckA0VQDgR01zMqQo72Me9QmKCfQMHbrcLVRwo6iYzvA9EJ3a5OInY9nHPaP0zolVh JnAg== 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=Dnac3jXX+DqSJpyd7IS9wnKftHu0DkEkt46zBI0n+Aw=; b=kf+NI7rncN93pimq0M0/mlY5Kfq5ki2VjflIPpjc9pGPeNgNiHdaNJMt/78TI7PIMm 7gywhjxB5BjiCCvOIVCdKyRpQoppZwI8eEHPz6e5tOnxYd4GUQorjWnf4EgRp2I7lFzA Uxpx5qOOfGgtSq8fmY8orUK4Rh3lD262b4UKlyySfEjNHZSK1XUtx1+dTyzlLNxpkwib Zt1LavULK2dvyYMWbcZ6bCA01LRniMuXSZ5t5FTdh6i3TLZUJnkjPMGZIx/TM+qOknlD 38JvSJOnBTYwEMhbVfRZEFz1VxHX0WneJ3f9X/pSZQ2aVfXOggSPwyFBjLXxcCM3BBtG zsRw== X-Gm-Message-State: ACrzQf1FkempzjYBnuCenathSRfsrjHJoY8BlhMAVKwgofVyYmf2ajXT NDKJanGTgTuLDJfd7atEKZgOX2uo+2YTxxiultzuzA== X-Received: by 2002:a63:689:0:b0:46e:be81:566c with SMTP id 131-20020a630689000000b0046ebe81566cmr15181143pgg.403.1666633465524; Mon, 24 Oct 2022 10:44:25 -0700 (PDT) MIME-Version: 1.0 References: <20221020175655.1660864-1-ndesaulniers@google.com> In-Reply-To: From: Nick Desaulniers Date: Mon, 24 Oct 2022 10:44:13 -0700 Message-ID: Subject: Re: [PATCH] Makefile.debug: support for -gz=zstd To: sedat.dilek@gmail.com, 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 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,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 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?" -- Thanks, ~Nick Desaulniers