mbox series

[J,UNSTABLE,0/7] Upgrade from DWARF4 to DWARF5

Message ID 20220207151516.211675-1-dimitri.ledkov@canonical.com
Headers show
Series Upgrade from DWARF4 to DWARF5 | expand

Message

Dimitri John Ledkov Feb. 7, 2022, 3:15 p.m. UTC
Cherry-pick commits from v5.16-rc1, and bpf-next which allow enabling
DWARF5 simultaniously with BPF. This results in ~10% reduction in
Install-Size of the debug package. The required versions of compilers
and pahole to support DWARF5 are available in at least Focal and up.

Dimitri John Ledkov (1):
  UBUNTU: [Config] upgrade debug symbols from DWARF4 to DWARF5

Jiri Olsa (1):
  kbuild: Unify options for BTF generation for vmlinux and modules

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 ++
 Makefile                                  |  3 +++
 debian.master/config/annotations          |  3 +--
 debian.master/config/config.common.ubuntu |  5 +++--
 init/Kconfig                              |  4 ++++
 lib/Kconfig.debug                         |  4 ++--
 scripts/Makefile.modfinal                 |  2 +-
 scripts/link-vmlinux.sh                   | 11 +----------
 scripts/pahole-flags.sh                   | 20 ++++++++++++++++++++
 scripts/pahole-version.sh                 | 13 +++++++++++++
 10 files changed, 50 insertions(+), 17 deletions(-)
 create mode 100755 scripts/pahole-flags.sh
 create mode 100755 scripts/pahole-version.sh

Comments

Andrea Righi Feb. 8, 2022, 2:41 p.m. UTC | #1
On Mon, Feb 07, 2022 at 03:15:09PM +0000, Dimitri John Ledkov wrote:
> Cherry-pick commits from v5.16-rc1, and bpf-next which allow enabling
> DWARF5 simultaniously with BPF. This results in ~10% reduction in
> Install-Size of the debug package. The required versions of compilers
> and pahole to support DWARF5 are available in at least Focal and up.
> 

Looks good to me, ~10% size reduction looks promising, I think we should
start using these patches in jammy and unstable.

Acked-by: Andrea Righi <andrea.righi@canonical.com>
Paolo Pisati Feb. 11, 2022, 11 a.m. UTC | #2
On Mon, Feb 07, 2022 at 03:15:09PM +0000, Dimitri John Ledkov wrote:
> Cherry-pick commits from v5.16-rc1, and bpf-next which allow enabling
> DWARF5 simultaniously with BPF. This results in ~10% reduction in
> Install-Size of the debug package. The required versions of compilers
> and pahole to support DWARF5 are available in at least Focal and up.