]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1bf186e284499eea3ca59183249daf4f785b5db0
treee98227b5a731328aa427e45e518f73fd403510b8
parent4d72f24fa56741296e666125d38d39fe48cea3a8
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]