/ship-bpf-with-go

An Example of shipping BPF code with your Go project

Primary LanguageCBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

How to ship BPF with your Go project

This repository shows you how to use bpf2go to embed pre-compiled eBPF in your Go project for easy distribution.

$ go generate
$ go build
$ sudo ./ship-bpf-with-go
$ ping localhost # in another window

It's the basis of a lightning talk at the 2020 eBPF Summit.