On Thu, Sep 22, 2022 at 2:05 PM Jiri Olsa <jolsa@xxxxxxxxxx> wrote: > > With CONFIG_X86_KERNEL_IBT enabled the test for kprobe with offset > won't work because of the extra endbr instruction. > > As suggested by Andrii adding CONFIG_X86_KERNEL_IBT detection > and using appropriate offset value based on that. > > Also removing test7 program, because it does the same as test6. > > Suggested-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx> > --- > .../bpf/prog_tests/get_func_ip_test.c | 59 +++++++++++++++---- > .../selftests/bpf/progs/get_func_ip_test.c | 23 ++++---- > 2 files changed, 60 insertions(+), 22 deletions(-) > Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > diff --git a/tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c b/tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c > index 938dbd4d7c2f..fede8ef58b5b 100644 > --- a/tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c > +++ b/tools/testing/selftests/bpf/prog_tests/get_func_ip_test.c > @@ -2,7 +2,7 @@ > #include <test_progs.h> > #include "get_func_ip_test.skel.h" > [...]