projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a3941f
)
libbpf: Fix error message in attach_kprobe_multi
author
Jiri Olsa
<jolsa@kernel.org>
Thu, 2 May 2024 07:55:41 +0000
(09:55 +0200)
committer
Andrii Nakryiko
<andrii@kernel.org>
Thu, 2 May 2024 15:56:24 +0000
(08:56 -0700)
We just failed to retrieve pattern, so we need to print spec instead.
Fixes:
ddc6b04989eb
("libbpf: Add bpf_program__attach_kprobe_multi_opts function")
Reported-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link:
https://lore.kernel.org/bpf/20240502075541.1425761-2-jolsa@kernel.org
tools/lib/bpf/libbpf.c
patch
|
blob
|
history
diff --git
a/tools/lib/bpf/libbpf.c
b/tools/lib/bpf/libbpf.c
index
68c87ae
..
a3566a4
100644
(file)
--- a/
tools/lib/bpf/libbpf.c
+++ b/
tools/lib/bpf/libbpf.c
@@
-11579,7
+11579,7
@@
static int attach_kprobe_multi(const struct bpf_program *prog, long cookie, stru
n = sscanf(spec, "%m[a-zA-Z0-9_.*?]", &pattern);
if (n < 1) {
- pr_warn("kprobe multi pattern is invalid: %s\n",
pattern
);
+ pr_warn("kprobe multi pattern is invalid: %s\n",
spec
);
return -EINVAL;
}