Skip to content

v0.25.0

Compare
Choose a tag to compare
@github-actions github-actions released this 30 May 16:01
· 24 commits to refs/heads/master since this release

What's Changed

libbpf-rs

  • Added kprobe multi support for attaching programs, with and without providing additional options
  • Added Program::attach_perf_event_with_opts for attaching to perf events with additional options
  • Allow to provide additional options when attaching programs to raw tracepoints
  • Allow to provide additional options when attaching programs to kprobes
  • Introduced TracepointCategory enum for specifying tracepoint categories
  • Added max_entries getter to various map types
  • Added OpenProgramMut::set_autoattach
  • Added additional ProgramAttachType and query::LinkTypeInfo variants
  • Adjusted UprobeOpts::func_name to be an Option
  • Implemented Sync for Link
  • Updated libbpf-sys dependency to 1.5.0
  • Added ProgramInput::repeat field to run a test multiple times
  • Added ProgramOutput::duration field which represent the average duration per repetition
  • Added RingBuffer::consume_raw_n method to consume up to N items

libbpf-cargo

  • Adjusted all <xxx>_data BPF map skeleton members to be Options
  • Adjusted numbering of generated Rust structs for anonymous C types to be less fragile in the presence of type additions
  • Removed SkeletonBuilder::skip_clang_version_check and SkeletonBuilder::debug
  • Removed --skip-clang-version-checks option of libbpf build sub-command
  • Replaced --debug option of libbpf sub-command with -v / --verbose
    • Removed --quiet option of libbpf make sub-command
  • Replaced CompilationOutput type with tracing based solution using newly added util::CargoWarningFormatter
  • Fixed handling of multiple types of same name in BTF by enumerating them in the generated skeleton
  • Bumped minimum Rust version to 1.78

New Contributors

Full Changelog: v0.25.0-beta.1...v0.25.0