Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1418056
| From | Zi Shen Lim <zlim.lnx@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH net-next v3 3/4] arm64: bpf: optimize JMP_CALL |
| Date | 2016-06-09 06:30 +0200 |
| Message-ID | <rHZLs-1lf-7@gated-at.bofh.it> (permalink) |
| References | <rHZLs-1lf-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Remove superfluous stack frame, saving us 3 instructions for every JMP_CALL. Signed-off-by: Zi Shen Lim <zlim.lnx@gmail.com> --- arch/arm64/net/bpf_jit_comp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/arm64/net/bpf_jit_comp.c b/arch/arm64/net/bpf_jit_comp.c index 51abc97..7ae304e 100644 --- a/arch/arm64/net/bpf_jit_comp.c +++ b/arch/arm64/net/bpf_jit_comp.c @@ -578,11 +578,8 @@ emit_cond_jmp: const u64 func = (u64)__bpf_call_base + imm; emit_a64_mov_i64(tmp, func, ctx); - emit(A64_PUSH(A64_FP, A64_LR, A64_SP), ctx); - emit(A64_MOV(1, A64_FP, A64_SP), ctx); emit(A64_BLR(tmp), ctx); emit(A64_MOV(1, r0, A64_R(0)), ctx); - emit(A64_POP(A64_FP, A64_LR, A64_SP), ctx); break; } /* tail call */ -- 1.9.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH net-next v3 0/4] arm64 BPF JIT updates Zi Shen Lim <zlim.lnx@gmail.com> - 2016-06-09 06:30 +0200 [PATCH net-next v3 4/4] arm64: bpf: optimize LD_ABS, LD_IND Zi Shen Lim <zlim.lnx@gmail.com> - 2016-06-09 06:30 +0200 [PATCH net-next v3 3/4] arm64: bpf: optimize JMP_CALL Zi Shen Lim <zlim.lnx@gmail.com> - 2016-06-09 06:30 +0200 [PATCH net-next v3 2/4] arm64: bpf: implement bpf_tail_call() helper Zi Shen Lim <zlim.lnx@gmail.com> - 2016-06-09 06:30 +0200 Re: [PATCH net-next v3 0/4] arm64 BPF JIT updates David Miller <davem@davemloft.net> - 2016-06-11 08:20 +0200
csiph-web