]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, x86/sparc: show actual number of passes in bpf_jit_dump
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 30 Jul 2015 10:42:48 +0000 (12:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2015 18:13:21 +0000 (11:13 -0700)
commit0e8a8344fb943bcbf697daceb2d30d865dde9d23
tree3ef671f211e2e4d85946ca5ef8fff3fffce6847e
parentf8f24ebf75204c831fbdc975952f01f9cdb5d67f
bpf, x86/sparc: show actual number of passes in bpf_jit_dump

When bpf_jit_compile() got split into two functions via commit
82c0932673e7 ("net: filter: x86: split bpf_jit_compile()"), bpf_jit_dump()
was changed to always show 0 as number of compiler passes. Change it to
dump the actual number. Also on sparc, we count passes starting from 0,
so add 1 for the debug dump as well.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/net/bpf_jit_comp.c
arch/x86/net/bpf_jit_comp.c