diff --git a/src/12-profile/README.md b/src/12-profile/README.md index 86da8e6..d1f73f5 100644 --- a/src/12-profile/README.md +++ b/src/12-profile/README.md @@ -17,6 +17,8 @@ libbpf 是一个用于与 eBPF 交互的 C 库。它提供了创建、加载和 在本示例中,可以通过 libbpf 库编译运行它(以 Ubuntu/Debian 为例): +**NOTE:** 首先需要安装 `cargo` 才能编译得到 `profile`, 安装方法可以参考[Cargo 手册](https://rustwiki.org/en/cargo/getting-started/installation.html) + ```console $ git submodule update --init --recursive $ sudo apt install clang libelf1 libelf-dev zlib1g-dev diff --git a/src/12-profile/README_en.md b/src/12-profile/README_en.md index f96fc50..a9cf917 100644 --- a/src/12-profile/README_en.md +++ b/src/12-profile/README_en.md @@ -17,6 +17,8 @@ This information helps developers locate performance bottlenecks and optimize co In this example, you can compile and run it with the libbpf library (using Ubuntu/Debian as an example): +**NOTE:** To compile the `profile`, you first need to install `Cargo`, as shown in ["The Cargo Book"](https://rustwiki.org/en/cargo/getting-started/installation.html) + ```console $ git submodule update --init --recursive $ sudo apt install clang libelf1 libelf-dev zlib1g-dev