From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from www62.your-server.de (www62.your-server.de [213.133.104.62]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E31C629CA for ; Wed, 2 Feb 2022 10:42:05 +0000 (UTC) Received: from sslproxy06.your-server.de ([78.46.172.3]) by www62.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92.3) (envelope-from ) id 1nFCpg-00009B-4Z; Wed, 02 Feb 2022 11:25:48 +0100 Received: from [85.1.206.226] (helo=linux.home) by sslproxy06.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFCpf-00078Q-P3; Wed, 02 Feb 2022 11:25:47 +0100 Subject: Re: [PATCH bpf-next 0/5] Allow CONFIG_DEBUG_INFO_DWARF5=y + CONFIG_DEBUG_INFO_BTF=y To: Andrii Nakryiko , Nathan Chancellor Cc: Alexei Starovoitov , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Nick Desaulniers , Networking , bpf , open list , llvm@lists.linux.dev References: <20220201205624.652313-1-nathan@kernel.org> From: Daniel Borkmann Message-ID: Date: Wed, 2 Feb 2022 11:25:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.103.5/26440/Tue Feb 1 10:29:16 2022) On 2/2/22 8:05 AM, Andrii Nakryiko wrote: > On Tue, Feb 1, 2022 at 12:56 PM Nathan Chancellor wrote: >> >> 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. +1, thanks for working on getting this enabled! I think patches 2 and 3 are rather logically separate, so as-is is fine as well imho. Applied, thanks!