1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/vendor/github.com/cilium/ebpf
Sebastiaan van Stijn e5d28115ee
vendor: regenerate
- all changes here are attributed to difference in behaviour between,
  namely:
  - resolution of secondary test dependencies
  - prunning of non-Go files

Signed-off-by: Ilya Dmitrichenko <errordeveloper@gmail.com>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-01-18 15:46:04 +01:00
..
asm vendor: github.com/cilium/ebpf v0.6.2 2021-07-19 15:57:52 +09:00
internal vendor: github.com/cilium/ebpf v0.6.2 2021-07-19 15:57:52 +09:00
link vendor: github.com/cilium/ebpf v0.6.2 2021-07-19 15:57:52 +09:00
.clang-format vendor: regenerate 2022-01-18 15:46:04 +01:00
.gitignore vendor: regenerate 2022-01-18 15:46:04 +01:00
.golangci.yaml vendor: regenerate 2022-01-18 15:46:04 +01:00
ARCHITECTURE.md vendor: regenerate 2022-01-18 15:46:04 +01:00
CODE_OF_CONDUCT.md vendor: regenerate 2022-01-18 15:46:04 +01:00
collection.go vendor: github.com/cilium/ebpf v0.6.2 2021-07-19 15:57:52 +09:00
CONTRIBUTING.md vendor: regenerate 2022-01-18 15:46:04 +01:00
doc.go vendor: github.com/cilium/ebpf v0.5.0 2021-06-02 17:55:40 +02:00
elf_reader.go vendor: github.com/cilium/ebpf v0.6.2 2021-07-19 15:57:52 +09:00
elf_reader_fuzz.go vendor: github.com/cilium/ebpf v0.5.0 2021-06-02 17:55:40 +02:00
info.go vendor: github.com/cilium/ebpf v0.5.0 2021-06-02 17:55:40 +02:00
LICENSE cgroup2: implement docker info 2020-04-17 07:20:01 +09:00
linker.go vendor: github.com/cilium/ebpf v0.6.2 2021-07-19 15:57:52 +09:00
Makefile vendor: regenerate 2022-01-18 15:46:04 +01:00
map.go vendor: github.com/cilium/ebpf v0.6.2 2021-07-19 15:57:52 +09:00
marshalers.go vendor: github.com/cilium/ebpf v0.5.0 2021-06-02 17:55:40 +02:00
prog.go vendor: github.com/cilium/ebpf v0.6.2 2021-07-19 15:57:52 +09:00
README.md vendor: github.com/cilium/ebpf v0.5.0 2021-06-02 17:55:40 +02:00
run-tests.sh vendor: regenerate 2022-01-18 15:46:04 +01:00
syscalls.go vendor: github.com/cilium/ebpf v0.6.2 2021-07-19 15:57:52 +09:00
types.go vendor: github.com/cilium/ebpf v0.6.2 2021-07-19 15:57:52 +09:00
types_string.go vendor: github.com/cilium/ebpf v0.6.2 2021-07-19 15:57:52 +09: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