Skip to content

Commit 2eff5ec

Browse files
committed
Add CHANGELOG entry for libbpf#1345
Add a CHANGELOG entry for pull request libbpf#1345, which adjusted Program::attach_uprobe_multi_with_opts() to map an empty `func_pattern` to a NULL pointer input to the underlying libbpf API, to enable additional use cases. Signed-off-by: Daniel Müller <deso@posteo.net>
1 parent d4b39f1 commit 2eff5ec

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

libbpf-rs/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Unreleased
22
----------
33
- Added `MapCore::query_fdinfo` for querying map fdinfo
4+
- Adjusted `Program::attach_uprobe_multi_with_opts` to work with empty
5+
`func_pattern`
46

57

68
0.26.0

libbpf-rs/src/program.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,6 +1107,7 @@ impl<'obj> ProgramMut<'obj> {
11071107
} = opts;
11081108

11091109
let pattern = util::str_to_cstring(func_pattern.as_ref())?;
1110+
// TODO: We should push optionality into method signature.
11101111
let pattern_ptr = if pattern.is_empty() {
11111112
ptr::null()
11121113
} else {

0 commit comments

Comments
 (0)