Releases: libbpf/libbpf-rs
Releases · libbpf/libbpf-rs
v0.20.1
What's Changed
libbpf-rs
- Added bindings for BTF via newly introduced
btf
module - Added
Map
constructors from pinned paths and from map id - Added
Map::as_libbpf_bpf_map_ptr
andObject::as_libbpf_bpf_object_ptr
accessors - Added
MapInfo
type as a convenience wrapper aroundbpf_map_info
- Added
Map::info
toMap
to make it easier to deriveMapInfo
from aMap
instance
- Added
- Added
set_log_level
,log_level
, andautoload
methods toOpenProgram
- Removed deprecated
Link::get_fd
method - Bumped minimum Rust version to
1.63
libbpf-cargo
- Switched over to using
libbpf-rs
's BTF support internally for skeleton generation - Fixed potential build failures on systems defaulting to stack protector usage by passing
-fno-stack-protector
toclang
New Contributors
- @heyrutvik made their first contribution in #388
- @d-e-s-o made their first contribution in #389
Full Changelog: v0.20.0...v0.20.1
v0.20.0
What's Changed
libbpf-rs
- Added support for USDT probes
- Added BPF linker support with new
Linker
type - Added
Program::attach_uprobe_with_opts
for attaching Uprobes with additional options - Added
tproxy
example - Added option to
RingBuffer::poll
to block indefinitely - Added support for querying BPF program type using
OpenProgram::prog_type
- Added support for retrieving a BPF program's instructions using
OpenProgram::insns
&Program::insns
- Added
MapType::is_supported
,ProgramType::is_supported
, andProgramType::is_helper_supported
methods - Added
PerfBuffer::as_libbpf_perf_buffer_ptr
to access underlyinglibbpf-sys
object - Adjusted various
Map
methods to work on shared receivers - Fixed
Link::open
constructor to be a static method - Fixed unsoundness in skeleton logic caused by aliased
Box
contents - Implemented
Send
forPerfBuffer
andRingBuffer
- Made more types implement
Clone
andDebug
- Run leak sanitizer in CI
- Updated various dependencies
libbpf-cargo
- Fixed mismatch in size of generated types with respect to corresponding C types
- Fixed generated skeleton potentially being unstable (changing each time)
- Implemented
Sync
for generated skeletons - Made formatting using
rustfmt
optional - Updated various dependencies
New Contributors
- @ueno made their first contribution in #277
- @jirutka made their first contribution in #283
- @yunwei37 made their first contribution in #286
- @yuval-k made their first contribution in #295
- @michel-slm made their first contribution in #338
- @vankoven made their first contribution in #369
- @mendess made their first contribution in #371
Full Changelog: v0.19.1...v0.20.0