selftests/bpf: Add bpf_get_func_ip test for uprobe inside function
authorJiri Olsa <jolsa@kernel.org>
Mon, 7 Aug 2023 08:59:56 +0000 (10:59 +0200)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 7 Aug 2023 23:42:58 +0000 (16:42 -0700)
commit7febf573a58b55170782985c031dfaf805662297
tree1d59328a23a48b50a2714419b04a96f092cfae21
parente43163ed1c0a655083a811404e422f4c045637eb
selftests/bpf: Add bpf_get_func_ip test for uprobe inside function

Adding get_func_ip test for uprobe inside function that validates
the get_func_ip helper returns correct probe address value.

Tested-by: Alan Maguire <alan.maguire@oracle.com>
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Acked-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20230807085956.2344866-4-jolsa@kernel.org
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c
tools/testing/selftests/bpf/progs/get_func_ip_uprobe_test.c [new file with mode: 0644]