tools: bpf_jit_disasm: ignore image address for disasm
authorAlexei Starovoitov <ast@plumgrid.com>
Thu, 15 May 2014 22:56:38 +0000 (15:56 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 May 2014 20:44:08 +0000 (16:44 -0400)
commited4afd451f12ea57f9aaaf6f8442eee7e415fa1a
tree2532887c7f3077036a36ef5f60b44c16099f9d66
parente0a1272cfacd53ff99c768b9e09b64cfdd77159c
tools: bpf_jit_disasm: ignore image address for disasm

seccomp filters use kernel JIT image addresses, so bpf_jit_enable=2 prints
[ 20.146438] flen=3 proglen=82 pass=0 image=0000000000000000
[ 20.146442] JIT code: 00000000: 55 48 89 e5 48 81 ec 28 02 00 00 ...

ignore image address, so that seccomp filters can be disassembled

Signed-off-by: Alexei Starovoitov <ast@plumgrid.com>
Acked-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/net/bpf_jit_disasm.c