]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Factor out common ELF operations and improve logging
authorAndrii Nakryiko <andriin@fb.com>
Thu, 20 Aug 2020 23:12:36 +0000 (16:12 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 21 Aug 2020 22:40:22 +0000 (15:40 -0700)
commit310b9844216f18812fa3f89547f3582288c8c9e5
tree72be2dc690af608389a303cf8694fdaab98a694e
parenta3a7627d1c522731b384383a267393c1163e0192
libbpf: Factor out common ELF operations and improve logging

Factor out common ELF operations done throughout the libbpf. This simplifies
usage across multiple places in libbpf, as well as hide error reporting from
higher-level functions and make error logging more consistent.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200820231250.1293069-3-andriin@fb.com
tools/lib/bpf/libbpf.c