]> git.baikalelectronics.ru Git - kernel.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)
commit06e0de12e4d881bcd5eabc46fb8243873927065f
tree4c31210d0e19c5a633a6ebc298aa7aa63485fb58
parent70ac62d650f8d0e2535f52e290486fc81bc0a505
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