]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
bpf: take advantage of stack_depth tracking in powerpc JIT
authorSandipan Das <sandipan@linux.vnet.ibm.com>
Fri, 1 Sep 2017 18:53:01 +0000 (00:23 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 6 Nov 2017 05:48:16 +0000 (16:48 +1100)
commitac0761ebcb08830d8f64b9181f6736b1a00bf746
tree87486f365174fa650334fc56d948f52d3a48affb
parent632f0574167ad3f5d646dad6af87d976a703d93e
bpf: take advantage of stack_depth tracking in powerpc JIT

Take advantage of stack_depth tracking, originally introduced for
x64, in powerpc JIT as well. Round up allocated stack by 16 bytes
to make sure it stays aligned for functions called from JITed bpf
program.

Signed-off-by: Sandipan Das <sandipan@linux.vnet.ibm.com>
Reviewed-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/net/bpf_jit64.h
arch/powerpc/net/bpf_jit_comp64.c