Skip to content

Commit cf05e49

Browse files
committed
Add README for BCC Examples
1 parent a7394cc commit cf05e49

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

BCC-Examples/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## BCC examples ported to PythonBPF
2+
3+
This repository contains examples of BCC tutorial examples that have been ported to use **PythonBPF**.
4+
5+
## Requirements
6+
- install `pythonbpf` and `pylibbpf` using pip.
7+
- You will also need `matplotlib` for vfsreadlat.py example.
8+
- You will also need `rich` for vfsreadlat_rich.py example.
9+
- You will also need `plotly` and `dash` for vfsreadlat_plotly.py example.
10+
11+
## Usage
12+
- You'll need root privileges to run these examples. If you are using a virtualenv, use the following command to run the scripts:
13+
```bash
14+
sudo <path_to_virtualenv>/bin/python3 <script_name>.py
15+
```
16+
- For vfsreadlat_plotly.py, run the following command to start the Dash server:
17+
```bash
18+
sudo <path_to_virtualenv>/bin/python3 vfsreadlat_plotly/bpf_program.py
19+
```
20+
Then open your web browser and navigate to the given URL.

0 commit comments

Comments
 (0)