Support trampoline for LoongArch#9146
Support trampoline for LoongArch#9146kernel-patches-daemon-bpf[bot] wants to merge 5 commits intobpf-next_basefrom
Conversation
|
Upstream branch: bd07bd1 |
9860b87 to
7801208
Compare
|
Upstream branch: cd7312a |
c7591f5 to
5ebd745
Compare
7801208 to
a994d4a
Compare
|
Upstream branch: e30329b |
5ebd745 to
1ea1f92
Compare
a994d4a to
e7d5deb
Compare
|
Upstream branch: 99fe8af |
1ea1f92 to
15d62f0
Compare
e7d5deb to
1c12ad1
Compare
|
Upstream branch: c11f34e |
15d62f0 to
c022a36
Compare
1c12ad1 to
4b5a6fc
Compare
|
Upstream branch: 3ce7cdd |
c022a36 to
3b819c8
Compare
4b5a6fc to
a2a54b8
Compare
Add branch jump function: larch_insn_gen_beq larch_insn_gen_bne Add instruction copy function: larch_insn_text_copy Co-developed-by: George Guo <guodongtai@kylinos.cn> Signed-off-by: George Guo <guodongtai@kylinos.cn> Co-developed-by: Youling Tang <tangyouling@kylinos.cn> Signed-off-by: Youling Tang <tangyouling@kylinos.cn> Signed-off-by: Chenghao Duan <duanchenghao@kylinos.cn>
Implement the bpf_arch_text_poke function for the LoongArch architecture. On LoongArch, since symbol addresses in the direct mapping region cannot be reached via relative jump instructions from the paged mapping region, we use the move_imm+jirl instruction pair as absolute jump instructions. These require 2-5 instructions, so we reserve 5 NOP instructions in the program as placeholders for function jumps. Co-developed-by: George Guo <guodongtai@kylinos.cn> Signed-off-by: George Guo <guodongtai@kylinos.cn> Signed-off-by: Chenghao Duan <duanchenghao@kylinos.cn>
BPF trampoline is the critical infrastructure of the BPF subsystem, acting as a mediator between kernel functions and BPF programs. Numerous important features, such as using BPF program for zero overhead kernel introspection, rely on this key component. The related tests have passed, Including the following technical points: 1. fentry 2. fmod_ret 3. fexit Co-developed-by: George Guo <guodongtai@kylinos.cn> Signed-off-by: George Guo <guodongtai@kylinos.cn> Signed-off-by: Chenghao Duan <duanchenghao@kylinos.cn>
|
Upstream branch: 3ce7cdd |
Update the code to rename validate_code to validate_ctx. validate_code is used to check the validity of code. validate_ctx is used to check both code validity and table entry correctness. Co-developed-by: George Guo <guodongtai@kylinos.cn> Signed-off-by: George Guo <guodongtai@kylinos.cn> Signed-off-by: Chenghao Duan <duanchenghao@kylinos.cn>
3b819c8 to
301fc5d
Compare
a2a54b8 to
2e3dd89
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=973377 expired. Closing PR. |
Pull request for series with
subject: Support trampoline for LoongArch
version: 2
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=973377