selftests/bpf: Refactor some functions for kprobe_multi_test
authorYonghong Song <yonghong.song@linux.dev>
Tue, 26 Mar 2024 04:15:03 +0000 (21:15 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 29 Mar 2024 01:31:41 +0000 (18:31 -0700)
commitd1320649346c36c5ba7b579533bf518960ef71e1
tree6bd684eab2b47aa198dae507140d52e72ac3231d
parentc56e59776f46d77984329488878a52baf4969457
selftests/bpf: Refactor some functions for kprobe_multi_test

Refactor some functions in kprobe_multi_test.c to extract
some helper functions who will be used in later patches
to avoid code duplication.

Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20240326041503.1198982-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c