You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,10 +41,34 @@ Python-BPF is an LLVM IR generator for eBPF programs written in Python. It uses
41
41
---
42
42
43
43
## Try It Out!
44
-
Run
44
+
45
+
#### First, generate the vmlinux.py file for your kernel:
46
+
- Install the required dependencies:
47
+
- On Ubuntu:
48
+
```bash
49
+
sudo apt-get install bpftool clang
50
+
pip install ctypeslib2
51
+
```
52
+
- Generate the `vmlinux.py` using:
53
+
```bash
54
+
sudo tools/vmlinux-gen.py
55
+
```
56
+
- Copy this file to `BCC-Examples/`
57
+
58
+
#### Next, install requirements for BCC-Examples:
59
+
- These requirements are only required for the python notebooks, vfsreadlat and container-monitor examples.
60
+
```bash
61
+
pip install -r BCC-Examples/requirements.txt
62
+
```
63
+
- Now, follow the instructions in the [BCC-Examples/README.md](https://github.com/pythonbpf/Python-BPF/blob/master/BCC-Examples/README.md) to run the examples.
0 commit comments