Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3826373ybb; Tue, 31 Mar 2020 12:46:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vu0V5y4d6LVSZaA+YAH6wOqAbwU1UI51V6sSExzPK+4YWrkl1pNeAQxyqos6xlzbs78bEqv X-Received: by 2002:a05:6830:12c4:: with SMTP id a4mr12843668otq.305.1585684007133; Tue, 31 Mar 2020 12:46:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585684007; cv=none; d=google.com; s=arc-20160816; b=oL3St77mYnCc0kk1BcJORXZAiHrYmsrwdx2PLdHX2kkDftWJsJ1ARMvLqblz74bkWi kdA4HuJj9AWHHzwTuz4WXkcCQBZa6tweu9Z9Atp56gRbzkXWRT3TLuBOLQxGfzZoLMke +y+XTcohUxr0s20keEQX12f3hk4AfsjNbpGDwDykLLIyH3GWK0O/PG/qjKgQWKNiLf1M GlmzhxqvIEfklV7JabSn5pXOCAbjwl8b9UBZ92HLIzgQjLixRGPTMz04gIs60wuC/QE/ rFgHQuI18ECcuZZjLi0vvHtBHXSgElGGSKzopGljLnv1q2Fh/rtEow578JNb+lZPfvuO uoJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=REjYZlG94i8PyvxEbrGw6FROa/0MlwWAThXqw6aFXhA=; b=Sf/HUZeST5KTHo2eGyMD6PL2Ywqip+oXMOmO9RpCLIoaQJvQL/I/vE5EUCTxn9az61 ZTaVP6erMc4qrKjLkTzM+mJ6mpD+R1lrIU2m7B+hilTn2eERj9KSSw1Mg/LG6PfEcFC3 AAxc0iJROJLT1s6H9UYiI9PLeBEQOMBH+07grV9qLe9CiUpS5aFhYE/j+jRgwrE8vJzZ 80X0bSrzqSwYRltNCRD/yr+NMP5/tf043opldbUfwtnvkqtPbmDWmaALiWhgrrmVuO75 HQj/d1pOZBMCEPfSEQAj1hvgaKl/BIPOCfuamvVFmlBuVxHeob/8o+vBniH8QXCaDCGH LySg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VSzLexTs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s199si7414397oih.169.2020.03.31.12.46.34; Tue, 31 Mar 2020 12:46:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VSzLexTs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730087AbgCaTp6 (ORCPT + 99 others); Tue, 31 Mar 2020 15:45:58 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:46768 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727875AbgCaTp6 (ORCPT ); Tue, 31 Mar 2020 15:45:58 -0400 Received: by mail-qt1-f193.google.com with SMTP id g7so19452812qtj.13; Tue, 31 Mar 2020 12:45:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=REjYZlG94i8PyvxEbrGw6FROa/0MlwWAThXqw6aFXhA=; b=VSzLexTs4R0b655EBqdGCoSiFIqAQHoDH/UYop0iyse8dwS75rGIg5+JF73dCSmK1g zEphrL0t82cI/7mDQyyl246sSAEeSaZYqwIjLSG8E6an5fc7yedc0djdKKfBh1e/+sX6 8hHIphF8tk+LMZqKjxxZasi5b4mRCYJm7kt/urRRmWEJnZRitnDeMeNIozr37N4Wsuxv PY5vrL5L1OYrgDjprWPaodKVqzE4OZXFXydKFQ0owREtK2KnYbdNY9BDVIySeE6mK0L/ f1KkeATFooGwCvPN8f86OH2P3zwP7dJWlab2UyZR3iMe+EZDreIPJ6FARa+xmZ8DiT1Y VvyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=REjYZlG94i8PyvxEbrGw6FROa/0MlwWAThXqw6aFXhA=; b=Bhaw6xWlaauB+MTUSw6SCgoP5rPPL458ZDHpYRdfo7Xk8fG+jR6oY5SdNOaLsDP6KQ YEmFDshh+3tB3UAIgdxLU6uwFUzt3N2ueX14qImjT+n1LIitNpEW7AyKKZYDsKZI66WI L2t/gadhJYxjYIq665h+lzDCajtu6pgQ4wgxuI4ZYcsRISThKE2ONm8wkTpFK8Bbl7N/ 2sbjCFvWRhOp3nYpvf9q/S2wpRh3HzitG0/YQKhB/hLuBGo8YZkdafUC0nZ7cFhuGuGK YtkdKuWqa2K046usOXSAGQ48z8Rt1DvnIBwP8U1MAyFAB6ka6SmYEaCszND6u2PCQe7a 6BFw== X-Gm-Message-State: ANhLgQ2RFlllpx+2aPwI0IJR3W75L7mLqAzww4oaJgPBbtMPg+8RqjJQ kM59p5aLNYKrpjAUEIilj713rpsJH2v2hoEKuDU= X-Received: by 2002:ac8:6f1b:: with SMTP id g27mr6856118qtv.117.1585683956976; Tue, 31 Mar 2020 12:45:56 -0700 (PDT) MIME-Version: 1.0 References: <20200331164719.15930-1-slava@bacher09.org> In-Reply-To: <20200331164719.15930-1-slava@bacher09.org> From: Andrii Nakryiko Date: Tue, 31 Mar 2020 12:45:46 -0700 Message-ID: Subject: Re: [PATCH] kbuild: disable DEBUG_INFO_SPLIT when BTF is on To: Slava Bacherikov Cc: Masahiro Yamada , Andrii Nakryiko , bpf , open list , Alexei Starovoitov , Daniel Borkmann Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 31, 2020 at 9:57 AM Slava Bacherikov wrote: > > Currently turning on DEBUG_INFO_SPLIT when DEBUG_INFO_BTF is also > enabled will produce invalid btf file, since gen_btf function in > link-vmlinux.sh script doesn't handle *.dwo files. > > Signed-off-by: Slava Bacherikov > --- > lib/Kconfig.debug | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug > index f61d834e02fe..a9429ef5eec8 100644 > --- a/lib/Kconfig.debug > +++ b/lib/Kconfig.debug > @@ -223,6 +223,7 @@ config DEBUG_INFO_DWARF4 > config DEBUG_INFO_BTF > bool "Generate BTF typeinfo" > depends on DEBUG_INFO > + depends on !DEBUG_INFO_SPLIT Thanks for following up! This looks good, but I think there are more DWARF-related configs that should be banned. See [0] and [1]. If you don't mind, let's use your patch to disable all of them in one go. So can you please update and disable DEBUG_INFO_REDUCED and GCC_PLUGIN_RANDSTRUCT? Thanks! [0] https://lore.kernel.org/bpf/202003311110.2B08091E@keescook [1] https://lore.kernel.org/bpf/a2b1a025-6a70-c3a5-fc19-155f0266946a@fb.com > help > Generate deduplicated BTF type information from DWARF debug info. > Turning this on expects presence of pahole tool, which will convert > -- > 2.24.1 >