]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Normalize and improve logging across few functions
authorAndrii Nakryiko <andriin@fb.com>
Thu, 20 Aug 2020 23:12:39 +0000 (16:12 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 21 Aug 2020 22:40:22 +0000 (15:40 -0700)
commite67b5ff9049eb5955d362930310701af50c286bb
treedda535077729918dc5752f275d2ca26b370f31e8
parenta84f3b04bd2eb8a8a28cd770db5fdbbb463595ec
libbpf: Normalize and improve logging across few functions

Make libbpf logs follow similar pattern and provide more context like section
name or program name, where appropriate. Also, add BPF_INSN_SZ constant and
use it throughout to clean up code a little bit. This commit doesn't have any
functional changes and just removes some code changes out of the way before
bigger refactoring in libbpf internals.

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