Skip to content

cloudflare/cbpfc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Hrushikesh Deshpande
Sep 20, 2024
ff978e9 · Sep 20, 2024

History

55 Commits
Sep 20, 2024
Nov 18, 2020
Mar 20, 2019
Apr 3, 2019
Aug 9, 2023
Aug 9, 2023
Aug 9, 2023
Aug 9, 2023
Nov 1, 2021
Oct 17, 2022
Oct 17, 2022
Apr 28, 2020
Oct 12, 2023
Oct 12, 2023
Nov 1, 2021
Apr 28, 2020

cbpfc

GoDoc

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 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

About

cBPF to C or eBPF compiler

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages