github cilium/ebpf v0.6.0
CO-RE support

latest releases: v0.15.0, v0.14.0, v0.13.2...
2 years ago

The library now supports most kinds of CO-RE relocations!

Breaking changes

  • None

Features

  • CO-RE relocations make writing portable kprobes a lot easier. We now have support for a good chunk of them.
  • kretprobes are a little more robust to kernel ABI changes.
  • uprobes and uretprobes are now supported.
  • ProgramOptions has a TargetBTF member which allows specifying a custom target. Use this to support distro kernels that don't have built in BTF.
  • raw_tp and tp_btf sections are now recognised.
  • compatibility with libbpf has increased.
  • PerfEventArray should now be useable without having to change PerfEventArray.MaxEntries.

Examples

  • The uprobe example uses the new API in link.

Contributors

Gilberto Bertin
Lorenz Bauer
Mattia
Mattia Meleleo
nevermosby
Timo Beckers

Thank you for your work!

Don't miss a new ebpf release

NewReleases is sending notifications on new releases.