mirror of
https://github.com/netdata/libbpf.git
synced 2026-11-06 01:40:15 +08:00
libbpf: fix bpf_object__name() to actually return object name
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>
This commit is contained in:
1 parent
732f598282
commit
bf83a95dee
1 file changed
+1
-1
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user