MyGit

v0.16.0

cilium/ebpf

版本发布时间: 2024-07-24 17:40:43

cilium/ebpf最新发布版本:v0.16.0(2024-07-24 17:40:43)

program: automatic verifier log sizing and ProgramInfo.RecursionMisses()

For the longest time users had to specify ProgramOptions.LogSize to get the full verifier log for large programs. The library now automatically figures out the correct buffer size to use and the field is deprecated. It will be removed in the next version.

ProgramInfo now exposes how often a program didn't execute due to recursion limits via RecursionMisses.

perf, ringbuf: better control over wakeups, Flush()

There is a trade off between how fast samples are processed and how much CPU is used. Reading samples as quickly as possible uses more CPU, reading in batches is cheaper.

It's now possible to configure a "maximum time before a wakeup" by using Reader.SetDeadline(). This now guarantees that any pending samples are read at the end of the deadline, even if the Watermark wasn't reached.

It's also possible to manually flush the buffer using Flush().

Bugfixes

What's Changed

New Contributors

Full Changelog: https://github.com/cilium/ebpf/compare/v0.15.0...v0.16.0

相关地址:原始地址 下载(tar) 下载(zip)

查看:2024-07-24发行的版本