]> git.baikalelectronics.ru Git - kernel.git/commit
tools/bpf: simplify libbpf API function libbpf_set_print()
authorYonghong Song <yhs@fb.com>
Sat, 2 Feb 2019 00:14:17 +0000 (16:14 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Mon, 4 Feb 2019 17:40:59 +0000 (09:40 -0800)
commita759f8b97e4fcf0efaf85f244fc22be4e46f7985
treea06e49a2ac5d5a35f3fb6a25c1ea689f3c6bfe40
parent9963de740725635c327194ebe8a8a3a50a19e496
tools/bpf: simplify libbpf API function libbpf_set_print()

Currently, the libbpf API function libbpf_set_print()
takes three function pointer parameters for warning, info
and debug printout respectively.

This patch changes the API to have just one function pointer
parameter and the function pointer has one additional
parameter "debugging level". So if in the future, if
the debug level is increased, the function signature
won't change.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h
tools/lib/bpf/test_libbpf.cpp
tools/perf/util/bpf-loader.c
tools/testing/selftests/bpf/test_btf.c
tools/testing/selftests/bpf/test_libbpf_open.c
tools/testing/selftests/bpf/test_progs.c