mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 13:06:59 +02:00
selftests/bpf: Skip module_fentry_shadow test when bpf_testmod is not available
[ Upstream commit971f7c3214] This test relies on bpf_testmod, so skip it if the module is not available. Fixes:aa3d65de4b("bpf/selftests: Test fentry attachment to shadowed functions") Signed-off-by: Artem Savkov <asavkov@redhat.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20230914124928.340701-1-asavkov@redhat.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
257e8d2e5b
commit
7692936eae
|
|
@ -61,6 +61,11 @@ void test_module_fentry_shadow(void)
|
|||
int link_fd[2] = {};
|
||||
__s32 btf_id[2] = {};
|
||||
|
||||
if (!env.has_testmod) {
|
||||
test__skip();
|
||||
return;
|
||||
}
|
||||
|
||||
LIBBPF_OPTS(bpf_prog_load_opts, load_opts,
|
||||
.expected_attach_type = BPF_TRACE_FENTRY,
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user