]> 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)
commit27efe0d2b0af06703db12347ee50667a435f5911
tree4c31210d0e19c5a633a6ebc298aa7aa63485fb58
parentc01addec91887ae2d43a3ee197b9f8cdc7d2e433
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