selftests/bpf: Add bpf_get_func_ip tests for uprobe on function entry
authorJiri Olsa <jolsa@kernel.org>
Mon, 7 Aug 2023 08:59:55 +0000 (10:59 +0200)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 7 Aug 2023 23:42:58 +0000 (16:42 -0700)
commite43163ed1c0a655083a811404e422f4c045637eb
tree25bdd7189b82936671e5761788ae9def9db46fa6
parenta3c485a5d8d47af5d2d1a0e5c3b7a1ed223669f9
selftests/bpf: Add bpf_get_func_ip tests for uprobe on function entry

Adding get_func_ip tests for uprobe on function entry that
validates that bpf_get_func_ip returns proper values from
both uprobe and return uprobe.

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-3-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_test.c