selftests/bpf: Add bpf_testmod_fentry_* functions
authorJiri Olsa <jolsa@kernel.org>
Tue, 25 Oct 2022 13:41:46 +0000 (15:41 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 25 Oct 2022 17:14:51 +0000 (10:14 -0700)
commitfee356ede980b6c2c8db612e18b25738356d6744
treecb9ab605892b9f4cbaee612b3737f7b3dec5a36c
parent10705b2b7a8e4eb46ab5bf1b9ee354cb9a929428
selftests/bpf: Add bpf_testmod_fentry_* functions

Adding 3 bpf_testmod_fentry_* functions to have a way to test
kprobe multi link on kernel module. They follow bpf_fentry_test*
functions prototypes/code.

Adding equivalent functions to all bpf_fentry_test* does not
seems necessary at the moment, could be added later.

Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20221025134148.3300700-7-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c