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:
8094029
)
libbpf: Fix wrong variable used in perf_event_uprobe_open_legacy()
author
Chuang Wang
<nashuiliang@gmail.com>
Wed, 29 Jun 2022 15:18:46 +0000
(23:18 +0800)
committer
Andrii Nakryiko
<andrii@kernel.org>
Wed, 6 Jul 2022 04:21:44 +0000
(21:21 -0700)
Use "type" as opposed to "err" in pr_warn() after
determine_uprobe_perf_type_legacy() returns an error.
Signed-off-by: Chuang Wang <nashuiliang@gmail.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link:
https://lore.kernel.org/bpf/20220629151848.65587-3-nashuiliang@gmail.com
tools/lib/bpf/libbpf.c
patch
|
blob
|
history
diff --git
a/tools/lib/bpf/libbpf.c
b/tools/lib/bpf/libbpf.c
index
8a441d3
..
571acd6
100644
(file)
--- a/
tools/lib/bpf/libbpf.c
+++ b/
tools/lib/bpf/libbpf.c
@@
-10249,7
+10249,7
@@
static int perf_event_uprobe_open_legacy(const char *probe_name, bool retprobe,
type = determine_uprobe_perf_type_legacy(probe_name, retprobe);
if (type < 0) {
pr_warn("failed to determine legacy uprobe event id for %s:0x%zx: %d\n",
- binary_path, offset,
err
);
+ binary_path, offset,
type
);
return type;
}