mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-10-29 11:45:17 +08:00
docs: add generated tutorial compatibility matrix (#212)
* docs: declare tutorial compatibility requirements * docs: generate tutorial compatibility matrix * fix: correct BPF Arena minimum kernel * refactor: simplify compatibility validation --------- Co-authored-by: LinuxDev9002 <i@littlefisher.me>
This commit is contained in:
@@ -1,2 +1,10 @@
|
||||
level=Depth
|
||||
type=Tracing
|
||||
kernel_min=5.8
|
||||
kernel_min_basis=required-feature
|
||||
architectures=x86_64,arm64
|
||||
btf=required
|
||||
kernel_config=CONFIG_BPF=y,CONFIG_BPF_SYSCALL=y,CONFIG_BPF_EVENTS=y,CONFIG_DEBUG_INFO_BTF=y,CONFIG_TRACEPOINTS=y
|
||||
hardware=none
|
||||
root=required
|
||||
test_status=not-in-ci
|
||||
|
||||
@@ -315,7 +315,7 @@ static void print_stats(struct energy_monitor_bpf *skel)
|
||||
### Prerequisites
|
||||
|
||||
Before building, ensure you have:
|
||||
- Linux kernel 5.4 or newer with BTF support
|
||||
- Linux kernel 5.8 or newer with BTF support (the eBPF monitor uses a BPF ring buffer)
|
||||
- libbpf development files
|
||||
- clang and llvm for eBPF compilation
|
||||
- Basic build tools (make, gcc)
|
||||
|
||||
@@ -270,7 +270,7 @@ static void print_stats(struct energy_monitor_bpf *skel)
|
||||
|
||||
### 先决条件
|
||||
|
||||
在构建之前,需要确保系统环境满足几个基本要求。首先需要 Linux 内核 5.4 或更新版本,且支持 BTF(BPF 类型格式)功能。其次要安装 libbpf 开发文件,这是 eBPF 程序开发的基础库。编译 eBPF 程序需要 clang 和 llvm 工具链。最后,还需要安装基本的构建工具,包括 make 和 gcc。
|
||||
在构建之前,需要确保系统环境满足几个基本要求。首先需要 Linux 内核 5.8 或更新版本(eBPF 监控器使用 BPF ring buffer),且支持 BTF(BPF 类型格式)功能。其次要安装 libbpf 开发文件,这是 eBPF 程序开发的基础库。编译 eBPF 程序需要 clang 和 llvm 工具链。最后,还需要安装基本的构建工具,包括 make 和 gcc。
|
||||
|
||||
### 编译
|
||||
|
||||
@@ -573,4 +573,4 @@ ls /sys/kernel/btf/vmlinux
|
||||
|
||||
eBPF 的内核集成和高效事件处理的结合使其成为生产能源监控的理想选择。无论您是优化数据中心工作负载、延长移动设备的电池寿命,还是只是对应用程序的能源足迹感到好奇,eBPF 都提供了您进行详细分析所需的工具。
|
||||
|
||||
随着生态系统的成熟,像 Kepler 这样的项目已经投入生产,cpufreq_ext 正在接近主线包含,我们正在进入一个能源感知计算成为默认而不是事后想法的时代。立即开始监控您的应用程序的能源消耗,为更可持续的计算未来做出贡献!
|
||||
随着生态系统的成熟,像 Kepler 这样的项目已经投入生产,cpufreq_ext 正在接近主线包含,我们正在进入一个能源感知计算成为默认而不是事后想法的时代。立即开始监控您的应用程序的能源消耗,为更可持续的计算未来做出贡献!
|
||||
|
||||
Reference in New Issue
Block a user