]> 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)
commita26f51a31a046ed2aaf167e24d27f1dc6749c85b
tree25d6223bb7b2a4a85e73881acc409f9f35b4c484
parent2b63a30b59dbe7467f80c160806bb59340b6262b
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