v0.21.0
·
795 commits
to refs/heads/master
since this release
What's Changed
libbpf-rs
- Added
TcHook::get_handleandTcHook::get_prioritymethods for restoring TcHook object - Added
Program::get_fd_by_idandProgram::get_id_by_fdmethods for restoring bpf management data - Added
Map::is_pinnedandMap::get_pin_pathmethods for getting map pin status - Added
Program::attach_iterfor attaching of programs to an iterator - Added
Map::delete_batchmethod for bulk deletion of elements - Added read/update/delete support for queue and stack
Maptypes - Added a new
MapHandlewhich provides most functionality previously found inMap - Removed support for creating
Mapobjects standalone (i.e. maps not created by libbpf) - Removed various
<object-type>::fd()methods in favor of<object-type>::as_fd() - Improved
btf_type_match!macro, adding support for most of Rust'smatchcapabilities - Added
skelmodule exposing skeleton related traits - Fixed issue where instances of
Mapcreated or opened without going throughObjectwould leak file descriptors - Fixed potential Uprobe attachment failures on optimized builds caused by improper
libbpf_sys::bpf_object_open_optsobject initialization - Adjusted various methods to work with
BorrowedFdinstead of raw file descriptors - Made
RingBufferBuilder::addenforce thatselfcannot outlive the maps passed into it - Adjusted
Error::Systemvariant textual representation to includeerrnostring
libbpf-cargo
- Adjusted skeleton generation code to ensure implementation of
libbpf-rs'sSkelBuilder,OpenSkel, andSkeltraits - Improved error reporting on BPF C file compilation failure
New Contributors
- @yan-ace62 made their first contribution in #436
- @yunbo-xufeng made their first contribution in #441
Full Changelog: v0.20.1...v0.21.0