From c569e039855b61a4c7748bf7b2aa8eb84a204bf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= Date: Mon, 8 Jun 2020 15:58:42 +0200 Subject: [PATCH] README: Add BTF and Clang information for Arch Linux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Arch recently added BTF to their distribution kernels - see https://bugs.archlinux.org/task/66260 Signed-off-by: Toke Høiland-Jørgensen --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 068942f..7083aaf 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,8 @@ Some major Linux distributions come with kernel BTF already built in: - Fedora 31+ - RHEL 8.2+ - OpenSUSE Tumbleweed (in the next release, as of 2020-06-04) - + - Arch Linux (from kernel 5.7.1.arch1-1) + If your kernel doesn't come with BTF built-in, you'll need to build custom kernel. You'll need: - `pahole` 1.16+ tool (part of `dwarves` package), which performs DWARF to @@ -103,10 +104,11 @@ $ ls -la /sys/kernel/btf/vmlinux ``` To develop and build BPF programs, you'll need Clang/LLVM 10+. The following -distributions have Clang/LLVM 10+ installed by default: +distributions have Clang/LLVM 10+ packaged by default: - Fedora 32+ - Ubuntu 20.04+ - + - Arch Linux + Otherwise, please make sure to update it on your system. The following resources are useful to understand what BPF CO-RE is and how to