Reduced Python frontend for eBPF
Project description
Python-BPF
This is an LLVM IR generator for eBPF programs in Python. We use llvmlite to generate LLVM IR code from pure Python code. This is then compiled to LLVM object files, which can be loaded into the kernel for execution.
Development
Step 0. Make a virtual environment and activate it using python3 -m venv .venv && source .venv/bin/activate.
Step 1. Run make install to install the required dependencies.
Step 2. Run make to see the compilation output of the example.
Step 3. Run check.sh to check if generated object file passes through the verifier inside the examples directory.
Step 4. Run make in the examples/c-form directory to modify the example C BPF program to check the actual LLVM IR generated by clang.
Development Notes
Run ./check.sh run execve2.o; in examples folder
Authors
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pythonbpf-0.1.0.tar.gz.
File metadata
- Download URL: pythonbpf-0.1.0.tar.gz
- Upload date:
- Size: 19.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
54de63290e0944a77f53d4d8c9b967d1c6321fae294cb89e17822d1c3ad82a13
|
|
| MD5 |
ba68183dd4365b9ae4f7f63522299981
|
|
| BLAKE2b-256 |
7230faef003305f5e98d7d1754947b24f463b10cd6d8109a0b07cb73c7a3caff
|
Provenance
The following attestation bundles were made for pythonbpf-0.1.0.tar.gz:
Publisher:
python-publish.yml on varun-r-mallya/Python-BPF
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pythonbpf-0.1.0.tar.gz -
Subject digest:
54de63290e0944a77f53d4d8c9b967d1c6321fae294cb89e17822d1c3ad82a13 - Sigstore transparency entry: 487515041
- Sigstore integration time:
-
Permalink:
varun-r-mallya/Python-BPF@a12c8e69aaffea15c39cf61f7216a6c50148f9f8 -
Branch / Tag:
refs/tags/v0.0.0 - Owner: https://github.com/varun-r-mallya
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a12c8e69aaffea15c39cf61f7216a6c50148f9f8 -
Trigger Event:
release
-
Statement type:
File details
Details for the file pythonbpf-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pythonbpf-0.1.0-py3-none-any.whl
- Upload date:
- Size: 22.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e9934cb8a64801d0575800db5862a5706d0240e6e626bed72a941b35caba382
|
|
| MD5 |
801357e7592d158f151407b479cb907e
|
|
| BLAKE2b-256 |
4b45c00dc2fef8ead954ef9483f96659cc72b17d8cfad23706cd1fe94b234a73
|
Provenance
The following attestation bundles were made for pythonbpf-0.1.0-py3-none-any.whl:
Publisher:
python-publish.yml on varun-r-mallya/Python-BPF
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pythonbpf-0.1.0-py3-none-any.whl -
Subject digest:
2e9934cb8a64801d0575800db5862a5706d0240e6e626bed72a941b35caba382 - Sigstore transparency entry: 487515053
- Sigstore integration time:
-
Permalink:
varun-r-mallya/Python-BPF@a12c8e69aaffea15c39cf61f7216a6c50148f9f8 -
Branch / Tag:
refs/tags/v0.0.0 - Owner: https://github.com/varun-r-mallya
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a12c8e69aaffea15c39cf61f7216a6c50148f9f8 -
Trigger Event:
release
-
Statement type: