@@ -29,7 +30,7 @@ To use some BPFtrace features, minimum kernel versions are required:
...
@@ -29,7 +30,7 @@ To use some BPFtrace features, minimum kernel versions are required:
# Building BPFtrace
# Building BPFtrace
## Ubuntu
# Ubuntu
You'll want the newest kernel possible (see kernel requirements), eg, by using Ubuntu 18.04 LTS (Bionic Beaver) or newer.
You'll want the newest kernel possible (see kernel requirements), eg, by using Ubuntu 18.04 LTS (Bionic Beaver) or newer.
...
@@ -61,7 +62,7 @@ make install
...
@@ -61,7 +62,7 @@ make install
The bpftrace binary will be in installed in /usr/local/bin/bpftrace, and tools in /usr/local/share/bpftrace/tools. You can change the install location using an argument to cmake, where the default is `-DCMAKE_INSTALL_PREFIX=/usr/local`.
The bpftrace binary will be in installed in /usr/local/bin/bpftrace, and tools in /usr/local/share/bpftrace/tools. You can change the install location using an argument to cmake, where the default is `-DCMAKE_INSTALL_PREFIX=/usr/local`.
## Fedora
# Fedora
You'll want the newest kernel possible (see kernel requirements), eg, by using Fedora 28 or newer.
You'll want the newest kernel possible (see kernel requirements), eg, by using Fedora 28 or newer.
...
@@ -76,7 +77,57 @@ make install
...
@@ -76,7 +77,57 @@ make install
The bpftrace binary will be in installed in /usr/local/bin/bpftrace, and tools in /usr/local/share/bpftrace/tools. You can change the install location using an argument to cmake, where the default is `-DCMAKE_INSTALL_PREFIX=/usr/local`.
The bpftrace binary will be in installed in /usr/local/bin/bpftrace, and tools in /usr/local/share/bpftrace/tools. You can change the install location using an argument to cmake, where the default is `-DCMAKE_INSTALL_PREFIX=/usr/local`.
## Using Docker
# Amazon Linux
In the future the install should be `yum install bpftrace`. Right now (16-Oct-2018), however, three dependencies need updating in the Amazon Linux repositories (llvm, libtinfo, bison), and bpftrace itself needs to be packaged. The current workaround is to build the three dependencies manually, as well as bpftrace. It's not fun, but it is doable, and will only get better as Amazon updates things.
```
sudo bash
builddir=/media/ephemeral0 # change to suit your system: needs about 2 Gbytes free
The bpftrace binary will be in installed in /usr/local/bin/bpftrace, and tools in /usr/local/share/bpftrace/tools. You may need to add /usr/local/bin to your $PATH. You can also change the install location using an argument to cmake, where the default is `-DCMAKE_INSTALL_PREFIX=/usr/local`.
# Using Docker
There are currently problems with BPFtrace string comparisons when using the Docker build. The regular build is recommended for now.
There are currently problems with BPFtrace string comparisons when using the Docker build. The regular build is recommended for now.