aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/resolve_btfids.c
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2022-09-06 17:12:57 +0200
committerAlexei Starovoitov <ast@kernel.org>2022-09-07 10:57:28 -0700
commit012ba1156e4a7b38062d109b818cb479a68c87ba (patch)
treeedd5c9606266df10f9142b860542c05073230f5c /tools/testing/selftests/bpf/prog_tests/resolve_btfids.c
parentMerge branch 'bpf: Support struct argument for trampoline base progs' (diff)
downloadlinux-dev-012ba1156e4a7b38062d109b818cb479a68c87ba.tar.xz
linux-dev-012ba1156e4a7b38062d109b818cb479a68c87ba.zip
selftests/bpf: regroup and declare similar kfuncs selftests in an array
Similar to tools/testing/selftests/bpf/prog_tests/dynptr.c: we declare an array of tests that we run one by one in a for loop. Followup patches will add more similar-ish tests, so avoid a lot of copy paste by grouping the declaration in an array. For light skeletons, we have to rely on the offsetof() macro so we can statically declare which program we are using. In the libbpf case, we can rely on bpf_object__find_program_by_name(). So also change the Makefile to generate both light skeletons and normal ones. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com> Link: https://lore.kernel.org/r/20220906151303.2780789-2-benjamin.tissoires@redhat.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/resolve_btfids.c')
0 files changed, 0 insertions, 0 deletions