diff options
| author | Song Liu <[email protected]> | 2022-02-04 18:57:42 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-02-08 02:13:01 +0000 |
| commit | 1022a5498f6f745c3b5fd3f050a5e11e7ca354f0 (patch) | |
| tree | 13d4b4ee020abcbb5095ab6d38a99f22d892fdd0 /tools/lib/api/cpu.c | |
| parent | bpf: Introduce bpf_jit_binary_pack_[alloc|finalize|free] (diff) | |
| download | kernel-1022a5498f6f745c3b5fd3f050a5e11e7ca354f0.tar.gz kernel-1022a5498f6f745c3b5fd3f050a5e11e7ca354f0.zip | |
bpf, x86_64: Use bpf_jit_binary_pack_alloc
Use bpf_jit_binary_pack_alloc in x86_64 jit. The jit engine first writes
the program to the rw buffer. When the jit is done, the program is copied
to the final location with bpf_jit_binary_pack_finalize.
Note that we need to do bpf_tail_call_direct_fixup after finalize.
Therefore, the text_live = false logic in __bpf_arch_text_poke is no
longer needed.
Signed-off-by: Song Liu <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/api/cpu.c')
0 files changed, 0 insertions, 0 deletions
