aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/global_data_init.c
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2022-09-26 17:33:37 +0200
committerAlexei Starovoitov <ast@kernel.org>2022-09-26 20:30:39 -0700
commit4d854f4f31ec4b317dfe316111ddac0fab81f735 (patch)
treeb743f9ceae690907f1996a6d99e22d4964c231a4 /tools/testing/selftests/bpf/prog_tests/global_data_init.c
parent9d68c19c57d690547cde977bb3d9ccd3ceb6afe9 (diff)
bpf: Use given function address for trampoline ip arg
Using function address given at the generation time as the trampoline ip argument. This way we get directly the function address that we need, so we don't need to: - read the ip from the stack - subtract X86_PATCH_SIZE - subtract ENDBR_INSN_SIZE if CONFIG_X86_KERNEL_IBT is enabled which is not even implemented yet ;-) Signed-off-by: Jiri Olsa <jolsa@kernel.org> Link: https://lore.kernel.org/r/20220926153340.1621984-4-jolsa@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/global_data_init.c')
0 files changed, 0 insertions, 0 deletions