README: Add BTF and Clang information for Arch Linux

Arch recently added BTF to their distribution kernels - see
https://bugs.archlinux.org/task/66260

Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
This commit is contained in:
Toke Høiland-Jørgensen
2020-06-08 15:58:42 +02:00
committed by Andrii Nakryiko
parent 1862741fb0
commit c569e03985

View File

@@ -88,7 +88,8 @@ Some major Linux distributions come with kernel BTF already built in:
- Fedora 31+ - Fedora 31+
- RHEL 8.2+ - RHEL 8.2+
- OpenSUSE Tumbleweed (in the next release, as of 2020-06-04) - 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 If your kernel doesn't come with BTF built-in, you'll need to build custom
kernel. You'll need: kernel. You'll need:
- `pahole` 1.16+ tool (part of `dwarves` package), which performs DWARF to - `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 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+ - Fedora 32+
- Ubuntu 20.04+ - Ubuntu 20.04+
- Arch Linux
Otherwise, please make sure to update it on your system. 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 The following resources are useful to understand what BPF CO-RE is and how to