]> git.dujemihanovic.xyz Git - linux.git/commit
selftests/bpf: Add test for bpf_get_func_ip in kprobe+offset probe
authorJiri Olsa <jolsa@redhat.com>
Wed, 14 Jul 2021 09:44:00 +0000 (11:44 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 16 Jul 2021 00:59:23 +0000 (17:59 -0700)
commit8237e75420897a4bf9b38b67cd243331bbd96a01
tree4c31210d0e19c5a633a6ebc298aa7aa63485fb58
parenta2488b5f483f18e6e34be2a15eb4a79f4a0d8728
selftests/bpf: Add test for bpf_get_func_ip in kprobe+offset probe

Adding test for bpf_get_func_ip in kprobe+ofset probe.
Because of the offset value it's arch specific, enabling
the new test only for x86_64 architecture.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20210714094400.396467-9-jolsa@kernel.org
tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c
tools/testing/selftests/bpf/progs/get_func_ip_test.c