mirror of
https://github.com/varun-r-mallya/Python-BPF.git
synced 2025-12-31 21:06:25 +00:00
839 B
839 B
BCC examples ported to PythonBPF
This folder contains examples of BCC tutorial examples that have been ported to use PythonBPF.
Requirements
- install
pythonbpfandpylibbpfusing pip. - You will also need
matplotlibfor vfsreadlat.py example. - You will also need
richfor vfsreadlat_rich.py example. - You will also need
plotlyanddashfor 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:
sudo <path_to_virtualenv>/bin/python3 <script_name>.py - For vfsreadlat_plotly.py, run the following command to start the Dash server:
Then open your web browser and navigate to the given URL.
sudo <path_to_virtualenv>/bin/python3 vfsreadlat_plotly/bpf_program.py