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 <John.K.Kariuki@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14221 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Dong Yi <dongx.yi@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
4f3e6e6c55
commit
629135a780
33
doc/usdt.md
33
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user