From cf05e4959dc082e0daf7ae9a07cf6a9d6e57407a Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Wed, 22 Oct 2025 04:41:00 +0530 Subject: [PATCH] Add README for BCC Examples --- BCC-Examples/README.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 BCC-Examples/README.md diff --git a/BCC-Examples/README.md b/BCC-Examples/README.md new file mode 100644 index 0000000..ff2f871 --- /dev/null +++ b/BCC-Examples/README.md @@ -0,0 +1,20 @@ +## BCC examples ported to PythonBPF + +This repository contains examples of BCC tutorial examples that have been ported to use **PythonBPF**. + +## Requirements +- install `pythonbpf` and `pylibbpf` using pip. +- You will also need `matplotlib` for vfsreadlat.py example. +- You will also need `rich` for vfsreadlat_rich.py example. +- You will also need `plotly` and `dash` for vfsreadlat_plotly.py example. + +## Usage +- You'll need root privileges to run these examples. If you are using a virtualenv, use the following command to run the scripts: + ```bash + sudo /bin/python3 .py + ``` +- For vfsreadlat_plotly.py, run the following command to start the Dash server: + ```bash + sudo /bin/python3 vfsreadlat_plotly/bpf_program.py + ``` + Then open your web browser and navigate to the given URL.