Skip to content

Allow CONFIG_DEBUG_INFO_DWARF5=y + CONFIG_DEBUG_INFO_BTF=y

Nathan Chancellor bpf lkml llvm netdev oe-kbuild-all stable 1 version Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 2 repliesApplied 5/5

Patches in v1 All 5 applied

#Subject and filesSizeRepliesApplied
1/5MAINTAINERS: Add scripts/pahole-flags.sh to BPF sectionMAINTAINERS+1 -00 repliesApplied
2/5kbuild: Add CONFIG_PAHOLE_VERSIONMAINTAINERS init/Kconfig scripts/pahole-version.sh+18 -00 repliesApplied
3/5scripts/pahole-flags.sh: Use pahole-version.shscripts/pahole-flags.sh+1 -10 repliesApplied
4/5lib/Kconfig.debug: Use CONFIG_PAHOLE_VERSIONlib/Kconfig.debug+2 -20 repliesApplied
5/5lib/Kconfig.debug: Allow BTF + DWARF5 with pahole 1.21+lib/Kconfig.debug+1 -10 repliesApplied

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAndrii Nakryiko
SeriesA-b A-b A-b A-b A-b A-b A-b A-b A-b A-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf-next 0/5] Allow CONFIG_DEBUG_INFO_DWARF5=y + CONFIG_DEBUG_INFO_BTF=y

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+

 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

Signature · 1 line
2.35.1