diff --git a/docs/0.quickstart.md b/docs/0.quickstart.md index a6aaf4b269c4e62e6b2c46baf68f9f18cf3ebdce..76a20959627bbded675df24625d1ca9632a13411 100644 --- a/docs/0.quickstart.md +++ b/docs/0.quickstart.md @@ -22,11 +22,32 @@ l**软件版本**:CANN 8.0RC3, torch 2.1.0, torch_npu 2.1.0.post10 - 下载源码: -- systrace编译源码: - +- 安装依赖包 ```shell - ## 安装依赖包 + ## 软件包版本:libbpf >= 0.8.1, clang >= 10.0.0 gcc >= 8.3.0, bpftool >= 6.8.0,如果版本均满足则跳过下面的手动安装步骤 [root@localhost sysTrace] yum install gcc g++ cmake make python3-devel protobuf-compiler protobuf-devel protobuf-c-devel libbpf clang libbpf-devel bpftool + ``` + + - 手动安装libbpf + ```shell + [root@localhost ~] git clone https://github.com/libbpf/libbpf.git + [root@localhost ~] git checkout v0.8.1 + [root@localhost ~] cd libbpf/src + [root@localhost ~] make && make install + ``` + +- 手动安装bpftool + + ```shell + [root@localhost ~] git clone --recurse-submodules https://github.com/libbpf/bpftool.git + [root@localhost ~] git submodule update --init + [root@localhost ~] cd src + [root@localhost ~] make + [root@localhost ~] make install + ``` + +- 编译 + ```shell [root@localhost sysTrace] cd sysTrace [root@localhost sysTrace] bash build.sh ## 编译产物均在build目录下,会用到libsysTrace.so和sysTrace_cli