AW: [PATCH] Makefile.debug: support for -gz=zstd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




-----Ursprüngliche Nachricht-----
Von: Nick Desaulniers <ndesaulniers@xxxxxxxxxx> 
Gesendet: Montag, 24. Oktober 2022 19:44
An: sedat.dilek@xxxxxxxxx; Masahiro Yamada <masahiroy@xxxxxxxxxx>
Cc: Nathan Chancellor <nathan@xxxxxxxxxx>; Fangrui Song <maskray@xxxxxxxxxx>; Sedat Dilek (DHL Supply Chain) <sedat.dilek@xxxxxxx>; Michal Marek <michal.lkml@xxxxxxxxxxx>; Nick Terrell <terrelln@xxxxxx>; Tom Rix <trix@xxxxxxxxxx>; Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>; Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>; David Gow <davidgow@xxxxxxxxxx>; Kees Cook <keescook@xxxxxxxxxxxx>; Josh Poimboeuf <jpoimboe@xxxxxxxxxx>; Dan Williams <dan.j.williams@xxxxxxxxx>; Miguel Ojeda <ojeda@xxxxxxxxxx>; Isabella Basso <isabbasso@xxxxxxxxxx>; Vlastimil Babka <vbabka@xxxxxxx>; Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx>; linux-kernel@xxxxxxxxxxxxxxx; linux-kbuild@xxxxxxxxxxxxxxx; llvm@xxxxxxxxxxxxxxx
Betreff: Re: [PATCH] Makefile.debug: support for -gz=zstd

On Sun, Oct 23, 2022 at 8:46 AM Sedat Dilek <sedat.dilek@xxxxxxxxx> wrote:
>
> On Thu, Oct 20, 2022 at 8:43 PM Nathan Chancellor <nathan@xxxxxxxxxx> 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?"

***

Cannot say what happens when CONFIG_XXX changes - I have not played with your patch.

Perhaps, we can use CONFIG_ DEBUG_INFO_COMPRESSED="none|zlib|zstd" with default: "none"?

-Sedat-






[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux