File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments