Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1430411pxb; Wed, 2 Feb 2022 05:00:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwigLUPDAidTBfzATZ1WY4si8uKIjhvhDQA1ldvyGNUuAixLjXrzBmRp2VVLkPKc9SSi9Hw X-Received: by 2002:a63:85c3:: with SMTP id u186mr24050673pgd.199.1643806849730; Wed, 02 Feb 2022 05:00:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643806849; cv=none; d=google.com; s=arc-20160816; b=xBvjzYjLC7qlidWp8ToHXUUEzgLlzSowhbM0tDgvjeXX5W4QuFZuKXaKbKbbt+WolW W54JldBFqZSjZge37i+LGaTAHO8AhIAnAy+xhazXmmVAPLi6YVIxkjPs9qECs+MCJAGD PDq4cJCwavXvUyqR2g1w9y4hoLZfqPlgZkSS+Swvp36+BP8gmGtun8x1mRhpzodrzPHC 1uJxwNtRs+tb+LPj5R20KOpWwwlEql/Djxr92HSfHqeyqb6iom2q6KkbUu01X3zCLOlL ZZr7ovt+hSHM8lBGlTwtHrbTgyNmepAE4sFQMTN7IFLp9AJ56RjT4If5VDM3htjYy9jy E/gg== 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=SpryQOT2uTRwsdibcfsESI84DVoBT/VezHdCUqIw1nM=; b=IReZ+u3a3zHoWTEv7pIQrM28nFxdlITzyfIMcs9sEQ59hKbKEhJxi53xFpQOf1rWk+ slloh9sZrFsong2SOIgMM6xKiKFleXKzS/uMg4dJjl/wyQwfrrI7E2DXmAqs+L7DZQWi 0X1PdTG/JMiMKOktLwrnRgEAPJIIE9ll6PHsdlHZJSoqQu2nVLgXqZxb9appUFg42irc qx3u17yOOWi9sCgLhioyNnYqdsaNUZgxeXKRl2xaOQA+p1vl5Sfjt2fbT8J7S50a0YHT cerjP6Vg8C/H/updsFElNKb1cgStB7KtJc78IC1KrlhHpCuoGdJdlkm7Fn2lv7uoSLne p5NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Yh8JER6t; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q11si20476190plx.96.2022.02.02.05.00.36; Wed, 02 Feb 2022 05:00:49 -0800 (PST) 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=@gmail.com header.s=20210112 header.b=Yh8JER6t; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244784AbiBBHF1 (ORCPT + 99 others); Wed, 2 Feb 2022 02:05:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239384AbiBBHFZ (ORCPT ); Wed, 2 Feb 2022 02:05:25 -0500 Received: from mail-io1-xd34.google.com (mail-io1-xd34.google.com [IPv6:2607:f8b0:4864:20::d34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D3F4C061714; Tue, 1 Feb 2022 23:05:25 -0800 (PST) Received: by mail-io1-xd34.google.com with SMTP id n17so24271589iod.4; Tue, 01 Feb 2022 23:05:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=SpryQOT2uTRwsdibcfsESI84DVoBT/VezHdCUqIw1nM=; b=Yh8JER6t2u+rs0xm1gDMhpppjo8c55JDcz4lc1HhglDS5vddc25oWSMVv5dafoq2tL X0EqeQ14PSrUBuQkDiKHBefLoTCrIPMhBcMLC4RBUJhmE816dG1uZB9z3Sk6BbJklR3D Y6a17cBDceerLRMxU8JtWsbkJrqxlp3m1OZNOmBvDWxdv1i3Z4SOTXFxfqYAnKryxNoS Fhjl60AsaagVaNs1saZNbjsF9Vh7z04r7CWdRI6Fo4GCYvqXXp2ewZeDC79N66/yVUo6 LsUtUpHgRc6Rdk5tsGhSvgH2C2oCIAVi7+2HyASUyd7UtuupMDN9XfJnLBhHxs3Doeed rmlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=SpryQOT2uTRwsdibcfsESI84DVoBT/VezHdCUqIw1nM=; b=n7dBvnRJnjhyILduExkcn0unr80g4Bm7z3kXxCHYd+8CVwovS1gtEHbOP81Z/oGut4 C0ILWy3Qfgk2b0v1XZp0fMkpoCOePkGZJgOr7q6t3iobs9UOlLXe9jsIBsd8qW3cH/op IZR3K13m6acyQAWhqTGcb9jkX4bMb8L+GKXSirnK6X/HXZP+k05zyHmlp4ZDONecz2+2 fJVn2RiZETIfcA0GxOgnc3oGbStWMdIwzxr016JG9pxtyOjdzjTwffvN6+pdFaKYiKM4 taQ/HjGxHDXTjsSR7DK+fV0U5uuhuc+ZP31MUMuYqb3zGkYR8krdzAbYjXRIA/rRuipb OE6w== X-Gm-Message-State: AOAM533c5qjCKBr2AcCokzC8UJe3TSd5MDZsXIxgiV+uI1cxZS9edYtt JXpblPQjcfo9fZHM5Lu+d4x/pN9gs8Ho3XZuq+8= X-Received: by 2002:a02:2422:: with SMTP id f34mr14962916jaa.237.1643785524885; Tue, 01 Feb 2022 23:05:24 -0800 (PST) MIME-Version: 1.0 References: <20220201205624.652313-1-nathan@kernel.org> In-Reply-To: <20220201205624.652313-1-nathan@kernel.org> From: Andrii Nakryiko Date: Tue, 1 Feb 2022 23:05:13 -0800 Message-ID: Subject: Re: [PATCH bpf-next 0/5] Allow CONFIG_DEBUG_INFO_DWARF5=y + CONFIG_DEBUG_INFO_BTF=y To: Nathan Chancellor Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Nick Desaulniers , Networking , bpf , open list , llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 1, 2022 at 12:56 PM Nathan Chancellor wrote: > > Hi all, > > This series allows CONFIG_DEBUG_INFO_DWARF5 to be selected with > CONFIG_DEBUG_INFO_BTF=y by checking the pahole version. > > The first four patches add CONFIG_PAHOLE_VERSION and > scripts/pahole-version.sh to clean up all the places that pahole's > version is transformed into a 3-digit form. > > The fourth patch adds a PAHOLE_VERSION dependency to DEBUG_INFO_DWARF5 > so that there are no build errors when it is selected with > DEBUG_INFO_BTF. > > I build tested Fedora's aarch64 and x86_64 config with ToT clang 14.0.0 > and GCC 11 with CONFIG_DEBUG_INFO_DWARF5 enabled with both pahole 1.21 > and 1.23. > > Nathan Chancellor (5): > MAINTAINERS: Add scripts/pahole-flags.sh to BPF section > kbuild: Add CONFIG_PAHOLE_VERSION > scripts/pahole-flags.sh: Use pahole-version.sh > lib/Kconfig.debug: Use CONFIG_PAHOLE_VERSION > lib/Kconfig.debug: Allow BTF + DWARF5 with pahole 1.21+ > LGTM. I'd probably combine patches 2 and 3, but it's minor. I really like the CONFIG_PAHOLE_VERSION and how much cleaner it makes Kconfig options. Acked-by: Andrii Nakryiko > MAINTAINERS | 2 ++ > init/Kconfig | 4 ++++ > lib/Kconfig.debug | 6 +++--- > scripts/pahole-flags.sh | 2 +- > scripts/pahole-version.sh | 13 +++++++++++++ > 5 files changed, 23 insertions(+), 4 deletions(-) > create mode 100755 scripts/pahole-version.sh > > > base-commit: 533de4aea6a91eb670ff8ff2b082bb34f2c5d6ab > -- > 2.35.1 >