From 370aaf60363dca37308dda58f91697ddee604597 Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Sun, 12 Jul 2020 11:59:15 +0200 Subject: [PATCH] linux5.7: enable BPF type format on x86_64 Required e.g. for opensnoop from bcc-tools to fix the following problem: libbpf: failed to find valid kernel BTF libbpf: vmlinux BTF is not found bpf: Failed to load program: Invalid argument --- srcpkgs/linux5.7/files/x86_64-dotconfig | 2 +- srcpkgs/linux5.7/template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/linux5.7/files/x86_64-dotconfig b/srcpkgs/linux5.7/files/x86_64-dotconfig index 051a8db9923..9a94b7d6a16 100644 --- a/srcpkgs/linux5.7/files/x86_64-dotconfig +++ b/srcpkgs/linux5.7/files/x86_64-dotconfig @@ -9563,7 +9563,7 @@ CONFIG_DEBUG_INFO=y # CONFIG_DEBUG_INFO_REDUCED is not set # CONFIG_DEBUG_INFO_SPLIT is not set # CONFIG_DEBUG_INFO_DWARF4 is not set -# CONFIG_DEBUG_INFO_BTF is not set +CONFIG_DEBUG_INFO_BTF=y # CONFIG_GDB_SCRIPTS is not set # CONFIG_ENABLE_MUST_CHECK is not set CONFIG_FRAME_WARN=1024 diff --git a/srcpkgs/linux5.7/template b/srcpkgs/linux5.7/template index 7a250fb34c5..3b435f9b5c8 100644 --- a/srcpkgs/linux5.7/template +++ b/srcpkgs/linux5.7/template @@ -22,7 +22,7 @@ noshlibprovides=yes preserve=yes hostmakedepends="tar xz bc elfutils-devel flex gmp-devel kmod libmpc-devel - libressl-devel perl uboot-mkimage cpio" + libressl-devel perl uboot-mkimage cpio pahole" _kernver="${version}_${revision}" triggers="kernel-hooks"