• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..09-Apr-2021-

asm/H09-Apr-2021-1,7931,299

internal/H09-Apr-2021-2,8062,029

LICENSEH A D09-Apr-20211.1 KiB2419

abi.goH A D09-Apr-20214 KiB207172

collection.goH A D09-Apr-20216.9 KiB295195

doc.goH A D09-Apr-2021876 181

elf_reader.goH A D09-Apr-202120.6 KiB743590

go.modH A D09-Apr-2021100 63

linker.goH A D09-Apr-20211.9 KiB8759

map.goH A D09-Apr-202119.2 KiB799530

marshalers.goH A D09-Apr-20214.9 KiB204163

prog.goH A D09-Apr-202116 KiB623406

readme.mdH A D09-Apr-20211.3 KiB2616

syscalls.goH A D09-Apr-20219.7 KiB439370

types.goH A D09-Apr-20216.1 KiB197100

types_string.goH A D09-Apr-20215 KiB138118

readme.md

1eBPF
2-------
3[![](https://godoc.org/github.com/cilium/ebpf?status.svg)](https://godoc.org/github.com/cilium/ebpf)
4
5eBPF is a pure Go library that provides utilities for loading, compiling, and debugging eBPF programs. It has minimal external dependencies and is intended to be used in long running processes.
6
7[ebpf/asm](https://godoc.org/github.com/cilium/ebpf/asm) contains a basic assembler.
8
9The library is maintained by [Cloudflare](https://www.cloudflare.com) and [Cilium](https://www.cilium.io). Feel free to [join](https://cilium.herokuapp.com/) the [libbpf-go](https://cilium.slack.com/messages/libbpf-go) channel on Slack.
10
11## Current status
12
13The package is production ready, but **the API is explicitly unstable
14right now**. Expect to update your code if you want to follow along.
15
16## Requirements
17
18* A version of Go that is [supported by upstream](https://golang.org/doc/devel/release.html#policy)
19* Linux 4.9, 4.19 or 5.4 (versions in-between should work, but are not tested)
20
21## Useful resources
22
23* [Cilium eBPF documentation](https://cilium.readthedocs.io/en/latest/bpf/#bpf-guide) (recommended)
24* [Linux documentation on BPF](http://elixir.free-electrons.com/linux/latest/source/Documentation/networking/filter.txt)
25* [eBPF features by Linux version](https://github.com/iovisor/bcc/blob/master/docs/kernel-versions.md)
26