go.mod: github.com/cilium/ebpf v0.5.0#2904
Merged
Merged
Conversation
full diff: cilium/ebpf@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>
AkihiroSuda
approved these changes
Apr 13, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
full diff: cilium/ebpf@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.
Bug fixes
Features
link.Kretprobe() and link.Tracepoint()
by detecting the kernel version at runtime
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