Re: [PATCH RFC bpf-next] bpf: per-register parent pointers

2018-07-19 Thread Edward Cree
On 18/07/18 04:54, Alexei Starovoitov wrote: > I'd like to apply it, but I see the difference in insn_processed. > Several cilium tests show favorable difference towards new liveness approach. > selftests/bpf/test_xdp_noinline.o also shows the difference. > I'm struggling to see why this patch woul

[PATCH RFC bpf-next] bpf: per-register parent pointers

2018-07-17 Thread Alexei Starovoitov
By giving each register its own liveness chain, we elide the skip_callee() logic. Instead, each register's parent is the state it inherits from; both check_func_call() and prepare_func_exit() automatically connect reg states to the correct chain since when they copy the reg state across (r1-r5 int