selftests/bpf: Add kprobe_multi kmod attach api tests
authorJiri Olsa <jolsa@kernel.org>
Tue, 25 Oct 2022 13:41:48 +0000 (15:41 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 25 Oct 2022 17:14:51 +0000 (10:14 -0700)
commitb2440443a64f1b687df364089e6dcb23da4f9598
treeb05ceb3a545093b8c8526ecd065b38e352853be2
parente697d8dcebd2f557fa5e5ed57aaf0a9992ce9df8
selftests/bpf: Add kprobe_multi kmod attach api tests

Adding kprobe_multi kmod attach api tests that attach bpf_testmod
functions via bpf_program__attach_kprobe_multi_opts.

Running it as serial test, because we don't want other tests to
reload bpf_testmod while it's running.

Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20221025134148.3300700-9-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/kprobe_multi_testmod_test.c [new file with mode: 0644]
tools/testing/selftests/bpf/progs/kprobe_multi.c