OSDN Git Service

selftests/bpf: Update selftests to always provide "struct_ops" SEC
authorAndrii Nakryiko <andrii@kernel.org>
Tue, 14 Sep 2021 01:47:30 +0000 (18:47 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 14 Sep 2021 22:49:24 +0000 (15:49 -0700)
commit53df63ccdc0258118e53089197d0428c5330cc9c
treeec10dd6dab53e8beb0c93c24e4b8e132036a52ac
parentca304b40c20d5750f08200f0ad3445384646620c
selftests/bpf: Update selftests to always provide "struct_ops" SEC

Update struct_ops selftests to always specify "struct_ops" section
prefix. Libbpf will require a proper BPF program type set in the next
patch, so this prevents tests breaking.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/20210914014733.2768-2-andrii@kernel.org
tools/testing/selftests/bpf/progs/bpf_cubic.c