runc/vendor/github.com/cilium/ebpf
Akihiro Suda faf673ee45 cgroup2: port over eBPF device controller from crun
The implementation is based on https://github.com/containers/crun/blob/0.10.2/src/libcrun/ebpf.c

Although ebpf.c is originally licensed under LGPL-3.0-or-later, the author
Giuseppe Scrivano agreed to relicense the file in Apache License 2.0:
https://github.com/opencontainers/runc/issues/2144#issuecomment-543116397

See libcontainer/cgroups/ebpf/devicefilter/devicefilter_test.go for tested configurations.

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2019-10-31 14:01:46 +09:00
..
asm cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
internal cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
LICENSE cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
abi.go cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
collection.go cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
doc.go cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
elf_reader.go cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
feature.go cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
go.mod cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
linker.go cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
map.go cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
marshalers.go cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
prog.go cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
ptr_32_be.go cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
ptr_32_le.go cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
ptr_64.go cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
readme.md cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
syscalls.go cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
types.go cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00
types_string.go cgroup2: port over eBPF device controller from crun 2019-10-31 14:01:46 +09:00

readme.md

eBPF

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.

ebpf/asm contains a basic assembler.

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.

Useful resources