From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9B813C433FE for ; Sat, 8 Oct 2022 07:24:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229634AbiJHHYz (ORCPT ); Sat, 8 Oct 2022 03:24:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbiJHHYv (ORCPT ); Sat, 8 Oct 2022 03:24:51 -0400 Received: from mail-yw1-x1135.google.com (mail-yw1-x1135.google.com [IPv6:2607:f8b0:4864:20::1135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 444A9E0F2; Sat, 8 Oct 2022 00:24:49 -0700 (PDT) Received: by mail-yw1-x1135.google.com with SMTP id 00721157ae682-345528ceb87so61807297b3.11; Sat, 08 Oct 2022 00:24:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.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=iWyKaMDISXeONSvEckpZKdFY0ruOeKzT3+3B4I6Kdl0=; b=hAntufvWWxh4y9Kq/xnf6e6DkuinIarFJBkCnuMRaRhyfUcUIlhFRG+hKtUd8XlOGj JEzmyfbG5geG6DOcIN3stenWNVbG1ueCi6YsjeyJuFCD2/vzZ50+Axumh6iQzFSlPGpv 1Y5GeZozwriCqigZ1xs1kjXM9hEbqhVNbqYDopI8Fzkt5xCvZevSylqQhnR2083SeCPg Ji9dsLbs8lkyd1HewLhH7DgiAxl0++0W39zRpqJxVyfUjcMSDHrmjNdPFzogmPkW9xpZ 356Tjt3wvFQwsPqbpI/eMCfxYMu7ApB/TtGDE3D/9hrQ75fz4Jz3fnGAIBMQZMqZXsS/ qkUw== 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=iWyKaMDISXeONSvEckpZKdFY0ruOeKzT3+3B4I6Kdl0=; b=2Yp5Xqe7wFJE9OhgWDS2VSukvQHpb+VUbGe0LoBXK4XfSGIjV78f7nXgPPzYVn6rTo mGJ+vPcWaA6MjOIAK/4zkBEsXGRRAF1P4BsrWWNUdCvr/TNsJt7yE7qrRhCi5xFPi85v 2JlObIxE/Mgial4Jve9sIvxMMP1C+DcsCK5M2tK4W6URgX9Rsiorc7aTfN2zlGoIrTi0 +nelZ+fLvSSS+gyJ5ApvOGOtW035LhcwXMSeR9cFGOa5++xwtxW2oxVCufoGo5e+iNfY OgiW9ccpgZRvfs5ZJQhKRpGDbx/gqUBngx3V2UORcIJUIxh2PPbWloG+oX2R8uZsU/Nr +plw== X-Gm-Message-State: ACrzQf2qGCBlVW+W2xWs88s4PbZ45SgK9lW8Z6xBbKYWOCGv3LGZFH3U fvWTimGkIjY/maZSLX8XxF1vidV1n6q0/TwpP2I= X-Google-Smtp-Source: AMsMyM7pcLcPfOdPXDuXPTm1G/LluYlawMFLzdGgaUJBksW476ZEt5+VZwvwIWiFEdBWyUKsUxCQES8dELrh/av7cDg= X-Received: by 2002:a0d:fdc1:0:b0:349:c82b:b142 with SMTP id n184-20020a0dfdc1000000b00349c82bb142mr7709579ywf.431.1665213889042; Sat, 08 Oct 2022 00:24:49 -0700 (PDT) MIME-Version: 1.0 References: <20220815013317.26121-1-dmitrii.bundin.a@gmail.com> In-Reply-To: From: Dmitrii Bundin Date: Sat, 8 Oct 2022 10:24:37 +0300 Message-ID: Subject: Re: [PATCH v3] kbuild: add debug level and macro defs options To: Masahiro Yamada Cc: Nick Desaulniers , Andrew Morton , Dan Williams , Eric Dumazet , Isabella Basso , Josh Poimboeuf , Kees Cook , Linux Kbuild mailing list , Linux Kernel Mailing List , Rasmus Villemoes , Fangrui Song , Michal Marek , Nathan Chancellor , "Peter Zijlstra (Intel)" , Vlastimil Babka Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Masahiro, > On top of that, it is easier to add CONFIG_DEBUG_INFO_FULL or whatever. As per the prior discussion, Nick has convinced me that configuring an additional choice for a full debug info might cause more problems that it solves in general. >And, -g1 for CONFIG_DEBUG_INFO_REDUCED if you think it is worthwhile. This indeed would shrink the image size, but with this option enabled there would be no information about local variables which might surprise users of the option. So I don't really think it is worthwhile. Regards, Dmitrii.