Skip to content

Commit 3551489

Browse files
committed
Add CHANGELOG entry for #1096
Add a CHANGELOG entry for pull request #1096, which adjusted the UprobeOpts::func_name member to be an Option. Also improve the documentation for the same slightly, by covering the None case. Signed-off-by: Daniel Müller <deso@posteo.net>
1 parent 3dae861 commit 3551489

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libbpf-rs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Unreleased
22
----------
33
- Added `max_entries` getter to various map types
4+
- Adjusted `UprobeOpts::func_name` to be an `Option`
45
- Implemented `Sync` for `Link`
56

67

libbpf-rs/src/program.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ pub struct UprobeOpts {
5353
/// `func_name` and use `func_offset` argument to specify offset within the
5454
/// function. Shared library functions must specify the shared library
5555
/// binary_path.
56+
///
57+
/// If `func_name` is `None`, `func_offset` will be treated as the
58+
/// absolute offset of the symbol to attach to, rather than a
59+
/// relative one.
5660
pub func_name: Option<String>,
5761
#[doc(hidden)]
5862
pub _non_exhaustive: (),

0 commit comments

Comments
 (0)