Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1064081: ITP: golang-github-cloudflare-cbpfc -- cBPF to C or eBPF compiler

2 views
Skip to first unread message

Loren M. Lang

unread,
Feb 16, 2024, 6:10:07 PMFeb 16
to
Package: wnpp
Severity: wishlist
Owner: Loren M. Lang <lor...@north-winds.org>

* Package name : golang-github-cloudflare-cbpfc
Version : 0.0~git20231012.992ed75-1
Upstream Author : Cloudflare
* URL : https://github.com/cloudflare/cbpfc
* License : BSD-3-clause
Programming Lang: Go
Description : cBPF to C or eBPF compiler

cbpfc
.
GoDoc (https://godoc.org/github.com/cloudflare/cbpfc)
.
cbpfc is a classic BPF (cBPF) to extended BPF (eBPF) compiler. It can
compile cBPF to eBPF, or to C, and the generated code should be accepted
by the kernel verifier.
.
cbpfc/clang (https://godoc.org/github.com/cloudflare/cbpfc/clang) is a
simple clang wrapper for compiling C to eBPF.
.
Tests
.
Dependencies
.
* clang
* Path can be set via environment variable $CLANG
.
.
Unprivileged
.
* go test -short
.
Full
.
* Requires:
* root or CAP_SYS_ADMIN to load XDP programs
* Recent (4.14+) Linux kernel
* sudo go test


This is a dependency for pwru which is in RFP and I plan to complete packaging
shortly. pwru is an eBPF-based Linux kernel networking debugger.
0 new messages