* [PR PATCH] linux5.7: enable BPF type format on x86_64
@ 2020-07-12 10:02 egorenar
2020-07-23 13:39 ` ahesford
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: egorenar @ 2020-07-12 10:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 543 bytes --]
There is a new pull request by egorenar against master on the void-packages repository
https://github.com/egorenar/void-packages linux-5.7-enable-btf-x86_64
https://github.com/void-linux/void-packages/pull/23534
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
A patch file from https://github.com/void-linux/void-packages/pull/23534.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-linux-5.7-enable-btf-x86_64-23534.patch --]
[-- Type: text/x-diff, Size: 1055 bytes --]
From 1459637b9d8d1df4ca46917da29d167d4517c236 Mon Sep 17 00:00:00 2001
From: Alexander Egorenkov <egorenar-dev@posteo.net>
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 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: linux5.7: enable BPF type format on x86_64
2020-07-12 10:02 [PR PATCH] linux5.7: enable BPF type format on x86_64 egorenar
@ 2020-07-23 13:39 ` ahesford
2020-07-23 13:39 ` ahesford
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ahesford @ 2020-07-23 13:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 309 bytes --]
New comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/23534#issuecomment-663012927
Comment:
According to the issue:
> Note that when using this config, pahole utility becomes a build dependency.
At a minimum, this dependency should be added to the template.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: linux5.7: enable BPF type format on x86_64
2020-07-12 10:02 [PR PATCH] linux5.7: enable BPF type format on x86_64 egorenar
2020-07-23 13:39 ` ahesford
@ 2020-07-23 13:39 ` ahesford
2020-07-24 18:37 ` [PR PATCH] [Updated] " egorenar
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: ahesford @ 2020-07-23 13:39 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 311 bytes --]
New comment by ahesford on void-packages repository
https://github.com/void-linux/void-packages/pull/23534#issuecomment-663012927
Comment:
According to the issue:
> Note that when using this config, pahole utility becomes a build dependency.
At a minimum, this dependency should be added to the template.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PR PATCH] [Updated] linux5.7: enable BPF type format on x86_64
2020-07-12 10:02 [PR PATCH] linux5.7: enable BPF type format on x86_64 egorenar
2020-07-23 13:39 ` ahesford
2020-07-23 13:39 ` ahesford
@ 2020-07-24 18:37 ` egorenar
2020-07-25 8:18 ` egorenar
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: egorenar @ 2020-07-24 18:37 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 548 bytes --]
There is an updated pull request by egorenar against master on the void-packages repository
https://github.com/egorenar/void-packages linux-5.7-enable-btf-x86_64
https://github.com/void-linux/void-packages/pull/23534
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
A patch file from https://github.com/void-linux/void-packages/pull/23534.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-linux-5.7-enable-btf-x86_64-23534.patch --]
[-- Type: text/x-diff, Size: 1558 bytes --]
From 60dc797faec449cf89a0d66f3bc4084487a10359 Mon Sep 17 00:00:00 2001
From: Alexander Egorenkov <egorenar-dev@posteo.net>
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"
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PR PATCH] [Updated] linux5.7: enable BPF type format on x86_64
2020-07-12 10:02 [PR PATCH] linux5.7: enable BPF type format on x86_64 egorenar
` (2 preceding siblings ...)
2020-07-24 18:37 ` [PR PATCH] [Updated] " egorenar
@ 2020-07-25 8:18 ` egorenar
2020-08-04 13:26 ` leahneukirchen
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: egorenar @ 2020-07-25 8:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 548 bytes --]
There is an updated pull request by egorenar against master on the void-packages repository
https://github.com/egorenar/void-packages linux-5.7-enable-btf-x86_64
https://github.com/void-linux/void-packages/pull/23534
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
A patch file from https://github.com/void-linux/void-packages/pull/23534.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-linux-5.7-enable-btf-x86_64-23534.patch --]
[-- Type: text/x-diff, Size: 1558 bytes --]
From 370aaf60363dca37308dda58f91697ddee604597 Mon Sep 17 00:00:00 2001
From: Alexander Egorenkov <egorenar-dev@posteo.net>
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"
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: linux5.7: enable BPF type format on x86_64
2020-07-12 10:02 [PR PATCH] linux5.7: enable BPF type format on x86_64 egorenar
` (3 preceding siblings ...)
2020-07-25 8:18 ` egorenar
@ 2020-08-04 13:26 ` leahneukirchen
2020-08-04 15:06 ` q66
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: leahneukirchen @ 2020-08-04 13:26 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 254 bytes --]
New comment by leahneukirchen on void-packages repository
https://github.com/void-linux/void-packages/pull/23534#issuecomment-668596164
Comment:
Hm, this works on 5.4 without the flag... do you know why? (It prints the error, but then does the thing.)
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: linux5.7: enable BPF type format on x86_64
2020-07-12 10:02 [PR PATCH] linux5.7: enable BPF type format on x86_64 egorenar
` (4 preceding siblings ...)
2020-08-04 13:26 ` leahneukirchen
@ 2020-08-04 15:06 ` q66
2020-08-04 15:18 ` leahneukirchen
2020-08-04 15:18 ` [PR PATCH] [Merged]: " leahneukirchen
7 siblings, 0 replies; 9+ messages in thread
From: q66 @ 2020-08-04 15:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 190 bytes --]
New comment by q66 on void-packages repository
https://github.com/void-linux/void-packages/pull/23534#issuecomment-668652031
Comment:
probably a red herring and the warnings are unrelated
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: linux5.7: enable BPF type format on x86_64
2020-07-12 10:02 [PR PATCH] linux5.7: enable BPF type format on x86_64 egorenar
` (5 preceding siblings ...)
2020-08-04 15:06 ` q66
@ 2020-08-04 15:18 ` leahneukirchen
2020-08-04 15:18 ` [PR PATCH] [Merged]: " leahneukirchen
7 siblings, 0 replies; 9+ messages in thread
From: leahneukirchen @ 2020-08-04 15:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 422 bytes --]
New comment by leahneukirchen on void-packages repository
https://github.com/void-linux/void-packages/pull/23534#issuecomment-668658870
Comment:
Enabling this for x86_64 now, results in ~900k overhead in vmlinuz, but for advanced usage it will probably be a common dependency in the future. Arch has enabled it as well. We'll follow up with other architectures after some testing.
Skipping rebuild for .13 to appear.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PR PATCH] [Merged]: linux5.7: enable BPF type format on x86_64
2020-07-12 10:02 [PR PATCH] linux5.7: enable BPF type format on x86_64 egorenar
` (6 preceding siblings ...)
2020-08-04 15:18 ` leahneukirchen
@ 2020-08-04 15:18 ` leahneukirchen
7 siblings, 0 replies; 9+ messages in thread
From: leahneukirchen @ 2020-08-04 15:18 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 370 bytes --]
There's a merged pull request on the void-packages repository
linux5.7: enable BPF type format on x86_64
https://github.com/void-linux/void-packages/pull/23534
Description:
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
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2020-08-04 15:18 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-12 10:02 [PR PATCH] linux5.7: enable BPF type format on x86_64 egorenar
2020-07-23 13:39 ` ahesford
2020-07-23 13:39 ` ahesford
2020-07-24 18:37 ` [PR PATCH] [Updated] " egorenar
2020-07-25 8:18 ` egorenar
2020-08-04 13:26 ` leahneukirchen
2020-08-04 15:06 ` q66
2020-08-04 15:18 ` leahneukirchen
2020-08-04 15:18 ` [PR PATCH] [Merged]: " leahneukirchen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).