Skip to content

Commit 5bd4d22

Browse files
Add recommended OS version (eunomia-bpf#98)
* Update README.md 更新 Ubuntu 版本要求 * Update README.md * Update README_en.md --------- Co-authored-by: 云微 <1067852565@qq.com>
1 parent 685680c commit 5bd4d22

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/1-helloworld/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616

1717
要开发eBPF程序,您需要安装以下软件和工具:
1818

19-
- Linux 内核:由于eBPF是内核技术,因此您需要具备较新版本的Linux内核(推荐4.8及以上版本),以支持eBPF功能。
19+
- Linux 内核:由于eBPF是内核技术,因此您需要具备较新版本的Linux内核(至少 4.8 及以上版本,建议至少在 5.15 以上),以支持eBPF功能。
20+
- 建议使用最新的 Ubuntu 版本(例如 Ubuntu 23.10)以获得最佳的学习体验,较旧的内核 eBPF 功能支持可能相对不全。
2021
- LLVM 和 Clang:这些工具用于编译eBPF程序。安装最新版本的LLVM和Clang可以确保您获得最佳的eBPF支持。
2122

2223
eBPF 程序主要由两部分构成:内核态部分和用户态部分。内核态部分包含 eBPF 程序的实际逻辑,用户态部分负责加载、运行和监控内核态程序。

src/1-helloworld/README_en.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ Before starting to write eBPF programs, we need to prepare a suitable developmen
1616

1717
To develop eBPF programs, you need to install the following software and tools:
1818

19-
- Linux kernel: Since eBPF is a kernel technology, you need to have a relatively new version of the Linux kernel (recommended version 4.8 and above) to support eBPF functionality.
19+
- Linux kernel: Since eBPF is a kernel technology, you need to have a relatively new version of the Linux kernel (minimium version 4.8 and above, suggested version is 5.15+ or 6.2+) to support eBPF functionality.
20+
- If possible, install a new version of Ubuntu (e.g. 23.10) would be better.
2021
- LLVM and Clang: These tools are used to compile eBPF programs. Installing the latest version of LLVM and Clang ensures that you get the best eBPF support.
2122

2223
An eBPF program consists of two main parts: the kernel space part and the user space part. The kernel space part contains the actual logic of the eBPF program, while the user space part is responsible for loading, running, and monitoring the kernel space program.

0 commit comments

Comments
 (0)