projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ce8450
)
libbpf: fix bpf_object__name() to actually return object name
author
Andrii Nakryiko
<andriin@fb.com>
Fri, 4 Oct 2019 22:40:36 +0000
(15:40 -0700)
committer
Alexei Starovoitov
<ast@kernel.org>
Sun, 6 Oct 2019 01:09:48 +0000
(18:09 -0700)
bpf_object__name() was returning file path, not name. Fix this.
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@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 d471d33400ae9fda6ea514b4a45db12c99cee050..a02cdedc4e3f050338c1e0bd403b68750322f5f9 100644
(file)
--- a/
tools/lib/bpf/libbpf.c
+++ b/
tools/lib/bpf/libbpf.c
@@
-4231,7
+4231,7
@@
bpf_object__next(struct bpf_object *prev)
const char *bpf_object__name(const struct bpf_object *obj)
{
- return obj ? obj->
path
: ERR_PTR(-EINVAL);
+ return obj ? obj->
name
: ERR_PTR(-EINVAL);
}
unsigned int bpf_object__kversion(const struct bpf_object *obj)