selftests/bpf: Add kprobe_multi check to module attach test
authorJiri Olsa <jolsa@kernel.org>
Tue, 25 Oct 2022 13:41:47 +0000 (15:41 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 25 Oct 2022 17:14:51 +0000 (10:14 -0700)
commite697d8dcebd2f557fa5e5ed57aaf0a9992ce9df8
treefeb2b8a2b844da0d5e3893867f81c29ca766f594
parentfee356ede980b6c2c8db612e18b25738356d6744
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>
tools/testing/selftests/bpf/prog_tests/module_attach.c
tools/testing/selftests/bpf/progs/test_module_attach.c