mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-02-03 10:14:44 +08:00
docs(profile): add information about compile (#66)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user