File: README.md

package info (click to toggle)
golang-github-cloudflare-cbpfc 0.0~git20231012.992ed75-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 232 kB
  • sloc: makefile: 4
file content (32 lines) | stat: -rw-r--r-- 676 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# cbpfc

[![GoDoc](https://godoc.org/github.com/cloudflare/cbpfc?status.svg)](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`