From 629135a78069f272b3600721fb08bf853073aec3 Mon Sep 17 00:00:00 2001 From: John Kariuki Date: Thu, 25 Aug 2022 11:17:58 -0700 Subject: [PATCH] doc/usdt: update build section After running into multiple issues with missing packages when building bpftrace, I went to the bpftrace repo and used the install documentation to successfully build and install bpftrace. This patch updates the spdk documentation to point to the documentation in the bpftrace repo. Change-Id: Iab5ef901d282a26d6a3c4f59cceb46b317ee658a Signed-off-by: John Kariuki Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14221 Tested-by: SPDK CI Jenkins Reviewed-by: Dong Yi Reviewed-by: Ben Walker Reviewed-by: Tomasz Zawadzki --- doc/usdt.md | 33 +-------------------------------- 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/doc/usdt.md b/doc/usdt.md index 19ff05626..b75864062 100644 --- a/doc/usdt.md +++ b/doc/usdt.md @@ -1,41 +1,10 @@ # Userspace DTrace (USDT) {#usdt} -## Package Dependencies - -These dependencies are needed for building bpftrace and -the sys/sdt.h header file that SPDK libraries will include -for DTRACE_PROBE macro definitions. - -Fedora: -libbpf -gtest-devel -gmock-devel -bcc-devel -systemtap-sdt-devel -llvm-devel -bison -flex - -Ubuntu: -systemtap-sdt-dev -libbpfcc-dev -libclang-7-dev -bison -flex - ## Building bpftrace We have found issues with the packaged bpftrace on both Ubuntu 20.04 and Fedora 33. So bpftrace should be built and installed from source. - -```bash -git clone https://github.com/iovisor/bpftrace.git -mkdir bpftrace/build -cd bpftrace/build -cmake -DCMAKE_BUILD_TYPE=Release .. -make -sudo make install -``` +To build and install bpftrace go to [building bpftraces](https://github.com/iovisor/bpftrace/blob/master/INSTALL.md#building-bpftrace) ## bpftrace.sh