]> git.baikalelectronics.ru Git - kernel.git/commit
bpf_jit_disasm: also support reading jit dump from file
authorDaniel Borkmann <daniel@iogearbox.net>
Thu, 30 Jul 2015 14:04:22 +0000 (16:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2015 22:13:14 +0000 (15:13 -0700)
commit6570de08987bf866faa8f3a3ba62b4ae3cee177a
tree25d6223bb7b2a4a85e73881acc409f9f35b4c484
parentcab6a825f9db0cadc89780fc774519cee879c508
bpf_jit_disasm: also support reading jit dump from file

This patch adds support to read the dmesg BPF JIT dump also from a
file instead of the klog buffer. I found this quite useful when going
through some 'before/after patch' logs. It also fixes a regex leak
found by valgrind when no image dump was found.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/net/bpf_jit_disasm.c