k3s/vendor/github.com/cilium/ebpf
Chris Kim acad8ef840
[release-1.21] Update Kubernetes to v1.21.5 (#4032)
* Update to v1.21.5

Signed-off-by: Chris Kim <oats87g@gmail.com>
2021-09-17 09:21:32 -07:00
..
asm [release-1.21] Update Kubernetes to v1.21.5 (#4032) 2021-09-17 09:21:32 -07:00
internal [release-1.21] Update Kubernetes to v1.21.5 (#4032) 2021-09-17 09:21:32 -07:00
link [release-1.21] Update Kubernetes to v1.21.5 (#4032) 2021-09-17 09:21:32 -07:00
.clang-format Update to forked protobuf 1.4.3-k3s1 2021-04-14 14:51:42 -07:00
.gitignore Update to forked protobuf 1.4.3-k3s1 2021-04-14 14:51:42 -07:00
.golangci.yaml Update to forked protobuf 1.4.3-k3s1 2021-04-14 14:51:42 -07:00
ARCHITECTURE.md Update to forked protobuf 1.4.3-k3s1 2021-04-14 14:51:42 -07:00
CODE_OF_CONDUCT.md runc: bump to rc10 2020-05-04 18:11:25 -07:00
collection.go [release-1.21] Update Kubernetes to v1.21.5 (#4032) 2021-09-17 09:21:32 -07:00
CONTRIBUTING.md [release-1.21] Update Kubernetes to v1.21.5 (#4032) 2021-09-17 09:21:32 -07:00
doc.go Update to forked protobuf 1.4.3-k3s1 2021-04-14 14:51:42 -07:00
elf_reader_fuzz.go Update to forked protobuf 1.4.3-k3s1 2021-04-14 14:51:42 -07:00
elf_reader.go [release-1.21] Update Kubernetes to v1.21.5 (#4032) 2021-09-17 09:21:32 -07:00
go.mod Update to forked protobuf 1.4.3-k3s1 2021-04-14 14:51:42 -07:00
go.sum Update to forked protobuf 1.4.3-k3s1 2021-04-14 14:51:42 -07:00
info.go Update to forked protobuf 1.4.3-k3s1 2021-04-14 14:51:42 -07:00
LICENSE runc: bump to rc10 2020-05-04 18:11:25 -07:00
linker.go [release-1.21] Update Kubernetes to v1.21.5 (#4032) 2021-09-17 09:21:32 -07:00
Makefile [release-1.21] Update Kubernetes to v1.21.5 (#4032) 2021-09-17 09:21:32 -07:00
map.go [release-1.21] Update Kubernetes to v1.21.5 (#4032) 2021-09-17 09:21:32 -07:00
marshalers.go Update to forked protobuf 1.4.3-k3s1 2021-04-14 14:51:42 -07:00
prog.go [release-1.21] Update Kubernetes to v1.21.5 (#4032) 2021-09-17 09:21:32 -07:00
README.md Update to forked protobuf 1.4.3-k3s1 2021-04-14 14:51:42 -07:00
run-tests.sh [release-1.21] Update Kubernetes to v1.21.5 (#4032) 2021-09-17 09:21:32 -07:00
syscalls.go [release-1.21] Update Kubernetes to v1.21.5 (#4032) 2021-09-17 09:21:32 -07:00
types_string.go [release-1.21] Update Kubernetes to v1.21.5 (#4032) 2021-09-17 09:21:32 -07:00
types.go [release-1.21] Update Kubernetes to v1.21.5 (#4032) 2021-09-17 09:21:32 -07:00

eBPF

PkgGoDev

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

  • asm contains a basic assembler
  • link allows attaching eBPF to various hooks
  • perf allows reading from a PERF_EVENT_ARRAY
  • cmd/bpf2go allows compiling and embedding eBPF programs in Go code

The library is maintained by Cloudflare and Cilium. Feel free to join the #libbpf-go channel on Slack.

Current status

The package is production ready, but the API is explicitly unstable right now. Expect to update your code if you want to follow along.

Getting Started

A small collection of Go and eBPF programs that serve as examples for building your own tools can be found under examples/.

Contributions are highly encouraged, as they highlight certain use cases of eBPF and the library, and help shape the future of the project.

Requirements

  • A version of Go that is supported by upstream
  • Linux 4.9, 4.19 or 5.4 (versions in-between should work, but are not tested)

Useful resources

Regenerating Testdata

Run make in the root of this repository to rebuild testdata in all subpackages. This requires Docker, as it relies on a standardized build environment to keep the build output stable.

The toolchain image build files are kept in testdata/docker/.

License

MIT