]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'bpf-stack-tracker'
authorDavid S. Miller <davem@davemloft.net>
Wed, 31 May 2017 23:29:48 +0000 (19:29 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 May 2017 23:29:48 +0000 (19:29 -0400)
commit54da28c4a0f84c2779bd4f345b1417b9db328a4a
tree7578aae05af40cd063fa3cd8679effc13a28863b
parent27516b90585f5e6f324140521d4e53747258617d
parent73c8d676a993fa76a98b12ac4b7c2988730ae91f
Merge branch 'bpf-stack-tracker'

Alexei Starovoitov says:

====================
bpf: stack depth tracking

Introduce tracking of bpf program stack depth in the verifier and use that
info to reduce bpf program stack consumption in the interpreter and x64 JIT.
Other JITs can take advantage of it as well in the future.
Most of the programs consume very little stack, so it's good optimization
in general and it's the first step toward bpf to bpf function calls.

Also use internal opcode for bpf_tail_call() marking to make clear
that jmp|call|x opcode is not uapi and may be used for actual
indirect call opcode in the future.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>