Debian Codegraph @

README.md

raw symbols SCIP
1 # cbpfc
2
3 [![GoDoc](https://godoc.org/github.com/cloudflare/cbpfc?status.svg)](https://godoc.org/github.com/cloudflare/cbpfc)
4
5 cbpfc is a classic BPF (cBPF) to extended BPF (eBPF) compiler.
6 It can compile cBPF to eBPF, or to C,
7 and the generated code should be accepted by the kernel verifier.
8
9 [cbpfc/clang](https://godoc.org/github.com/cloudflare/cbpfc/clang) is a simple clang wrapper
10 for compiling C to eBPF.
11
12
13 ## Tests
14
15 ### Dependencies
16
17 * `clang`
18 * Path can be set via environment variable `$CLANG`
19
20
21 ### Unprivileged
22
23 * `go test -short`
24
25
26 ### Full
27
28 * Requires:
29 * `root` or `CAP_SYS_ADMIN` to load XDP programs
30 * Recent (4.14+) Linux kernel
31
32 * `sudo go test`