diff options
author | Song Liu <[email protected]> | 2023-12-06 14:40:54 -0800 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2023-12-06 17:17:21 -0800 |
commit | 3ba026fca8786161b0c4d75be396e61d6816e0a1 (patch) | |
tree | 9ed227cd85ea4549462a4fecca5b1bada101d3c1 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 26ef208c209a0e6eed8942a5d191b39dccfa6e38 (diff) |
x86, bpf: Use bpf_prog_pack for bpf trampoline
There are three major changes here:
1. Add arch_[alloc|free]_bpf_trampoline based on bpf_prog_pack;
2. Let arch_prepare_bpf_trampoline handle ROX input image, this requires
arch_prepare_bpf_trampoline allocating a temporary RW buffer;
3. Update __arch_prepare_bpf_trampoline() to handle a RW buffer (rw_image)
and a ROX buffer (image). This part is similar to the image/rw_image
logic in bpf_int_jit_compile().
Signed-off-by: Song Liu <[email protected]>
Acked-by: Ilya Leoshkevich <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions