selftests/bpf: Add __ksym extern selftest
authorAndrii Nakryiko <andriin@fb.com>
Fri, 19 Jun 2020 23:16:57 +0000 (16:16 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 23 Jun 2020 00:01:48 +0000 (17:01 -0700)
commitb7ddfab20a6af3a0e366000eada63adf6a7683e7
treee98227b5a731328aa427e45e518f73fd403510b8
parent1c0c7074fefd769f62dda155e881ca90c9e3e75a
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
tools/testing/selftests/bpf/prog_tests/ksyms.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_ksyms.c [new file with mode: 0644]