]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Reduce log level for custom section names
authorAndrii Nakryiko <andriin@fb.com>
Tue, 17 Dec 2019 23:42:28 +0000 (15:42 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 18 Dec 2019 02:38:35 +0000 (18:38 -0800)
commitd0abae311d100f4d1cb409181653f78257c4ded9
tree74110c488b0a1de4b852821d3d75b7294d347d97
parent4bb1f5ba0e2e5171044f59c093a0c77693bedd0d
libbpf: Reduce log level for custom section names

Libbpf is trying to recognize BPF program type based on its section name
during bpf_object__open() phase. This is not strictly enforced and user code
has ability to specify/override correct BPF program type after open.  But if
BPF program is using custom section name, libbpf will still emit warnings,
which can be quite annoying to users. This patch reduces log level of
information messages emitted by libbpf if section name is not canonical. User
can still get a list of all supported section names as debug-level message.

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