Skip to content

Commit 02c20e4

Browse files
committed
Release 0.25.0
Prepare for release of 0.25.0 by bumping both libbpf-rs and libbpf-cargo versions accordingly. Signed-off-by: Daniel Müller <[email protected]>
1 parent 05c8140 commit 02c20e4

File tree

8 files changed

+15
-18
lines changed

8 files changed

+15
-18
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[workspace.package]
2-
version = "0.25.0-beta.1"
2+
version = "0.25.0"
33
edition = "2021"
44
rust-version = "1.78"
55
license = "LGPL-2.1-only OR BSD-2-Clause"

libbpf-cargo/CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
Unreleased
2-
----------
1+
0.25.0
2+
------
33
- Removed `SkeletonBuilder::skip_clang_version_check` and
44
`SkeletonBuilder::debug`
55
- Removed `--skip-clang-version-checks` option of `libbpf build`

libbpf-cargo/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ default = ["libbpf-rs/default"]
3333
anyhow = "1.0.40"
3434
cargo_metadata = "0.19.1"
3535
env_logger = { version = "0.11", default-features = false, features = ["auto-color", "humantime"] }
36-
libbpf-rs = { version = "=0.25.0-beta.1", default-features = false, path = "../libbpf-rs" }
36+
libbpf-rs = { version = "0.25", default-features = false, path = "../libbpf-rs" }
3737
log = "0.4.14"
3838
memmap2 = "0.5"
3939
serde = { version = "1.0", features = ["derive"] }

libbpf-cargo/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Helps you build and develop BPF programs with standard Rust tooling.
1212
To use in your project, add into your `Cargo.toml`:
1313
```toml
1414
[build-dependencies]
15-
libbpf-cargo = "=0.25.0-beta.1"
15+
libbpf-cargo = "0.25"
1616
```
1717

1818
See [full documentation here](https://docs.rs/libbpf-cargo).

libbpf-rs/CHANGELOG.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
Unreleased
2-
----------
1+
0.25.0
2+
------
33
- Added kprobe multi support for attaching programs, with and without providing
44
additional options
5-
- Introduced `TracepointCategory` enum for specifying tracepoint
6-
categories
5+
- Added `Program::attach_perf_event_with_opts` for attaching to perf events
6+
with additional options
77
- Allow to provide additional options when attaching programs to raw
88
tracepoints
99
- Allow to provide additional options when attaching programs to kprobes
10+
- Introduced `TracepointCategory` enum for specifying tracepoint
11+
categories
1012
- Added `max_entries` getter to various map types
1113
- Added `OpenProgramMut::set_autoattach`
1214
- Added additional `ProgramAttachType` and `query::LinkTypeInfo` variants
1315
- Adjusted `UprobeOpts::func_name` to be an `Option`
1416
- Implemented `Sync` for `Link`
1517
- Updated `libbpf-sys` dependency to `1.5.0`
16-
- Added `Program::attach_perf_event_with_opts` for attaching to perf events.
1718

1819

1920
0.25.0-beta.1

libbpf-rs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Idiomatic Rust wrapper around [libbpf](https://github.com/libbpf/libbpf).
1212
To use in your project, add into your `Cargo.toml`:
1313
```toml
1414
[dependencies]
15-
libbpf-rs = "=0.25.0-beta.1"
15+
libbpf-rs = "0.25"
1616
```
1717

1818
See [full documentation here](https://docs.rs/libbpf-rs).

libbpf-rs/src/program.rs

+1-5
Original file line numberDiff line numberDiff line change
@@ -852,11 +852,7 @@ impl<'obj> ProgramMut<'obj> {
852852
pub fn attach_perf_event_with_opts(&self, pfd: i32, opts: PerfEventOpts) -> Result<Link> {
853853
let libbpf_opts = libbpf_sys::bpf_perf_event_opts::from(opts);
854854
let ptr = unsafe {
855-
libbpf_sys::bpf_program__attach_perf_event_opts(
856-
self.ptr.as_ptr(),
857-
pfd,
858-
&libbpf_opts as *const _,
859-
)
855+
libbpf_sys::bpf_program__attach_perf_event_opts(self.ptr.as_ptr(), pfd, &libbpf_opts)
860856
};
861857
let ptr = validate_bpf_ret(ptr).context("failed to attach perf event")?;
862858
// SAFETY: the pointer came from libbpf and has been checked for errors.

0 commit comments

Comments
 (0)