]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Add tests for user- and non-CO-RE BPF_CORE_READ() variants
authorAndrii Nakryiko <andrii@kernel.org>
Fri, 18 Dec 2020 23:56:14 +0000 (15:56 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 8 Jan 2021 21:39:24 +0000 (13:39 -0800)
commitf8730a5e4e70dad5daf624b4720a17210fb6d8e3
tree01d5e06446a122a33f0965259c8e23ca688f6af5
parent0ccbc09494e88c488f0ef5cd74b305552fa0ee36
selftests/bpf: Add tests for user- and non-CO-RE BPF_CORE_READ() variants

Add selftests validating that newly added variations of BPF_CORE_READ(), for
use with user-space addresses and for non-CO-RE reads, work as expected.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20201218235614.2284956-4-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/core_read_macros.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/test_core_read_macros.c [new file with mode: 0644]