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
This library provides Python bindings for libbpf on Linux to make loading of eBPF object files easier. This is meant to
7
-
be used along with `pythonbpf`, the eBPF Python DSL compiler. This library makes it possible to attach these programs to
8
-
events in the kernel right from inside Python.
9
13
10
-
# IN DEVELOPMENT. DO NOT USE.
14
+
This library provides Python bindings for **libbpf** on Linux, making it easier to load eBPF object files. It is designed to be used together with [PythonBPF](https://github.com/pythonbpf/python-bpf), the eBPF compiler for Python. With these bindings, you can attach eBPF programs to kernel events directly from Python.
15
+
All programs written with this are to be run with a `sudo` Python interpreter.
11
16
12
-
## Prerequisites
17
+
> **Note**: This project is under active development and not ready for production use.
18
+
19
+
## Dependencies
13
20
14
21
* A compiler with C++11 support
15
22
* Pip 10+ or CMake >= 4.1
16
23
* Ninja or Pip 10+
17
24
18
-
19
25
## Installation
26
+
`pip install pylibbpf`
27
+
28
+
## Development
20
29
21
-
Just clone this repository and pip install. Note the `--recursive` option which is
30
+
Clone this repository and pip install. Note the `--recursive` option which is
22
31
needed for the pybind11 submodule:
23
32
24
33
```bash
@@ -30,11 +39,5 @@ pip install .
30
39
With the `setup.py` file included in this example, the `pip install` command will
31
40
invoke CMake and build the pybind11 module as specified in `CMakeLists.txt`.
32
41
33
-
## Development
34
-
Do this before running to make sure Python can manipulate bpf programs without sudo
0 commit comments