From e671caa366d54bf937f664d3091150fbe86c0c09 Mon Sep 17 00:00:00 2001 From: weli-l <1289113577@qq.com> Date: Sat, 12 Jul 2025 17:30:50 +0800 Subject: [PATCH] add version deps for build in 0.quickstart.md Signed-off-by: weli-l <1289113577@qq.com> --- docs/0.quickstart.md | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/docs/0.quickstart.md b/docs/0.quickstart.md index a6aaf4b..76a2095 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 -- Gitee