selftests/bpf: Add __ksym extern selftest

Validate libbpf is able to handle weak and strong kernel symbol externs in BPF
code correctly.

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-4-andriin@fb.com
This commit is contained in:
Andrii Nakryiko 2020-06-19 16:16:57 -07:00 • committed by Alexei Starovoitov
commit b7ddfab20a
2 changed files with 103 additions and 0 deletions