Thank you for your interest in cpp-bpf. This document applies to all repositories in the cpp-bpf organization unless a repository says otherwise.
- Read the vision and scope. Changes outside the scope, such as a separate loader or support for the C++ standard library in BPF programs, are unlikely to be accepted.
- For anything larger than a small fix, open an issue first so the approach can be discussed before you write the code.
Many problems with C++ in BPF are bugs in clang, libbpf or the kernel. Those are fixed upstream, not worked around here:
- clang and LLVM: llvm/llvm-project,
label
backend:BPF - libbpf and the kernel: the BPF mailing list
If you are not sure where a problem belongs, open an issue here and we will help find out.
- Keep each pull request to one logical change, with a commit message that explains why the change is needed.
- Add or update tests for the change.
- Make sure CI passes. CI for first-time contributors starts after a maintainer approves it.
All commits must be signed off under the
Developer Certificate of Origin, as in
the Linux kernel. Add a Signed-off-by line with your real name and email:
git commit -s
The use of AI tools is covered by the Generative AI Policy.
In short: you are fully accountable for what you submit, and non-trivial use
of AI tools must be disclosed with its
AI Influence Level
(AIL) in the pull request description; maintainers add the matching
ail:N label. Do not credit AI tools as authors:
no Co-Authored-By or Signed-off-by lines for AI tools, as only a human
can certify the DCO.
Everyone participating in cpp-bpf is expected to follow the Code of Conduct.