mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
selftests/bpf: Add kprobe_multi check to module attach test
Adding test that makes sure the kernel module won't be removed if there's kprobe multi link defined on top of it. Acked-by: Song Liu <song@kernel.org> Signed-off-by: Jiri Olsa <jolsa@kernel.org> Link: https://lore.kernel.org/r/20221025134148.3300700-8-jolsa@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
This commit is contained in:
committed by
Alexei Starovoitov
parent
fee356ede9
commit
e697d8dceb
@@ -110,4 +110,10 @@ int BPF_PROG(handle_fmod_ret,
|
||||
return 0; /* don't override the exit code */
|
||||
}
|
||||
|
||||
SEC("kprobe.multi/bpf_testmod_test_read")
|
||||
int BPF_PROG(kprobe_multi)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
char _license[] SEC("license") = "GPL";
|
||||
|
||||
Reference in New Issue
Block a user