libbpf: Generalize libbpf externs support
authorAndrii Nakryiko <andriin@fb.com>
Fri, 19 Jun 2020 23:16:55 +0000 (16:16 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 23 Jun 2020 00:01:48 +0000 (17:01 -0700)
commit2e33efe32e019328916ce653dc1265d637261993
tree703423b1afa8402526fd6dceb3b09bf5a8455fe1
parent1bdb6c9a1c43fdf9b83b2331dfc6229bd2e71d9b
libbpf: Generalize libbpf externs support

Switch existing Kconfig externs to be just one of few possible kinds of more
generic externs. This refactoring is in preparation for ksymbol extern
support, added in the follow up patch. There are no functional changes
intended.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Hao Luo <haoluo@google.com>
Link: https://lore.kernel.org/bpf/20200619231703.738941-2-andriin@fb.com
tools/lib/bpf/libbpf.c