提交 c9e4c301 编写于 作者: A Andrii Nakryiko 提交者: Alexei Starovoitov

libbpf: fix bpf_object__name() to actually return object name

bpf_object__name() was returning file path, not name. Fix this.
Signed-off-by: NAndrii Nakryiko <andriin@fb.com>
Signed-off-by: NAlexei Starovoitov <ast@kernel.org>
上级 2ce8450e
...@@ -4231,7 +4231,7 @@ bpf_object__next(struct bpf_object *prev) ...@@ -4231,7 +4231,7 @@ bpf_object__next(struct bpf_object *prev)
const char *bpf_object__name(const struct bpf_object *obj) 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) unsigned int bpf_object__kversion(const struct bpf_object *obj)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册