Commit 629135a7 authored by John Kariuki's avatar John Kariuki Committed by Tomasz Zawadzki
Browse files

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: default avatarJohn Kariuki <John.K.Kariuki@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14221


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarDong Yi <dongx.yi@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
parent 4f3e6e6c
Loading
Loading
Loading
Loading
+1 −32
Original line number Diff line number Diff line
# 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