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

..30-Nov-2020-

asm/H30-Nov-2020-1,7931,299

internal/H30-Nov-2020-2,8062,029

LICENSEH A D30-Nov-20201.1 KiB2419

abi.goH A D30-Nov-20204 KiB207172

collection.goH A D30-Nov-20206.9 KiB295195

doc.goH A D30-Nov-2020876 181

elf_reader.goH A D30-Nov-202020.6 KiB743590

go.modH A D30-Nov-2020100 63

linker.goH A D30-Nov-20201.9 KiB8759

map.goH A D30-Nov-202019.2 KiB799530

marshalers.goH A D30-Nov-20204.9 KiB204163

prog.goH A D30-Nov-202016 KiB623406

readme.mdH A D30-Nov-20201.3 KiB2616

syscalls.goH A D30-Nov-20209.7 KiB439370

types.goH A D30-Nov-20206.1 KiB197100

types_string.goH A D30-Nov-20205 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