Kir Kolyshkin
79a4ac0553
deps: bump cilium/ebpf to v0.17.3
...
It has a fix for runc issue 4594.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com >
2025-02-13 00:07:01 -08:00
Kir Kolyshkin
8e5bb0d8c4
deps: roll back to cilium/ebpf v0.16.0
...
Also, exclude v0.17.x until there is a fix for runc issue 4594.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com >
2025-01-31 16:59:54 -08:00
dependabot[bot]
5855ba5303
build(deps): bump github.com/cilium/ebpf from 0.17.0 to 0.17.1
...
Bumps [github.com/cilium/ebpf](https://github.com/cilium/ebpf ) from 0.17.0 to 0.17.1.
- [Release notes](https://github.com/cilium/ebpf/releases )
- [Commits](https://github.com/cilium/ebpf/compare/v0.17.0...v0.17.1 )
---
updated-dependencies:
- dependency-name: github.com/cilium/ebpf
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-12-20 04:10:23 +00:00
dependabot[bot]
e809db842f
build(deps): bump github.com/cilium/ebpf from 0.16.0 to 0.17.0
...
Bumps [github.com/cilium/ebpf](https://github.com/cilium/ebpf ) from 0.16.0 to 0.17.0.
- [Release notes](https://github.com/cilium/ebpf/releases )
- [Commits](https://github.com/cilium/ebpf/compare/v0.16.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: github.com/cilium/ebpf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-12-20 00:07:03 +00:00
Rafael Roquetto
216175a9ca
Upgrade Cilium's eBPF library version to 0.16
...
Signed-off-by: Rafael Roquetto <rafael.roquetto@grafana.com >
2024-09-12 11:13:21 -06:00
dependabot[bot]
aec0dc7dcd
build(deps): bump github.com/cilium/ebpf from 0.11.0 to 0.12.0
...
Bumps [github.com/cilium/ebpf](https://github.com/cilium/ebpf ) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/cilium/ebpf/releases )
- [Commits](https://github.com/cilium/ebpf/compare/v0.11.0...v0.12.0 )
---
updated-dependencies:
- dependency-name: github.com/cilium/ebpf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-12 04:42:12 +00:00
dependabot[bot]
83418f8878
build(deps): bump github.com/cilium/ebpf from 0.10.0 to 0.11.0
...
Bumps [github.com/cilium/ebpf](https://github.com/cilium/ebpf ) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/cilium/ebpf/releases )
- [Commits](https://github.com/cilium/ebpf/compare/v0.10.0...v0.11.0 )
---
updated-dependencies:
- dependency-name: github.com/cilium/ebpf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-07-11 01:40:04 +00:00
dependabot[bot]
cc63d074e6
build(deps): bump github.com/cilium/ebpf from 0.9.3 to 0.10.0
...
Bumps [github.com/cilium/ebpf](https://github.com/cilium/ebpf ) from 0.9.3 to 0.10.0.
- [Release notes](https://github.com/cilium/ebpf/releases )
- [Commits](https://github.com/cilium/ebpf/compare/v0.9.3...v0.10.0 )
---
updated-dependencies:
- dependency-name: github.com/cilium/ebpf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-01-17 23:24:59 +00:00
dependabot[bot]
1be5d45df9
build(deps): bump github.com/cilium/ebpf from 0.9.1 to 0.9.3
...
Bumps [github.com/cilium/ebpf](https://github.com/cilium/ebpf ) from 0.9.1 to 0.9.3.
- [Release notes](https://github.com/cilium/ebpf/releases )
- [Commits](https://github.com/cilium/ebpf/compare/v0.9.1...v0.9.3 )
---
updated-dependencies:
- dependency-name: github.com/cilium/ebpf
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-03 04:15:32 +00:00
dependabot[bot]
d9a3acb9fc
build(deps): bump github.com/cilium/ebpf from 0.9.0 to 0.9.1
...
Bumps [github.com/cilium/ebpf](https://github.com/cilium/ebpf ) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/cilium/ebpf/releases )
- [Commits](https://github.com/cilium/ebpf/compare/v0.9.0...v0.9.1 )
---
updated-dependencies:
- dependency-name: github.com/cilium/ebpf
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-07-28 19:05:50 +00:00
Kir Kolyshkin
e0406b4ba6
vendor: bump cilium/ebpf to v0.9.0
...
Also, change the deprecated Sym to WithSymbol.
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com >
2022-05-26 13:35:32 -07:00
dependabot[bot]
cb36410868
build(deps): bump github.com/cilium/ebpf from 0.7.0 to 0.8.0
...
Bumps [github.com/cilium/ebpf](https://github.com/cilium/ebpf ) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/cilium/ebpf/releases )
- [Commits](https://github.com/cilium/ebpf/compare/v0.7.0...v0.8.0 )
---
updated-dependencies:
- dependency-name: github.com/cilium/ebpf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-01-24 04:15:07 +00:00
dependabot[bot]
dc473cad80
build(deps): bump github.com/cilium/ebpf from 0.6.2 to 0.7.0
...
Bumps [github.com/cilium/ebpf](https://github.com/cilium/ebpf ) from 0.6.2 to 0.7.0.
- [Release notes](https://github.com/cilium/ebpf/releases )
- [Commits](https://github.com/cilium/ebpf/compare/v0.6.2...v0.7.0 )
---
updated-dependencies:
- dependency-name: github.com/cilium/ebpf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-18 17:50:42 +00:00
Aleksa Sarai
fe518a0678
vendor: update github.com/cilium/ebpf
...
We need to update the eBPF library so that we can get the raw syscall
errors from bpf(2) syscalls using errors.Is.
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com >
2021-07-14 11:17:15 +10:00
dependabot[bot]
470610d0cc
build(deps): bump github.com/cilium/ebpf from 0.5.0 to 0.6.0
...
Bumps [github.com/cilium/ebpf](https://github.com/cilium/ebpf ) from 0.5.0 to 0.6.0.
- [Release notes](https://github.com/cilium/ebpf/releases )
- [Commits](https://github.com/cilium/ebpf/compare/v0.5.0...v0.6.0 )
---
updated-dependencies:
- dependency-name: github.com/cilium/ebpf
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-06-02 06:49:06 +00:00
Sebastiaan van Stijn
d15c7bb0f2
go.mod: github.com/cilium/ebpf v0.5.0
...
full diff: https://github.com/cilium/ebpf/compare/v0.4.0...v0.5.0
Breaking changes
------------------------------------------
All LoadPinned*() functions now take LoadPinOptions to control loader behaviour.
Simply pass nil to load with default options.
- LoadPinnedMap()
- LoadPinnedProgram()
- LoadPinnedCgroup()
- LoadPinnedIter()
- LoadPinnedRawLink()
- LoadPinnedNetNs()
Bug fixes
------------------------------------------
- Program.IsPinned() now behaves correctly on maps loaded from bpffs
- Map.Pin() no longer clobbers the destination file if it already exists
Features
------------------------------------------
- Attaching to k(ret)probes and tracepoints can now be done with link.Kprobe(),
link.Kretprobe() and link.Tracepoint()
- Programs of type Kprobe automatically get their KernelVersion fields populated
by detecting the kernel version at runtime
- MapOptions now contains a LoadPinOptions
- ProgSpec now contains a Flags field, adding support for BPF_F_SLEEPABLE
- Made BTF map loader more flexible by looping over Vars in a BTF data section
- Pinned Maps and Programs can now be loaded from bpffs in read-or write-only mode
- Added golangci-lint project configuration, running in CI
Examples
------------------------------------------
kprobe and tracepoint examples updated to use the new link.Kprobe() and link.Tracepoint() API
There is now an example for how to attach eBPF programs to uprobes
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2021-04-13 12:54:47 +02:00
Sebastiaan van Stijn
48125179eb
go.mod: github.com/cilium/ebpf v0.4.0
...
full diff: https://github.com/cilium/ebpf/compare/v0.2.0...v0.4.0
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2021-04-02 09:58:23 +02:00
Sebastiaan van Stijn
ee1bdb80af
vendor: github.com/cilium/ebpf v0.2.0
...
full diff: https://github.com/cilium/ebpf/compare/v0.1.0...v0.2.0
- btf: add go-fuzz targets
- btf: avoid Type copy in FuncProto.walk
- btf: check err in loadSpecFromVmlinux
- btf: handle type name flavours
- CI: test on 5.9 kernel
- cmd/bpf2go: output ELF .o next to the .go file
- link: add AttachSkLookup
- Remove two unused functions
- Support LSM attach
- use buffered I/O to cut down on read syscalls
- Various doc link fixes
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2020-11-20 13:56:46 +01:00
Akihiro Suda
4690064f05
update vendor
...
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2020-11-09 15:14:23 +09:00
Sebastiaan van Stijn
f49adb5277
vendor: update cilium/ebpf v0.0.0-20200702112145-1c8d4c9ef775
...
full diff: https://github.com/cilium/ebpf/compare/a9f01edf17e3...1c8d4c9ef775
drops support for go1.12, and removes dependency on the golang.org/x/xerrors
transitional package.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2020-07-02 14:48:23 +02:00
Akihiro Suda
dfc1b0cd51
update vendor
...
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2020-03-28 04:22:06 +09:00
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