]> git.kernelconcepts.de Git - karo-tx-linux.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)
commita6ed38361b1e0f08d630bd491051c254d1fc71b9
tree25d6223bb7b2a4a85e73881acc409f9f35b4c484
parent1df33a11454de804661c8e19cd0e464914eefc6d
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