libbpf: fix bpf_object__name() to actually return object name
authorAndrii Nakryiko <andriin@fb.com>
Fri, 4 Oct 2019 22:40:36 +0000 (15:40 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 6 Oct 2019 01:09:48 +0000 (18:09 -0700)
commitc9e4c3010c8c98aa867fce386ee459a32c00a487
tree4b928e929366cb5a6503a4a23f98ea7cb859b5c6
parent2ce8450ef5a381e5ffeb4682c0093a3ab5d07008
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>
tools/lib/bpf/libbpf.c