Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.25.0 #1126

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace.package]
version = "0.25.0-beta.1"
version = "0.25.0"
edition = "2021"
rust-version = "1.78"
license = "LGPL-2.1-only OR BSD-2-Clause"
Expand Down
4 changes: 2 additions & 2 deletions libbpf-cargo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Unreleased
----------
0.25.0
------
- Removed `SkeletonBuilder::skip_clang_version_check` and
`SkeletonBuilder::debug`
- Removed `--skip-clang-version-checks` option of `libbpf build`
Expand Down
2 changes: 1 addition & 1 deletion libbpf-cargo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ default = ["libbpf-rs/default"]
anyhow = "1.0.40"
cargo_metadata = "0.19.1"
env_logger = { version = "0.11", default-features = false, features = ["auto-color", "humantime"] }
libbpf-rs = { version = "=0.25.0-beta.1", default-features = false, path = "../libbpf-rs" }
libbpf-rs = { version = "0.25", default-features = false, path = "../libbpf-rs" }
log = "0.4.14"
memmap2 = "0.5"
serde = { version = "1.0", features = ["derive"] }
Expand Down
2 changes: 1 addition & 1 deletion libbpf-cargo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Helps you build and develop BPF programs with standard Rust tooling.
To use in your project, add into your `Cargo.toml`:
```toml
[build-dependencies]
libbpf-cargo = "=0.25.0-beta.1"
libbpf-cargo = "0.25"
```

See [full documentation here](https://docs.rs/libbpf-cargo).
Expand Down
11 changes: 6 additions & 5 deletions libbpf-rs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
Unreleased
----------
0.25.0
------
- Added kprobe multi support for attaching programs, with and without providing
additional options
- Introduced `TracepointCategory` enum for specifying tracepoint
categories
- 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 `Program::attach_perf_event_with_opts` for attaching to perf events.


0.25.0-beta.1
Expand Down
2 changes: 1 addition & 1 deletion libbpf-rs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Idiomatic Rust wrapper around [libbpf](https://github.com/libbpf/libbpf).
To use in your project, add into your `Cargo.toml`:
```toml
[dependencies]
libbpf-rs = "=0.25.0-beta.1"
libbpf-rs = "0.25"
```

See [full documentation here](https://docs.rs/libbpf-rs).
Expand Down
6 changes: 1 addition & 5 deletions libbpf-rs/src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -852,11 +852,7 @@ impl<'obj> ProgramMut<'obj> {
pub fn attach_perf_event_with_opts(&self, pfd: i32, opts: PerfEventOpts) -> Result<Link> {
let libbpf_opts = libbpf_sys::bpf_perf_event_opts::from(opts);
let ptr = unsafe {
libbpf_sys::bpf_program__attach_perf_event_opts(
self.ptr.as_ptr(),
pfd,
&libbpf_opts as *const _,
)
libbpf_sys::bpf_program__attach_perf_event_opts(self.ptr.as_ptr(), pfd, &libbpf_opts)
};
let ptr = validate_bpf_ret(ptr).context("failed to attach perf event")?;
// SAFETY: the pointer came from libbpf and has been checked for errors.
Expand Down